History: PluginList - Hacks and Fun
Preview of version: 5
PluginList - Hacks and Fun
A collection of (so far one) tips, hacks and fun things you can do with PluginList that don't really belong anywhere else.
Set the Browser Page Title
A client needed a wiki page title (set in the <head><title>
tag) changed from the default page name, and (eventually) we did it like this:
Copy to clipboard
{DIV(class="d-none")}{LIST()} {pagination max="1"} {OUTPUT()}{display name="mytitle" pagetitle="y"}{OUTPUT} {FORMAT(name="mytitle")}This is the page title, not the wiki page title{FORMAT} {LIST}{DIV}
Make a carousel with wikipages
You need to create some wikipages and set a category to them. In the example it is the category id 22. LIST will load all pages which contain to the category and the carousel will display them.
Copy to clipboard
{LIST()} {filter type ="wiki page"} {filter categories="22"} {OUTPUT(template="carousel")} {carousel interval="2000" wrap="true" pause="hover" id="mycarousel" } {body field="page" mode="raw"} {OUTPUT} {FORMAT(name="page")} {display format="wikiplugin" name="wikiplugin_include" page="object_id"} {FORMAT} {LIST}
...add your tips here!