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

Christopher Torgalson bedlamhotel at gmail.com
Thu Jun 14 18:47:44 CEST 2007


Hello again,

On 6/14/07, Tyler Kraft <headhunterxiii at yahoo.ca> wrote:
> The other option is to just render the last link in the menu and wrap it
> with a static link for the first item.
>
> Or break it into a COA item with two menus, one of the first page as a
> menu and then one as a menu of the current/last page
>
>
>
> Christopher Torgalson wrote:
> > Hi,

<snip>

> >>
> >> Hmm, one more question.
> >>
> >> If I have such page tree:
> >>
> >> page1
> >>      \page2
> >>            \page3
> >>                  \pageN
> >>
> >> And I want to render always the first and last page entry? And skip the
> >> pages in the middle?
> >>
> >> page1 > pageN
> >>
> >> Is it possible to do it with special.range? I tried, but didn't succeed.
> >
> >
> > I don't have time to test it, but I believe that optionSplit is
> > supposed to apply to ALL properties in menuitems; try this:
> >
> >
> > NO {
> >  doNotShowLink = 0 |*| 1 |*| 0
> > }


I couldn't resist testing this because if it worked it would be very,
very cool. Turns out it works fine, but you will have to adjust your
wraps--if you don't, the TMENU will render wraps for every menu item
even though most of them are not shown. The following is tested and
working:

page.100 = HMENU
page.100 {
	1 = TMENU
	1 {
		noBlur = 1
		wrap = <ul>|</ul>
		
		NO {
			doNotShowLink = 0 |*| 1 |*| 0
			wrapItemAndSub = <li>|</li> |*| | |*| <li>|</li>
		}
	}
}



-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list