Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
<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!
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
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