Posted By

xtine777 on 07/31/19


Tagged

fluid pid pageid


Versions (?)

Aktuelle Seiten ID in Fluid Template auslesen


 / Published in: TYPO3
 

Funktioniert auch in Partials etc... Z.B.: bootstrap_package/Resources/Private/Partials/Page/Navigation/Main.html

  1. Aktuelle Seiten-ID in Fluid: {v:page.info(field: 'uid')}
  2.  
  3. <li class="{f:if(condition: '({v:page.info(field: "uid")} == 1) && ({item.data.uid} == 2)', then: 'active')} {f:if(condition: item.active, then:' active')} {f:if(condition: item.children, then:' dropdown dropdown-hover')}">

Report this snippet  

You need to login to post a comment.