[Typo3] Combining stdWrap.substring with wrap
Marcel Douwstra
marcel.douwstra at tros.nl
Fri Sep 23 16:29:47 CEST 2005
Hi list,
got a little problem where typo is behaving in an unexpected manner and
hopefully someone can help me with it.
I use HMENU to generate breadcrumbs on each page, so far so good!
Each link gets a link.wrap so the breadcrumbs look like : page1 //
subpage1 //subpage 2 //
I use substring to cut of the last // and then LATER use wrap to wrap a
div around it.. but the weird thing is that that substring is done on
the WHOLE output.
Here is my code:
temp.breadcrumbs = HMENU
temp.breadcrumbs {
special = rootline
special.range = 1|5
special.targets.3 = page
1 = TMENU
1.target = _top
1.wrap =
1.NO {
linkWrap = | //
}
stdWrap.substring = 0,-2
}
page.993 = TEXT
page.993 < temp.breadcrumbs
page.993.wrap = <div id="breadcrumbs">|</div>
The output is :
<div id="breadcrumbs"> <a href="index.php?id=225" target="_top"
onfocus="blurLink(this);">pagina4</a> // <a href="index.php?id=247"
target="page" onfocus="blurLink(this);">subpage1</a> //</di
As you can see it cuts of the last </div> to </di and that is not what I
wanted :s
Anyone have an idea why this happens?
Thanx,
Marcel Douwstra
*** Typo3 forum typo3.tros.nl ***
More information about the TYPO3-english
mailing list