[Typo3] Combining stdWrap.substring with wrap
Tobias Erlacher
erl at maguma.com
Fri Sep 23 16:37:18 CEST 2005
Hi Marcel,
you could use a optionsplit for this, eg (untested):
temp.breadcrumbs = HMENU
temp.breadcrumbs {
special = rootline
special.range = 1|5
special.targets.3 = page
1 = TMENU
1.target = _top
1.wrap =
1.NO {
allWrap= | //|*||*| |
linkWrap = | //
}
}
more information about optionsplit:
tsref
http://typo3.org/doc.0.html?&tx_extrepmgm_pi1%5BextUid%5D=270&tx_extrepmgm_pi1%5BtocEl%5D=289&cHash=6604390b37
a nice article written by Zach Davis explaining optionsplit in detail
http://castironcoding.com/resources/typo3-tricks/single-typo3-tricks/index.html?tx_ttnews%5Btt_news%5D=5&tx_ttnews%5BbackPid%5D=45&cHash=8bfd546c52
have fun
Tobias Erlacher
www.typo3wizard.com
Marcel Douwstra wrote:
> 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