From fe5e0231c567110b142b1862959214d7c7aa315a Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 21 Aug 2022 22:23:59 +0200 Subject: [PATCH] Added docs for ListWebPage. --- modules/web/doc_classes/ListWebPage.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/modules/web/doc_classes/ListWebPage.xml b/modules/web/doc_classes/ListWebPage.xml index a36bd56db..e4493d465 100644 --- a/modules/web/doc_classes/ListWebPage.xml +++ b/modules/web/doc_classes/ListWebPage.xml @@ -1,8 +1,24 @@ + The ListPage WebNode can be pointed to a folder using it's folder variable, and then it will load all files in that folder, process them as markdown in alphabetical order, and put them onto a page, one after the other. It also supports pagination. + The ListPage WebNode can be pointed to a folder using it's folder variable, and then it will load all files in that folder, process them as markdown in alphabetical order, and put them onto a page, one after the other. It also supports pagination. + This class will load and generate pages from a folder of md files. It supports pagination, it will put entry_per_page md files per page. It generates html on enter tree, and caches everything. Each md file gets rendered into a div with a class of "list_entry" + HTML (If there are entries): + [code]render_menu() + <div class="main_div_class(list_page)"> + <div class="entry_div_class(list_entry)">md file 1</div> + <div class="entry_div_class(list_entry)">md file 2</div> + ... + ... pagination ... + </div>[/code] + HTML (If there are no entries): + [code]render_menu() + <div class="main_div_class(list_page)"> + <div class="empty_div_class(list_entry_empty)">placeholder_text(No content yet!)</div> + </div>[/code] @@ -10,25 +26,34 @@ + Maunally load everything. + This is going to be the class of the div of the placeholder_text if it's rendered. + Every file will be in a div with this class. + This many entries will be at max rendered per page. + The path of the folder to load files from. + The main div's class that contains everything. + This many pagination links will be visible max. + Whether to allow pagination or not. + If there are no files this text will be displayed.