Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
Re: Proposal: link_sort tag
Thank you, Oleg – you’re always helpful.
Offline
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