How to add exception for homepage v2.XX


I’ve been looking all over the forum for this but simple question that might be very useful for others is how do we add an exception for the homepage on CS v2.X.X?

It was fairly easy on 1.3.5 but other than

{if $page.page_id==‘XX’} I can’t seem to find anything that could make it work.

The page_id will only apply for the content pages, but not for the homepage.

The goal is to display a specific div only if we are on the homepage.

Any help would be really appreciated!

Thanks a lot

Try {if $controller == ‘index’}.


Just worked! Amazing thanks so much Bob