Help - Search - Members - Calendar
Full Version: Adding Id Tags To Sub Category Lists
Movable Type Community Forum > Using Movable Type > Categories and Entry Tags
artemis
Hi,

I am new to Movable Type and was wondering if it is possible to edit the sub category lists to have an id/class without the parent list having the same one?

for example

<ul id="maincat">
<li><a href="">cat name</a>
<ul id="subcat">
<li><a href="">cat name</a></li>
<li><a href="">cat name</a></li>
<li><a href="">cat name</a></li>
</ul>
</li>
<li><a href="">cat name</a></li>
<li><a href="">cat name</a></li>
</ul>
I need to do this in order to grab the sub cats with Javascript without the main cats being affected.

Is this possible?
artemis
Just found the answer for myself and it was beautifuly simple.

I just added <MTHasParentCategory> id="subcat"</MTHasParentCategory> with the HTML of the UL tag.

Brilliant.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.