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:**
Custom Identity Groups/自定义身份组 (code:custom-identity-groups)
Tags: — created / updated: 09 Nov 2024 18:40 / 09 Nov 2024 18:49 - G2Lighter
Rating / Comments: 2 / 0
Better Sidebar/更好的侧边栏 (code:better-sidebar)
Tags: css css3 layout side-bar sidebar — created / updated: 17 Sep 2024 09:03 / 12 Nov 2024 01:36 - G2Lighter
Rating / Comments: 3 / 7
Virtualization:VMclients (code:virtualization:vmclients)
Tags: — created / updated: 08 Sep 2024 21:13 / 08 Sep 2024 21:13 - PJan
Rating / Comments: 0 / 6
Applications:Wireshark (code:applications:wireshark)
Tags: — created / updated: 08 Sep 2024 17:01 / 08 Sep 2024 17:01 - PJan
Rating / Comments: 1 / 0
Applications:Nmap (code:applications)
Tags: — created / updated: 08 Sep 2024 16:06 / 08 Sep 2024 16:06 - PJan
Rating / Comments: 0 / 0
diatomf (code:diatomf)
Tags: — created / updated: 15 Aug 2024 17:29 / 15 Aug 2024 17:30 - diatom
Rating / Comments: 4 / 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
Kashmir tour packages (code:kashmir-tour-packages)
Tags: — created / updated: 10 Aug 2024 10:07 / 10 Aug 2024 10:07 - aamir101
Rating / Comments: 0 / 0
Where is Viscious? (code:where-is-viscious)
Tags: — created / updated: 27 Jul 2024 17:30 / 27 Jul 2024 17:30 - bAbbAeejOy
Rating / Comments: 0 / 1
snippets.lol (code:snippets-lol)
Tags: — created / updated: 24 Jul 2024 19:39 / 24 Jul 2024 19:39 - Eldermoon
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
]]