Last active
August 4, 2020 12:51
-
-
Save julrich/d91c1ac1968418e6ae8290f2a2e90afb to your computer and use it in GitHub Desktop.
Fully cached TYPO3 HMENU navigation example with expAll and 'active', 'current' states
t3easy
commented
Apr 30, 2020
And another nice gotcha. Should probably start revisiting our current implementation... ;)
In order to avoid listing of all pages where the resulting regular expression would be empty, like it is here done
[globalVar = TSFE:id={$page.uid.root}] || [globalVar = TSFE:id={$page.uid.404}] || [globalVar = TSFE:id={$page.uid.noTranslation}] || [globalVar = TSFE:id={$page.uid.search}]
maybe the better solution would be
page.stdWrap.replacement.10 {
search.cObject = COA
search.cObject.10 = HMENU
search.cObject.10 {
....
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject.value = somethingwhatever
stdWrap.wrap = #(|)#i
}
....
}
works for me, at least :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment