Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-06-25 11:23:01

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Proposal: link_sort tag

I can’t see any way to output a link’s sort value using a tag. That would be a good thing to have for practical reasons, as well as completeness; I can extract everything else to do with a link using the array of link tags already available.

Something like link_sort would follow the naming convention and presumably be a straightforward addition 1. It would be used as a single tag to output a link’s sort value, either assigned by Textpattern or the user.

1 He says, casually, not knowing a great deal about PHP development.

Offline

#2 2013-06-25 17:24:33

etc
Developer
Registered: 2010-11-11
Posts: 5,192
Website GitHub

Re: Proposal: link_sort tag

gaekwad wrote:

I can’t see any way to output a link’s sort value using a tag.

I know this is not exactly a tag, but just in case:

<txp:php>global $thislink; echo $thislink['linksort'];</txp:php>

or <txp:etc_query globals="thislink" data="{?linksort}" />.

Offline

#3 2013-06-25 17:30:33

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,260
GitHub

Re: Proposal: link_sort tag

Thank you, Oleg – you’re always helpful.

Offline

#4 2013-06-25 17:31:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Proposal: link_sort tag

And here’s the tag:) <txp:linklist category="some_category" limit="99" sort="linksort" break=" , " wraptag="p" />

> OK… I misread the question… again:)… Note o self: next time read the question properly

Last edited by colak (2013-06-25 17:51:05)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB