Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2020-10-22 17:48:29
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,189
- Website
Brain-teaser: processing order
In 4.8.4+ we have two ways to alter the order in which tags are processed: the nominal/positional one
<txp:container evaluate="2, tag3">
<txp:tag1 /> <!-- will be processed last -->
<txp:tag2 /> <!-- will be processed first -->
<txp:tag3 /> <!-- will be processed next -->
</txp:container>
and the ordinal one:
<txp:container>
<txp:tag1 /> <!-- will be processed last -->
<txp:tag2[2] /> <!-- will be processed next -->
<txp:tag3[1] /> <!-- will be processed first -->
</txp:container>
Both are fine, but I can’t see how to make them cohabitate: what should the order be here
<txp:container evaluate="2, tag3">
<txp:tag1 />
<txp:tag2[2] />
<txp:tag3[1] />
</txp:container>
Help :-)
Offline
#2 2020-10-23 04:49:48
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,269
- Website
Re: Brain-teaser: processing order
etc wrote #326509:
Help :-)
Undefined1 :-) Tags will be processed in order of appearance, the internal conflicts in the logic crashed.
1 please don’t throw the freshly harvested pomegranates at me… that is reserved for the ghost of an ancient poet and mathematician form northern Khorasan
Where is that emoji for a solar powered submarine when you need it ?
Offline
Pages: 1