From 69211185e5578b72d3a0f9e10b5dd3d0b2f0e2a0 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 9 Dec 2018 18:43:21 +0100 Subject: auto-media-dir-list --- app/view/templates/admin.php | 2 ++ app/view/templates/info.php | 42 +++++++++++++++++++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 3 deletions(-) (limited to 'app/view/templates') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index bff83c5..8de9bb1 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -10,6 +10,8 @@
+

Administration

+
diff --git a/app/view/templates/info.php b/app/view/templates/info.php index 638e2b5..97ee198 100644 --- a/app/view/templates/info.php +++ b/app/view/templates/info.php @@ -233,6 +233,42 @@ You can use any of them, only one or all at the same time, as you prefer.

The list is ordered by the date attribute, that you can set manualy for each page. You may have noticed that the actual page (page 3), has been specified using .actualpage class. This can be usefull to create a menu and highlight the current page.

+
Article separator
+ +

You can use the article html element, by separating text using at least ====. It is of course possible to use Markdown synthax inside those articles separators

+ +
+====

+some text

+======important

+this is a longer text

+======

+
+ +

This will ouptut :

+ +
+<article>
+some text
+</article>
+<article id="important">
+this is a longer textt
+</article>
+
+ + +

As you may have noticed, there is also the possibility to add a custom id to any of the articles created that way

+ + +
Media list
+ +

As it is too long adding all media of a folder one by one, you can just print the content of an entire folder using this method.

+ +
+%MEDIA:__repository__ +
+ +

Just point to the good directory inside the media folder. This will output html list, creating image elements, audio players, video players, or just basic link, depending on the media type.

@@ -286,19 +322,19 @@ __the content of your section__
Advanced includings
- %HTML_ELEMENT.page_id% + %HTML_ELEMENT:page_id%

By doing this, you can include the HTML_ELEMENT of the page using this page_id id. You can even nest differents pages source by adding page_id separated by a dot, this would be like :

- %HTML_ELEMENT.page1_id.page2_id% + %HTML_ELEMENT:page1_id+page2_id%

And you can mix it with the original page content using ! identifier

- %HTML_ELEMENT%page3_id.!% + %HTML_ELEMENT:page3_id+!%

This will output :

-- cgit v1.2.3