Skip to content

Instantly share code, notes, and snippets.

@joekolade
Created March 14, 2023 14:44
Show Gist options
  • Select an option

  • Save joekolade/80ab758c5be7af577047e05e0a9d5bc3 to your computer and use it in GitHub Desktop.

Select an option

Save joekolade/80ab758c5be7af577047e05e0a9d5bc3 to your computer and use it in GitHub Desktop.
[HMENU] Hmenu in typoscript #refactor
/**
* Menu-Prototype
*/
###menu### = HMENU
###menu### {
# entryLevel = 1
# special = directory
# special.value = ###pid###
1 = TMENU
1 {
wrap = <ul>|</ul>
expAll = 1
noBlur = 1
NO = 1
NO {
ATagTitle {
field = title
fieldRequired = nav_title
}
wrapItemAndSub = <li class="first">|</li> |*| <li>|</li> |*| <li class="last">|</li>
# HTML-encode special characters according to the PHP-function htmlSpecialChars
stdWrap.htmlSpecialChars = 1
}
ACT < .NO
ACT {
wrapItemAndSub = <li class="active first">|</li> |*| <li class="active">|</li> |*| <li class="active last">|</li>
}
CUR < .ACT
}
2 < .1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment