Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Bug in article_custom tag?
I’m trying to create a generic section page template using the <txp:article_custom> tag and am running into a possible bug.
Here’s the code:
<txp:output_form form=“docheader_sectionpage”/>
<body class=“page” id=”<txp:section/>”>
<div id=“page-wrapper”>
<txp:output_form form=“header”/>
<txp:output_form form=“section_bar”/>
<txp:output_form form=“location_bar”/>
<txp:article_custom limit=“1” form=“section_page” section=”<txp:section />” />
<txp:output_form form=“sidebar”/>
<txp:output_form form=“footer”/>
</div>
</body>
</html>
I am attempting to have the section parameter passed through the article_custom tag.
Instead, what I am getting is a double quote, followed by a great than sign inserted into my xhtml:
“ />
It is also screwing up my rendering of the section pages, defaulting to somehow my about page. No idea why it is doing that.
When I replace the custom tag above with either of:
<txp:article_custom limit=“1” form=“section_page” section=“contact” />
<txp:article_custom limit=“1” form=“section_page” section=“about” />
This works perfectly as does the insertion of the section into the id of the body tag.
But I don’t want that for the obvious reason that I would have to create separate pages for each section (imagine tons of them – seems terribly too much work).
Is there a bug in the parsing of the article_custom tag? Can we fix this? Is there a workaround?
Last edited by kkobashi (2008-03-19 07:51:42)
Kerry Kobashi
Kobashi Computing
Offline
Re: Bug in article_custom tag?
this is not a bug. you can’t use tags in tags just like that. asy_wondertag is your friend.
Offline
Offline
Re: Bug in article_custom tag?
Thanks jm, that worked well. It looks funny in the page template but it works.
Kerry Kobashi
Kobashi Computing
Offline
Pages: 1