2017-09-04 77 views

回答

0

正如在我安裝的外部鏈接應在新窗口中的所有外部鏈接呈現與target="_blank"這個開放能夠在CSS來改變外觀:

a[target="_blank"], 
a.link-external { color:red, .... } 

您可以定義用於外部鏈接的目標( config.extTarget),但處理不在typoscript中完成。如果你想爲CSS做類似的處理,你需要在同一個地方完成。

0
lib.mainNav = HMENU 
    lib.mainNav { 
     1 = TMENU 
     1 { 
      wrap = <ul class="nav navbar-nav">|</ul> 
      NO = 1 
      NO { 
       wrapItemAndSub = <li class="f1">|</li> || <li class="f2">|</li> |*| <li class="m1">|</li> || <li class="m2">|</li> |*| <li class="l1">|</li> || <li class="l2">|</li> 
       ATagTitle.field = title // subtitle 
       ATagParams = calss="f" data-doktype="doktype_{field:doktype}" 
       ATagParams.insertData = 1 
       wrapItemAndSub.override.cObject = COA 
       wrapItemAndSub.override.cObject { 
        if { 
         value = 3 
         equals.field = doktype 
        } 
        10 = TEXT 
        10.value = <li class="externLi">|</li> 
       } 

       ATagParams { 
        override.cObject = COA 
        override.cObject { 
         if { 
          value = 3 
          equals.field = doktype 
         } 
         10 = TEXT 
         10.value = calss="extern" data-doktype="doktype_{field:doktype}" 

         if { 
          value = 4 
          equals.field = doktype 
         } 
         10 = TEXT 
         10.value = calss="shortcut" data-doktype="doktype_{field:doktype}" 
        } 
       } 
       stdWrap.case = upper 
      } 
     } 
    }