You are not logged in.
Pages: 1
Hi,
I’m trying to sort article_custom in the same order as I entered the articles id’s to it,
<txp:variable name="the_articles" value="1,4,2,5,3" /><txp:article_custom id='<txp:variable name="the_articles" />' time="any" sort='<txp:variable name="the_articles" />'> <txp:article_id /><br/> </txp:article_custom>
this isn’t working,
so I will love to know how to get this to work to keep the same order as in the variable please.
Offline
Hi Gil,
try sort='FIELD(ID,<txp:variable name="the_articles" />)'
Offline
Thanks works great :)
Is there a documentation page that I can explore and learn all these magic tricks please?
Offline
This particular, obscure trick was taught to us by ruud, developer emeritus.
You could browse the user documentation or TXPTips to see if you find more magic tricks. Then, share them!
Offline
Pages: 1