Re: [benedict] Highlight active link
Hi guys,
As a follow up to this one, I now have a bit more of an advanced need. This time instead of looking at the record number on the end, I have this:<a href="#" class="opener">
<span> <em>Short Courses</em> </span>
</a>
</a>Now, I would like to show the active link for this, which is coded like this:
<a href="#" class="opener selected">
<span> <em>Short Courses</em> </span>
</a>
</a>The key is getting that "selected" word added in there for the class.
To explain further, I am using this in the head of the document to show the short courses naviagtion (I have done the same thing to show long courses and accredited courses):
//short courses nav
list($courses_shortRecords, $courses_shortMetaData) = getRecords(array(
'tableName' => 'courses',
'where' => ' course_type LIKE "%Short Courses%" ',
)); So the bottom line is, that if the current record being shown on the detail page is a Short Course, I would like the Short Course section of the nav to be expanded (i.e. by having the word " selected" added to the opener class).
Thanks in advance.