[TYPO3] Custom tag range
Andres Petralli
apetralli at icu.unizh.ch
Fri Oct 20 15:42:00 CEST 2006
Is there really nobody who can help me clarify this? I would be very
glad if someone could just give me a pointer into the right
direction. I'll be willing to read code if necessary :) .
On Oct 18, 2006, at 4:53 PM, Andres Petralli wrote:
> Hi everyone,
>
> I'm having trouble understanding the range of a custom tag. I have
> created a tag <popup> which should be wrapped around other content.
> This will process the content with a very simple php script. The
> wrapped content includes things like <p> and <ul>s, but is only
> rendering correct when these are missing. <p> and <ul> tags seem to
> break my custom tag. Here's an example:
>
> <popup>blablalbla<p><ul><li>bla1</li><li>bla2</li></ul></
> p>blablabbla</popup> does not work
> <popup>blablalbla asdf asl dfls dfasd blablabbla</popup> does work
>
>
> Here's my ts:
>
> # Define new tag for popup
> # Add the custom tag, <POPUP>...</POPUP> to the parseFunc of bodytext
>
> tt_content.text.20.parseFunc.tags {
> popup.stripNL = 1
> popup.parseFunc >
> popup.parseFunc {
> makelinks = 1
> makelinks.http.keep = path
> makelinks.http.extTarget = _blank
> makelinks.mailto.keep = path
> tags {
> link = TEXT
> link {
> current = 1
> typolink.extTarget = _blank
> typolink.target={$cLinkTagTarget}
> typolink.wrap = <B><FONT color=red>|</FONT></B>
> typolink.parameter.data = parameters : allParams
> }
> typolist < tt_content.bullets.default.20
> typolist.trim = 1
> typolist.field >
> typolist.current = 1
> }
> }
> popup = PHP_SCRIPT
> popup.file = fileadmin/templates/php/popup.php
> popup.callRecursive = 1
> popup.callRecursive.tagStdWrap.HTMLparser = 1
> popup.stdWrap.wrap >
>
> }
>
>
> Has anyone a clue what I'm missing? How can I make my tag work with
> other tags like p,ul,ol in between?
>
> Your help is very much appreciated!
>
> Thanks,
>
> Andres_______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list