ListPages: Horizontal?

By ErichSteinboeckErichSteinboeck

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 “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!

rating: +21+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License