Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[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
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
Re: [solved] Allowed characters in variable setting
Oh, good catch!
And thanks, by the way.
Offline