Feature #16855

Add stdWrap to TMENU/GMENU

Added by Oliver Hader almost 13 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Content Rendering
Target version:
-
Start date:
2007-01-13
Due date:
% Done:

0%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

TMENU/GMENU just accept a normal wrap on that level. It's not possible to to wrap the whole level with other functions, like dataWrap to integrate fields, registers, and whatever.

So this is a feature request to enable stdWrap for TMENU/GMENU.

Example:
10 = HMENU
10 {
...
1 = TMENU
1 {
stdWrap.dataWrap = <ul class="menu {register:currentClass}">|</ul>
NO = 1
NO.allWrap = <li>|</li>
}
}

(issue imported from #M4780)

0004780.patch View (982 Bytes) Administrator Admin, 2007-01-13 14:09

0004780.typoscript.txt View (1.61 KB) Administrator Admin, 2007-01-13 14:28

History

#1 Updated by Oliver Hader almost 13 years ago

Please have a look to the small patch, which enables to use stdWrap for TMENU/GMENU.
The file 0004780.typoscript.txt shows, how the menu is generated and how the stdWrap.dataWrap is used for the second menu-level ("2 = TMENU") which uses register-data that was set by the first menu-level.

You can see the results on a website in development: http://wsv.t3ip.de/
The functionality this report is about, was used in the horizontal main-menu ("Starseite", "Wintersport", etc.).
So this makes it possible to have individual setting for sub-menus (children), depending on the parent-menu.

#2 Updated by Oliver Hader almost 13 years ago

Committed to Trunk.

Also available in: Atom PDF