Jump to content

Hiding a button on forums view only

Featured Replies

Posted

I have added a button to my forum that i want to display site wide but don't want it to show on forum sections. 

 

So i want it to show on index and individual topics but not in forum sections. Is there a condition i can use to hide it on forum sections only?

Forum view page

request.app = 'forums',

request.module = 'forums',

request.controller = 'forums'

Use condition

{{if request.app == 'forums' and request.module == 'forums' and request.controller == 'forums'}}
	Forum view page
{{else}}
	Other pages
{{endif}}

 

  • Author

Brilliant thank you! 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.