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:**
GRU.psychotronics.src (code:gru-psychotronics-src)
Tags: — created / updated: 22 Apr 2025 03:16 / 30 Apr 2025 08:30 - Keith Bieszczat
Rating / Comments: 0 / 0
ENERGÍA MARINA (code:energia-marina)
Tags: — created / updated: 16 Feb 2025 16:42 / 16 Feb 2025 16:42 - DANNALY RIVERA
Rating / Comments: 0 / 1
Search (code:search)
Tags: — created / updated: 01 Feb 2025 10:01 / 01 Feb 2025 10:01 - kepta
Rating / Comments: 0 / 2
VMclients page (code:vmclients-page)
Tags: — created / updated: 28 Jan 2025 06:11 / 30 Jan 2025 10:43 - Eobiadi
Rating / Comments: 0 / 0
mypage (code:mypage)
Tags: — created / updated: 21 Jan 2025 11:45 / 21 Jan 2025 11:45 - endcreeper
Rating / Comments: 0 / 1
Virtualization:VMclients1 (code:virtualization:vmclients1)
Tags: — created / updated: 20 Jan 2025 22:28 / 27 Jan 2025 18:04 - Camila0814
Rating / Comments: 0 / 2
Tousif Akram: Transforming U.S. Business Registration for Global Entrepreneurs with FormLLC (code:formllc)
Tags: — created / updated: 08 Jan 2025 05:34 / 08 Jan 2025 05:34 - Tousif Akram
Rating / Comments: 0 / 0
Redirection (code:redirection)
Tags: — created / updated: 31 Dec 2024 03:27 / 31 Dec 2024 03:30 - BugCatch123
Rating / Comments: 0 / 0
Who:n (code:who:n)
Tags: — created / updated: 21 Dec 2024 07:11 / 21 Dec 2024 07:11 - Hermitic crow
Rating / Comments: 0 / 0
Who: (code:who)
Tags: — created / updated: 21 Dec 2024 07:08 / 21 Dec 2024 07:08 - 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
]]