
Damon
Staff
/ Moderator

Nov 22, 2006, 8:07 AM
Post #6 of 7
(1262 views)
Shortcut
|
|
Re: [HDBC] AM2 - templateIF magic in categoryMenu.html
[In reply to]
|
Can't Post
|
|
Hi Eric, Thanks for the example link, that helped. :) Try this (categoryMenu.html) code: <table border="0" cellspacing="0" cellpadding=5 width="100%" class="nav_left_header"> <tr> <td><a href="$published.globalIndex.url$">$my.homepageName$</a></td> </tr> </table> <table border="0" cellspacing="0" cellpadding="0" width="100%" class="nav_left"> <!-- template insert : $categoryList$ --> <!-- templatecell : categoryRow --> <tr[templateIf : $isSelectedCategory$ == '1'] class="selected_category"[/templateIf]> <!-- templateIf : $isSelectedCategory$ == "0" --> <td> </td> <!-- /templateIf --> <!-- templateIf : $isSelectedCategory$ == "1" --> <!-- templateIf : $category.depth$ == "0" --> <td style="background: rgb(153, 51, 51); width: 8px;"> </td> <!-- /templateIf --> <!-- templateIf : $category.depth$ == "1" --> <td style="background: rgb(153, 51, 51); width: 8px;"> </td> <!-- /templateIf --> <!-- templateIf : $category.depth$ == "2" --> <td style="background: rgb(153, 51, 51); width: 8px;"> </td> <!-- /templateIf --> <!-- /templateIf --> <td class="categoryDepth$category.depth$"> <a href="$published.categoryIndex.url$">$category.name$</a> </td> </tr> <!-- /templatecell : categoryRow --> <!-- templateIf : $categoryList$ eq "" --> <tr><td>No categories found.</td></tr> <!-- /templateIf --> <tr> <td> </td> <td> <a href="$published.globalRSS.webpath$"> <img src="$_weburl$images/webfeed.gif" width="16" height="16" border="0" align="left"></a> <div class="webfeed"><a href="$published.globalRSS.webpath$">News Feed</a></div> </td> </tr> </table> The selected catgeory will now have a red box to the left. Just apply your styles classes to the code and that should be it. Let me know how it works out. --------------------------------------------------- Cheers Damon Edis interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|