Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2006-09-26 11:02:28

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 640
Website

Re: jnm_wrap

hey juanjo,

v.02 gives me the following error (in 4.0.4 beta/4.0-20060831 ):

<code>tag_error <txp:jnm_wrap afterchars=“15”> -> Textpattern Notice: Unknown tag attribute: afterchars on line 582</code>

—-
afterchars or maxchars: i definately ment the amount of chars, not a length in pixels or pica or em. – that thing would be good for headlines, you know.

no hurry, though, i might look into this later myself.


a hole turned upside down is a dome, though only when there’s gravity.

Offline

#12 2006-09-26 11:05:19

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

Re: jnm_wrap

Use “afterpos” instead.

Offline

#13 2006-09-26 11:08:29

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 640
Website

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, though only when there’s gravity.

Offline

#14 2006-09-26 11:48:53

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 640
Website

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, though only when there’s gravity.

Offline

#15 2006-09-26 13:36:12

juanjonavarro
Plugin Author
From: Valencia, Spain
Registered: 2005-05-16
Posts: 485
Website

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

Board footer

Powered by FluxBB