Posts by Uuumpf


    I'm trying to modify a template to dynamically add a html-class to a position-div in template.php.

    The class name should contain the id or slug of the current page.

    For example:

    When page "home" is rendered, class "main-home" should be added,

    when page "contact" is rendered, class "main-contact".

    Is there a way to get the current page id or slug out of the $view-object in template.php? Or another way?