[TYPO3] Custom tag range
Andres Petralli
apetralli at icu.unizh.ch
Wed Oct 18 16:53:47 CEST 2006
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
More information about the TYPO3-english
mailing list