How to display second level and third level menu with title as parent menu.


Typo script for display sub menu of current page with header of parent menu.

In this typo script we have to merge two different object in one section.

For that we have to use “COA

Following script should do the trick.

lib.leftMenu = COA
lib.leftMenu {

    10 = TEXT
    10 {
        data = leveltitle:-2
        wrap = 

|

} 20 = HMENU 20 { entryLevel = 1 wrap = <ul>|</ul> 1 = TMENU 1 { target = _self NO { wrapItemAndSub = <li>|</li> ATagTitle.field = subtitle // title stdWrap.htmlSpecialChars = 1 } ACT = 1 ACT{ wrapItemAndSub = <li class="active">|</li> | </li> ATagTitle.field = subtitle // title stdWrap.htmlSpecialChars = 1 ATagParams = class="active" } } 2 < .1 2{ wrap = <ul class="subSsubNavigation">|</ul> } } }

Note :

leveltitle:-2 
This will help you to display parent page title.

I hope this will work for you and this typosctipt will help for merge more than two typosctipt / object.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s