Concrete and Section

If you want to query whether a given page is in a specific section, you should go:

$this->section(‘about/something’);

This returns true or empty. Useful for, i.e. adding classes to images to hilite them.

Attention: do NOT add a leading slash, as stated incorrectly in the Concrete documentation (as of 11.01.2010).

Leave a Reply