Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-21 04:05:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

<txp:posted /> not working when using wraptag attribute

Hi.

When using this:
<txp:posted format="%d %b, %Y" wraptag="span" class="posted" />
nothing is outputted.

Please, forgive me if this has been reported before.

Thanks!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#2 2006-11-21 04:19:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: <txp:posted /> not working when using wraptag attribute

Gah, used doWrap instead of doTag. Fixed (r2094). Thanks.

Offline

#3 2007-01-04 12:56:32

tranquillo
Archived Plugin Author
Registered: 2005-03-07
Posts: 127
Website

Re: <txp:posted /> not working when using wraptag attribute

<txp:posted /> still (rev. 2191) doesn’t work correctly, because the class attribute on the last line should be on third position:

return ($wraptag) ? doTag($out, $wraptag, ‘’, $class) : $out;

should be

return ($wraptag) ? doTag($out, $wraptag, $class) : $out;

as function doTag($content, $tag, $class = ‘’, $atts = ‘’, $id = ‘’).

Otherwise <txp:posted class=“date” wraptag=“p” /> outputs <pdate>…</p>

Offline

#4 2007-01-04 19:24:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: <txp:posted /> not working when using wraptag attribute

Thanks.

Offline

Board footer

Powered by FluxBB