[TYPO3] Breadcrumb as hierarchical <ul>

bernd wilke xoonsji02 at sneakemail.com
Wed Jul 16 20:57:50 CEST 2008


on Wed, 16 Jul 2008 20:35:03 +0200, Xavier Perseguers wrote:

> Hello,
> 
> Does someone knows how I may create a breadcrumb menu (rootline) as a
> hierarchical list:
> 
> Instead of
> 
> Home : level1 : level2 : current page
> 
> I would like to get
> 
> Home
>    level1
>      level2
>         current page
> 
> that is
> 
> <ul>
>    <li>Home
>      <ul>
>        <li>level1
>          <ul>
>            <li>level2
>              <ul>
>                <li>current page</li>
>              </ul>
>            </li>
>          </ul>
>        </li>
>      </ul>
>    </li>
> </ul>

that might be done like other hierarchical UL-LI-menus. it depends on the 
correct wrapping.

temp.menu = HMENU
temp.menu {
	wrap = <div> | </div>
	entryLevel = 1
	1 = TMENU
	1 {
		wrap = <ul>| </ul>
		NO.wrapItemAndSub = <li> | </li>
		ACT < .NO
		ACT = 1
	}
	2 < .1
	3 < .1
	4 < .1
	5 < .1
} 

if this wrapping does not work with breadcrumbs you may use the normal 
menu and define only ACT:
	1 {
		wrap = <ul>| </ul>
		ACT < .NO
		ACT = 1
		ACT.wrapItemAndSub = <li> | </li>
		NO >
	}

bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html


More information about the TYPO3-english mailing list