How to tell if homepage or journal page

Hi,

I have contents in my header that I want to only display on Site home page, and not on any journal page. Is there an OJS way to this? Like a variable holding the value of the current page.

I’m thinking of an if statement like {if $isSite} {*Some code to execute*} {/if} or something like that.

Hi @mugambbo,

You can check…

{if $currentJournal}
    ...we're in a journal's context...
{else}
    ...this is a site-wide page...
{/if}

Regards,
Alec Smecher
Public Knowledge Project Teanm

Thanks dude. Putting this to the test…