Use frontend user groups in fluid

  • 6 LTS
  • 7 LTS
  • 8 LTS
  • 9 LTS
  • 10-dev

Frontend

Often we only want to display content for certain frontend user groups, for example, information for editors. Fluid already has a ready-made view helper for this purpose.

 

<f:security.ifHasRole role="Administrator">
 <p>Information for admins: {adminInformation}</p>
</f:security.ifHasRole>

 

Tested with TYPO3 6.2.14, 7.4.0 & 8.7.4