[TYPO3] breadcrumbs / HMENU site navigation - I don't want link to the current page

Tomasz Chmielewski mangoo at wpkg.org
Fri Jun 15 14:10:31 CEST 2007


Tyler Kraft schrieb:

(...)

>> page2 - page4  # when on page4
>> page2 - page3  # when on page3
>> - page2        # when on page2 - problem
>>
>> Oops, a single hyphen in sot needed!
>>
>> So we can't use CUR.linkwrap for that, we have to figure out something 
>> else.
>>
>>
>> wrapItemAndSub also doesn't seem to work for that for the same reason as 
>> CUR.linkwrap.
>>
>> And there is no such thing as wrapSub, which would work for subitems only.
>>
>> Hmm. Did I miss anything in TSRef which allows me to achieve it?
>>
> 
> 
> I'd always wrap the hyphen on teh first item, that way its not going to 
> be there when there is no first item


I don't think I understand?


We have such a subtree:

page1 -> page2 -> page3 -> page4

And we want to render:

page2 - page4  # when on page4
page2 - page3  # when on page3
page2          # when on page2

There is always the first item, isn't there?


When we render on the current page, we get:

page2 - page4  # when on page4
page2 - page3  # when on page3
- page2        # when on page2 - problem


If we render on the first page only (how?), we would get:

page2 - page4  # when on page4
page2 - page3  # when on page3
page2 -        # when on page2 - problem



-- 
Tomasz Chmielewski


More information about the TYPO3-english mailing list