Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-19 07:51:22

kkobashi
Member
Registered: 2008-01-27
Posts: 51
Website

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: “ /&gt;

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

#2 2008-03-19 08:32:55

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

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

#3 2008-03-19 08:54:28

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Offline

#4 2008-03-19 10:54:36

kkobashi
Member
Registered: 2008-01-27
Posts: 51
Website

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

Board footer

Powered by FluxBB