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:**
Zoho Writer (code:zohowriter)
Tags: document office openoffice writer zoho — created / updated: 20 Oct 2006 21:29 / 16 Feb 2012 01:57 - michal-frackowiak
Rating / Comments: 18 / 5
Zoho Show (code:zohoshow)
Tags: office presentation zoho — created / updated: 20 Oct 2006 21:23 / 16 Feb 2012 01:55 - michal-frackowiak
Rating / Comments: 19 / 3
Zoho Sheet (code:zohosheet)
Tags: chart data graph spreadsheet zoho — created / updated: 20 Oct 2006 20:57 / 16 Feb 2012 01:56 - michal-frackowiak
Rating / Comments: 24 / 4
Zoho Polls (code:zohopolls)
Tags: embed poll zoho — created / updated: 28 Dec 2006 00:34 / 16 Feb 2012 01:53 - michal-frackowiak
Rating / Comments: 43 / 2
Yahoo! WebPlayer (code:yahoo-webplayer)
Tags: audio mp3 music player video yahoo — created / updated: 13 Sep 2011 02:13 / 16 Feb 2012 01:53 - (account deleted)
Rating / Comments: 4 / 3
WoW Tooltips (code:wow-tooltips)
Tags: embed items javascript tooltips warcraft wow wowdb wowhead — created / updated: 06 Aug 2008 08:03 / 16 Feb 2012 01:52 - michal-frackowiak
Rating / Comments: 11 / 0
WORKING SEARCH for open and closed Wikidot sites (code:working-search-for-open-and-closed-wikidot-sites)
Tags: — created / updated: 13 Aug 2024 03:49 / 13 Aug 2024 04:22 - Eye14
Rating / Comments: 4 / 11
Wishlist (code:wishlist)
Tags: — created / updated: 10 Apr 2007 08:33 / 16 Feb 2012 01:52 - kooler
Rating / Comments: 1 / 1
Widgetbox Panel (code:widgetbox-panel)
Tags: gadget widget widgetbox — created / updated: 07 Jan 2007 21:29 / 16 Feb 2012 01:52 - michal-frackowiak
Rating / Comments: 16 / 10
Who:n (code:who:n)
Tags: — created / updated: 21 Dec 2024 07:11 / 21 Dec 2024 07:11 - Hermitic crow
Rating / Comments: 0 / 0
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
]]