[TYPO3] breadcrumbs / HMENU site navigation - I don't want link to the current page
Tomasz Chmielewski
mangoo at wpkg.org
Fri Jun 15 13:47:01 CEST 2007
Tyler Kraft schrieb:
> Ok well its boolean, so a flag of 1 turns it on and a flag of 0 turns
> it off, after that its just basic use of option split.
>
> So I guess it means you need to read up and really practice some option
> split (I don't mean that in a rude way, just I don't think its something
> I can really explain well, but I'll try). Its worth doing as its very
> handy and powerful to understand, and makes menus a breeze as they say.
>
> Option split breaks stuff into 3 parts, last part, first part and then
> the middle, and thats the order it works on them.
>
> So lets look at the last part of the option split - the last bit after
> the last |*|. The 0 says DONT use on the last item, and as its the only
> item for the last part it only effects the last item of the menu. Then
> it looks at the first part of the option split - 1||0 - and it says USE
> on the first item of the menu but NOT the second item. Then it looks at
> all the things in the middle (1) and says USE on all items that were not
> in the end part or the beginning part of the option split.
>
> Hope that helps.
Thanks for a great explanation (well, I had to read it two or three
times to understand it).
So it's double "|" that make logical sense (||), not single "|" (|). I
thought a single "|" makes some sense, no wonder I got weird results :)
In other words (perhaps only I can understand my own explanation, but well):
doNotShowLink = 1 || 0 |*| 1 |*| 0
means we have 4 parts, which are split by || or |*|:
1) logical yes, 1, (or, not show the first link), for the first element
2) logical no, 0, (or, not doNot show -> show) for the second element
3) all following elements take logical yes, 1 (don't show), because of
|*| 1 |*|
4) the last element, no, 0 -> show it
Now that I think I understand it, I have yet another logical challenge.
I hope I'm no being too demanding :)
Out of page subtree, when on "page4":
page1 > page2 > page3 > page4
I can display:
page2 page4
What I actually want to display is:
page2 - page4
No problem - add:
1.CUR = 1
1.CUR.linkWrap = -|
And it will render:
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?
--
Tomasz Chmielewski
http://wpkg.org
More information about the TYPO3-english
mailing list