Description
With this include of a little Link-List you can call at the top of a ListPages-Output (with standard-fields) all the posssible different orders of such a ListPage module output. Only the order="@URL" is neccessary and a little include statement to create a "selfcalling" list of the site and page.
Code
[!---
- - --------------------USAGE: ----------------------
[[include :snippets:sorted-listpages-list |
site=SITENAME |
page=PAGENAME |
]]
- - - -------------------
CALLING PAGE: use order="@URL" in Listpages
- - - ----------------------
---]
[[div style="border:1px silver solid; margin: 3px; padding:3px;"]]
**Sort by:**
= ##blue|Title [http://SITENAME.wikidot.com/PAGE-FULLNAME/order/titleASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/titleDESC ▼], category-name[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/fullnameASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/fullnameDESC ▼] ) date[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/created_atASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/created_atDESC ▼], update[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/updated_atASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/updated_atDESC ▼], Page Rating [http://SITENAME.wikidot.com/PAGE-FULLNAME/order/ratingASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/ratingDESC ▼], Creator: [http://SITENAME.wikidot.com/PAGE-FULLNAME/order/created_byASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/created_byDESC ▼] ,Comments:[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/commentsASC ▲さんかく]/[http://SITENAME.wikidot.com/PAGE-FULLNAME/order/commentsDESC ▼] )##
[[/div]]
In action
Sort by:
Title ▲さんかく/▼, category-name▲さんかく/▼ ) date▲さんかく/▼, update▲さんかく/▼, Page Rating ▲さんかく/▼, Creator: ▲さんかく/▼ ,Comments:▲さんかく/▼ )
To change the sort of the output click on one of the arrows above!
Here are the "CODE pages on snippets:**
Automatic Sitemap (code:automatic-sitemap)
Tags: parent sitemap structure — created / updated: 26 Sep 2006 10:44 / 15 Feb 2012 00:25 - michal-frackowiak
Rating / Comments: 100 / 22
Bibliography/Footnotes/Comments Listed in TOC (code:bibliography-footnotes-comments-listed-in-toc)
Tags: bibliography footnotes headings pageelements toc — created / updated: 26 Sep 2006 10:37 / 15 Feb 2012 00:26 - michal-frackowiak
Rating / Comments: 12 / 3
Footnotes (code:footnotes)
Tags: footnotes pageelements — created / updated: 26 Sep 2006 09:58 / 16 Feb 2012 01:01 - michal-frackowiak
Rating / Comments: 13 / 4
Compact Feed Display (code:compact-feed-display)
Tags: jobs traffic travel web — created / updated: 26 Sep 2006 09:47 / 15 Feb 2012 00:35 - michal-frackowiak
Rating / Comments: 25 / 2
Extra Side Bar (code:extra-side-bar)
Tags: layout sidebar — created / updated: 26 Sep 2006 09:37 / 15 Feb 2012 00:51 - michal-frackowiak
Rating / Comments: 104 / 8
Import the Digg Feed (code:import-the-digg-feed)
Tags: digg feed rss — created / updated: 26 Sep 2006 09:01 / 16 Feb 2012 01:11 - michal-frackowiak
Rating / Comments: 12 / 0
Import a News Feed (code:import-a-news-feed)
Tags: feed import rss — created / updated: 26 Sep 2006 08:51 / 16 Feb 2012 01:10 - michal-frackowiak
Rating / Comments: 6 / 5
Center Video (code:center-video)
Tags: layout video youtube — created / updated: 26 Sep 2006 08:28 / 15 Feb 2012 00:28 - michal-frackowiak
Rating / Comments: 20 / 2
Simple Gallery (code:simple-gallery)
Tags: gallery image — created / updated: 26 Sep 2006 08:04 / 16 Feb 2012 01:41 - michal-frackowiak
Rating / Comments: 38 / 8
Multicolumn Layout (code:multicolumn-layout)
Tags: column layout multicolumn — created / updated: 26 Sep 2006 07:57 / 17 Dec 2012 19:51 - michal-frackowiak
Rating / Comments: 91 / 26
Notice1: important is the order="@URL" in the ListPages calling line!
Notice2: this works for only ONE Listpages module!
( or you need another solution: [<http://community.wikidot.com/howto:sortable-list-of-pages Howto: Sortable List of Pages])
Technic: the sorting links are calling the page itself by using the URL-attributes - have a look on the adressbar ( after sorting) !
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 Helmut_pdorf
Todo List with Data Forms - 30 Apr 2015 14:59
Html(embed) code opening in new window/tab - 29 Oct 2014 09:05
Facebook Button - 27 Dec 2013 15:03
Advanced Search - 25 Feb 2012 12:29
Top Nav Menu with ListPages - 16 Feb 2012 01:48
Schedules - 16 Feb 2012 01:40
Use any html code on a page - 16 Feb 2012 01:34
Find untagged pages - 15 Feb 2012 00:52
Rate this solution
If you think this solution is useful — rate it up!
[[include :snippets:sorted-listpages-list | scp-9999-tr
site=SITENAME | http://scpguy.wikidot.com/scp-9999-tr
page=PAGE-FULLNAME | scp-9999-tr
]]