Posted By


xtine777 on 07/31/19

Tagged


Statistics


Viewed 1183 times
Favorited by 0 user(s)

Aktuelle Seiten ID in Fluid Template auslesen


/ Published in: TYPO3
Save to your folder(s)

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


Copy this code and paste it in your 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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.