 |

HDBC
User
Oct 28, 2006, 10:16 PM
Post #1 of 2
(270 views)
Shortcut
|
|
Is sub-category specific menu formatting possible in AM2?
|
Can't Post
|
|
Hey All, In AM1 were were able to apply varying formatting to the template cells for subcategory menus, both selected and unselected. How can we do this in AM2 ?? For example, look at: http://www.orcaatcolumbia.org/artman/publish/cat_index_48.shtml I'm not sure how to really accomplish the same thing in AM2. Attached is an AM1 category list template as an example...
|
|
Attachments:
|
category_list.html
(4.63 KB)
|
|
|  |
 |

Dave
Staff
/ Moderator

Oct 30, 2006, 3:55 PM
Post #2 of 2
(259 views)
Shortcut
|
|
Re: [HDBC] Is sub-category specific menu formatting possible in AM2?
[In reply to]
|
Can't Post
|
|
Erin, When you import your v1.00 data Article Manager should automatically adjust your menu template. But basically you can do it like this. In Artman1 there was multiple templatecells. One for each row depth (eg: row_depth1, row_depth2, row_depth3, etc) In Artman2 there's just one templatecell "categoryRow" that is used for all depths. You put templateIf tags inside that templatecell to show different html for different categories based on depth, isSelectedCategory, etc. For example:
<!-- templatecell : categoryRow --> <!-- templateIf : $category.depth$ == '1' --> <!-- templateIf : $isSelectedCategory$ == '1' --> Code for selected depth 1 category goes here. <!-- /templateIf --> <!-- templateIf : $isSelectedCategory$ == '0' --> Code for unselected depth 1 category goes here. <!-- /templateIf --> <!-- /templateIf --> In any case, it might seem a little more complicated at first, but it actually can make things a lot simpler in the long run. If you haven't already, try upgrading your artman1 into a parallel directory where you can play around with it before making it live and have a look at the default categoryMenu.html template and the one it converts from your artman1 installation. Also the template docs here are quite good: http://www.interactivetools.com/docs/articlemanager2/templates/index.html Hope that helps, let me know if I can give you any more details. Dave Edis - Senior Developer interactivetools.com
(This post was edited by Theo on Oct 30, 2006, 10:07 PM)
|
|
|  |
 | |  |
|