Project

General

Profile

Actions

Feature #16855

closed

Add stdWrap to TMENU/GMENU

Added by Oliver Hader about 17 years ago. Updated about 17 years ago.

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

0%

Estimated time:
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)


Files

0004780.patch (982 Bytes) 0004780.patch Administrator Admin, 2007-01-13 14:09
0004780.typoscript.txt (1.61 KB) 0004780.typoscript.txt Administrator Admin, 2007-01-13 14:28
Actions #1

Updated by Oliver Hader about 17 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.

Actions #2

Updated by Oliver Hader about 17 years ago

Committed to Trunk.

Actions

Also available in: Atom PDF