XF 2.0 Any way to add a class to p-body-main from inside a template?

Jaxel

Well-known member
I want to add a class to .p-body-main (or a div above it), using code from within a template... WITHOUT using Javascript. Is such a thing possible?
 
I tried adding a contentKey value in my $viewParams... but sadly, that did nothing.
 
Figured it out... $this->contentKey from inside a controller.
 
Last edited:
Top Bottom