[TYPO3] Breadcrumb option split assist

JoH asenau info at cybercraft.de
Tue Feb 5 15:39:27 CET 2008


Jackson, Mary wrote:
> Hi all,
> I have a breadcrumb display issue.
>
> I need to be able to do:
> Home > Page1 > Current page
> AND
> Home >...> Page4 > Current page
> (Note the above >...> is static, not a link to any page it just marks
> that we have several levels skipped).
>
> What I have works for the complex part (the Home >...> page5 > current
> page) and when the navigation is only 2 levels but when it is 3 levels
> deep it skips the > between the first and second level.  I'm very
> fuzzy on option split for wrapping, what I have came about from meager
> knowledge and a whole lot of tinkering.
>
> What I am getting when on the 3rd level.
> HomePage2 > Current page
>
> What I need when on the 3rd level is:
> Home > Page2 > Current page
>
> Here is my code
>
> [snip]
>
> I hope I'm being clear.

This doesn't look like a job for optionSplit to me.
Should be done with conditions, since you want something else for any level
higher than 3.
Especially the treeLevel Condition should help here.

[treeLevel = 0,1,2]
    ### One HMENU with range 0|-1 and without the >...> here
[else]
    ### One HMENU with just "Home" and the >...> here
    ### Another HMENU with range -2|-1 here
[global]

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com
Jobs: http://www.professionals-only.com




More information about the TYPO3-english mailing list