Description
Have you ever wondered whether ListPages output can be shown horizontally instead of a boring (vertical) list?
Here's how it can be done!
As shown in below code sample, use a backslash (“\”) line continuation character as the last character in the [[module ListPages ...]] body, or, if you wish also as the last character in the appendLine parameter.
Code
[[module ListPages category="category" separate="false" limit="3" \
order="dateEditedDesc" prependLine="* Pages from ``category'' \"]]
• %%linked_title%% \
[[/module]]
In action
Find the three most recently edited pages of each category.
- Pages from default • Chat Code Backend • Hide Tags • Hide Tags Backend
- Pages from “best-snippet” • Almost Random Page Chooser
- Pages from “code” • Pretty Tables • Custom Page Title • Hide Tags
- Pages from “forum” • New Forum Thread • Recent Threads • Recent Forum Posts
- Pages from “nav” • Top Bar Menu • Side • Side2
- Pages from “search” • Search the site
- Pages from “system” • List All Categories • Page Tags • List All Snippets
- Pages from “temp” • Foldable List
- Pages from “template” • Snippet
Thanks to tsangk for this great snippet: conditional-blocks
text above inserted with:
[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]
Other snippets posted by ErichSteinboeck
TOC's from many pages - 16 Feb 2012 01:47
Redirect: To - 16 Feb 2012 01:37
Module Listpages Tags - 16 Feb 2012 01:24
Module Feed Drilldown: Details Page - 16 Feb 2012 01:24
Module Feed Drilldown - 16 Feb 2012 01:24
Module Feed: Collapsible - 16 Feb 2012 01:23
Module Categories - 16 Feb 2012 01:23
MiniRecentPosts With Limit - 16 Feb 2012 01:23
Choose A Page! - 15 Feb 2012 00:32
Redirect: From (1st) - 01 Mar 2009 18:18
Redirect: From (2nd) - 01 Mar 2009 18:17
Rate this solution
If you think this solution is useful — rate it up!






It must be insert in the documentation page of the module!
Ent
You'll pay for all your sins. If you already paid, please disregard this message.
I second this. Very useful.
Shane Smith ★ Wikidot Freelancer (Hire me!)
— Sites: My Website, Personal Blog
— Projects: STE Editor, Wikimated, Wikidot 101 (Video Tutorials), Wikidot SubReddit
… and make a chart with this technique !
Gerdami, this is an incredibly nice application of the “Horizontal” idea!