I got a HMENU which uses images and stuff. (i removed that part here to keep it simple)
What i want is that each menuItem calls the controller which adds more special cases (related sublinks) to the menu. But the controller needs to know which pid is calling it. So the idea was to use settings to parse the pid to the controller.
Well that works but only the text "pid" will be parsed not its value like 439 or whatever pid the menuItem got.
How do i parse the value of a field?
If there is another solution with a different method that would be great too :)
how do i have to modify the keylines:
settings.pageUid = TEXT
settings.pageUid.field = pid
TYPOSCRIPT:
temp.CE_SUBNAVIGATION = HMENU
temp.CE_SUBNAVIGATION {
special = directory
1 = TMENU
#1.noBlur = 1
1.wrap = <nav class="content-subnavigation-container">|</nav>
1.NO = 1
1.NO {
doNotLinkIt = 1
stdWrap.cObject = COA
stdWrap.cObject {
40 = USER
40 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
pluginName = reference
extensionName = MyExt
controller = Reference
vendorName = VENDOR
action = hmenulisting
switchableControllerActions {
Reference {
1 = hmenulisting
}
}
settings =< plugin.tx_myextname.settings
persistence =< plugin.tx_myextname.persistence
view =< plugin.tx_myextname.view
update =< plugin.tx_myextname.update
settings.pageUid = TEXT
settings.pageUid.field = pid
}
}
}
}