How to add a class to highlight a current list and detail page

  • How can I add a class to highlight a current menu item on list and detail page?


    I'd need to compare the {slug} with id="title" How do I do this?


    Code
    1. <perch:content id="title" type="text" label="Service Name" required="true" title="true" />
    2. <perch:content id="slug" for="title" type="slug" suppress="true" />