diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-01-22 00:27:48 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-01-22 00:27:48 +0100 |
commit | a2fd39d2c8d6837f07e7df3bb9738d72e5c15409 (patch) | |
tree | 38e9c032d43bac876e5b054e7c09ecf58b942248 | |
parent | d74d3bb32ee4b1202e9152b31947705d8186d2eb (diff) | |
download | wcms-a2fd39d2c8d6837f07e7df3bb9738d72e5c15409.tar.gz wcms-a2fd39d2c8d6837f07e7df3bb9738d72e5c15409.zip |
manual + render pagelist class
-rw-r--r-- | MANUAL.md | 28 | ||||
-rw-r--r-- | app/class/Modelrender.php | 2 |
2 files changed, 27 insertions, 3 deletions
@@ -204,7 +204,29 @@ This will include the page [description](#description). #### Page list -The page list +Sometimes, when you want to add links to a lot of pages, it can be way to long. This tool is here to help you generate list of links automatically. + +It use the same logic as the page filter. + +When you are in the [home view](#home), ajust the filters using the [options panel](#options) to achieve the page selection you desire. Then select "filters" in the [menu](#home-menu), choose options you prefer and hit "generate". You can now copy and paste the code obtainded that way in one of the [elements](#markdown-elements) of a page. + +Display options are : + +- title : display the [title](#page-title) of the page +- description : display the [description](#description) of the page. +- thumbnail : display the [thumnail](#thumbnail) of the page. +- date : display the [date](#date) of the page. +- time : display the [time](#time) of the page. + +Generate : + + + <ul class="pagelist"> + <li><a href="ID">TITLE</a> DESCRIPTION DATE TIME ... </li> + .... + </ul> + + #### Media list @@ -263,7 +285,9 @@ List of [users](#user-levels) that have edited the page, or that can do it. You #### Content -##### Main, Nav, Aside, Header, Footer +##### markdown elements + +Main, Nav, Aside, Header, Footer ##### CSS diff --git a/app/class/Modelrender.php b/app/class/Modelrender.php index 8bcf398..5a86d0b 100644 --- a/app/class/Modelrender.php +++ b/app/class/Modelrender.php @@ -677,7 +677,7 @@ class Modelrender extends Modelpage $optlist->parsehydrate($match['options']); $table2 = $modelhome->table2($this->pagelist, $optlist); - $content = '<ul>' . PHP_EOL ; + $content = '<ul class="pagelist">' . PHP_EOL ; foreach ($table2 as $page ) { $content .= '<li>' . PHP_EOL; $content .= '<a href="' . $this->upage($page->id()) . '">' . $page->title() . '</a>' . PHP_EOL; |