Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-11-07 09:23:42

ar
Member
From: Nuremberg, Germany
Registered: 2012-03-08
Posts: 45
Website

4.6.2: <txp:section /> becomes &lt;txp:section /&gt;

Hi,

since I upgraded to Textpattern 4.6.2 yesterday, <txp:section /> used in a form (in this case: my header form) does not output the name of the current section but instead &lt;txp:section /&gt;.

However, since I’m using this to assign a CSS class, this didn’t work any longer.

The workaround is to add title="0" link="0", but this should not be necessary.

My complete, working command is now: <txp:section link="1" title="1" class="<txp:section title="0" link="0" />" />

Is this a bug? This does not say anything about it.

Best,

Alex

Last edited by ar (2016-11-07 09:41:43)

Offline

#2 2016-11-07 09:44:32

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,269
Website GitHub

Re: 4.6.2: <txp:section /> becomes &lt;txp:section /&gt;

Use single quotes for tags-in-attributes, otherwise they won’t be parsed correctly:

<txp:section link="1" title="1" class='<txp:section />' />

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2016-11-07 09:52:53

ar
Member
From: Nuremberg, Germany
Registered: 2012-03-08
Posts: 45
Website

Re: 4.6.2: <txp:section /> becomes &lt;txp:section /&gt;

Alright, thank you!

Offline

Board footer

Powered by FluxBB