OJS2 Detect Journal Section on template


Hey guys! I have an OJS2 instalation, wich has several sections like “articles”, “book review” and “essay”.
So here is the cuestion:

In a OJS2 Template page like Article/View, how can i detect wich kind of section im rendering right now?

I know my section IDs. But is it a post parameter or something? How can i use it to show/hide things in the template.


Hi @darkermisae,

You should be able to query the article object using $article->getSectionId().

Alec Smecher
Public Knowledge Project Team

Wow, thanks a lot. I´ll give it a try right now.