Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-10-22 17:48:29

Registered: 2010-11-11
Posts: 5,053
Website GitHub

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 -->

and the ordinal one:

    <txp:tag1 /> <!-- will be processed last -->
    <txp:tag2[2] /> <!-- will be processed next -->
    <txp:tag3[1] /> <!-- will be processed first -->

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] />

Help :-)


#2 2020-10-23 04:49:48

Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,078

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 ?
Sand space – admin theme for Textpattern


Board footer

Powered by FluxBB