Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-01-06 14:19:59

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

[solved] Allowed characters in variable setting

This is a strange one. I’m using article_custom to populate a variable and no reference to the variable is appearing in the tag trace.

I start with the current section:

<txp:section />

Then, I use that in an article_custom tag:

<txp:article_custom category="video" section='<txp:section />' />

Note the ‘ in place of “ to nest the tag. This works. Now, I nest this inside a variable:

<txp:variable name="body_content_video_check" value=''<txp:article_custom category="video" section='<txp:section />' />'' />

…it doesn’t work. By that, I mean there is no reference to the variable name in the tag trace at all, nor is there any error thrown up in the browser to say my wrapping characters are not allowed.

Note that that I’ve used value='' (2 of ‘, not one of “) to wrap the article_custom.

Any advice as to where I’ve snarled up is most graciously received. Thank you in advance.

Last edited by gaekwad (2014-01-06 14:38:03)

Offline

#2 2014-01-06 14:28:29

etc
Developer
Registered: 2010-11-11
Posts: 5,393
Website GitHub

Re: [solved] Allowed characters in variable setting

Pete, I guess it’s '' inside ', and not otherwise. And you have already thanked me in advance in case it works. :)

Offline

#3 2014-01-06 14:37:51

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: [solved] Allowed characters in variable setting

Oh, good catch!

And thanks, by the way.

Offline

Board footer

Powered by FluxBB