ListPages: Horizontal?

By ErichSteinboeck ErichSteinboeck

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 “best-snippet”
  • 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
gerdami gerdami 28 Sep 2009 21:26

… and make a chart with this technique !

by gerdami gerdami , 28 Sep 2009 21:26
Re: Chart
ErichSteinboeck ErichSteinboeck 29 Sep 2009 12:57

Gerdami, this is an incredibly nice application of the “Horizontal” idea!

by ErichSteinboeck ErichSteinboeck , 29 Sep 2009 12:57
wow!
Sulfrum Sulfrum 17 Aug 2008 01:38

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.

by Sulfrum Sulfrum , 17 Aug 2008 01:38
Re: wow!
leiger leiger 05 Jul 2009 13:22

I second this. Very useful.


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 05 Jul 2009 13:22
page revision: 1, last edited: 16 Feb 2012 01:20
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /