Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: jnm_wrap
oops pardon me, thatw as stupid, should have read thread further 8).
muchas gracias for that feature juanjo!
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: jnm_wrap
more info (and troubles):
i inserted a blank into the br tag in this line:
<code>return substr($text, 0, $pos+strlen($after)).”<br />”.substr($text, $pos+strlen($after));</code>
i use the tag in an article form like this:
<code><txp:jnm_wrap afterpos=“15”>
<txp:article_custom form=“live_sidebar1_today” limit=“5” category=“live-date” sortby=“Posted” sortdir=“desc” listform=“live_sidebar1_today” time=“any” />
</txp:jnm_wrap></code>
it doesn’t wrap, though. instead it breaks the line without content and displays “/>” before the first entry of the displayed list.
like this:
27. Sep.
empty line
/>the Sighs in Berlin Bar 25
28.Sep.
no band in no city
no location
all of that in the 4.0-20060831 prerelease version of textpattern.
maybe these troubles are related to the beta?
i don’t know yet.
Last edited by jayrope (2006-09-26 11:50:29)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: jnm_wrap
I don’t know what is happening. I just insert a “br” after the n-th position. The parsing of the content inside this tag is done by a textpattern function.
:-\
Offline