菜单

TSMENU给指定页面加class

2012年08月30日 - typoscript
NO.ATagParams = 
NO.ATagParams.append = TEXT
NO.ATagParams.append.value = class="lightbox"
NO.ATagParams.append.if {
  value.field = uid
  equals = 77
}

lib.navigation = HMENU
lib.navigation {
  1 = TMENU
  1 {
    noBlur = 1
    NO.allWrap = 
  • |
  • NO.allWrap { prepend = LOAD_REGISTER prepend { # first method class1.cObject = CASE class1.cObject { key.field = uid default = TEXT default.value = defaultclass 458 = TEXT 458.value = classforpage458 459 = TEXT 459.value = classforpage459 } # second method class2 = defaultclass class2.override = classforpage458and459 class2.override.if.isInList.field = uid class2.override.if.value = 458,459 } insertData = 1 } NO.stdWrap.htmlSpecialChars = 1 ACT = 1 ACT.allWrap < .NO.allWrap ACT.allWrap =
  • | ACT.wrapItemAndSub = |
  • wrap =
      |
    } 2 < .1 3 < .1 4 < .1 5 < .1 }

    发表评论

    电子邮件地址不会被公开。 必填项已用*标注