Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
sub-categories placeholder

 

 


4blacksheep
User

Mar 10, 2008, 1:32 PM

Post #1 of 11 (1112 views)
Shortcut
sub-categories placeholder Can't Post

Hello,

What would be the placeholder for a category with sub-cats?

I want to say:
If the Category has Sub-categories then....

$category.depth$ doesn't do the trick because it only works when I am in the Sub-cat and not when I am in Depth 0.

Thanks in advance,
Roni


Jake
Staff / Moderator


Mar 10, 2008, 3:29 PM

Post #2 of 11 (1110 views)
Shortcut
Re: [4blacksheep] sub-categories placeholder [In reply to] Can't Post

Hi Roni,

I don't think there are any placeholders that you could use for this - what exactly were you trying to set up? There might be another way to get it going. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



4blacksheep
User

Mar 10, 2008, 8:06 PM

Post #3 of 11 (1107 views)
Shortcut
Re: [Jake] sub-categories placeholder [In reply to] Can't Post

I'll try to explain.

Not all categories have sub-categories. some do and some in the future will have, so it's important for me to keep the menu flexible and easy to use.

I've been working on this all day and couldn't figure it out.
I want the article titles to show under the category name. it works fine in the categories without sub-categories and in the sub-categories.
but in the categories with sub-categories it lists the article titles again under level 0 and I don't know how to get rid of those titles.

Let me know if you need more explanations.

Thanks for your help,
Roni


Jake
Staff / Moderator


Mar 11, 2008, 1:01 PM

Post #4 of 11 (1104 views)
Shortcut
Re: [4blacksheep] sub-categories placeholder [In reply to] Can't Post

Hi Roni,

How are you bringing in the articles under the category names right now? Do you have a publishing rule set up to create these lists? What template(s) are you working with?
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



4blacksheep
User

Mar 11, 2008, 2:32 PM

Post #5 of 11 (1103 views)
Shortcut
Re: [Jake] sub-categories placeholder [In reply to] Can't Post

using Headlines.
I created a new publish rule using a template that has only the article title in it.

I bring the headlines in the menu under the category name.



Code
<li> <a href="$published.categoryIndex.url$">$category.name$</a></li> 
<li >
<!--#include virtual="/artman2/publish/$category.filename$/categoryHeadlines.shtml" -->
</li>


I am open to any other way to set this up.

Roni


Jake
Staff / Moderator


Mar 12, 2008, 1:16 PM

Post #6 of 11 (1096 views)
Shortcut
Re: [4blacksheep] sub-categories placeholder [In reply to] Can't Post

Hi Roni,

What are the conditions you want to use to bring the headlines in? Just when an article has sub-categories? Is this because you want to avoid loading headlines on single page content categories, or something else?

Sorry for all of the questions, I'm just trying to get a better idea of what you need. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



4blacksheep
User

Mar 12, 2008, 1:55 PM

Post #7 of 11 (1095 views)
Shortcut
Re: [Jake] sub-categories placeholder [In reply to] Can't Post

when a category has sub-categories I don't want the headlines of level 0 to appear and I want it to have a "selected" style.

so it will look something like this:
level0 selected
level1
headlines
level1
headlines
level0
level0
level0

Thanks for your help,
Roni


Jake
Staff / Moderator


Mar 13, 2008, 4:05 PM

Post #8 of 11 (1081 views)
Shortcut
Re: [4blacksheep] sub-categories placeholder [In reply to] Can't Post

Hi Roni,

But when your 0-level category doesn't have subcategories, you want to display headlines for it? I'm a bit confused because in that example only the subcategories are loading headlines in, which means that you could use a templateIf based off of $category.depth$ > "0". Would that work?
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



4blacksheep
User

Mar 14, 2008, 10:48 AM

Post #9 of 11 (1044 views)
Shortcut
Re: [Jake] sub-categories placeholder [In reply to] Can't Post

I tried that before and it didn't work but I tried using $category.depth$ > "0" again and it works now the way I want it to.

almost..

I only have one problem now, I can't get level0 with subcategories to have the "selected" style. I really need it because otherwise it's confusing to know where the sub-categories belong to.

here is the code that I am using:

Code
<ul id="sidemenu"><!-- templateInsert : $categoryList$ --> 
<!-- templatecell : categoryRow -->


<!-- templateIf: $category.depth$ == "0" -->

<!-- templateIf: $category.isSelected$ != '1' -->
<li class="catMenu-0"><a href="$published.categoryIndex.url$">$category.name$</a></li>
<!-- /templateIf -->


<!-- templateIf: $category.isSelected$ == '1' -->
<li class="catMenu-0_selected"> <a href="$published.categoryIndex.url$">$category.name$</a></li>
<li >
<!--#include virtual="/artman2/publish/$category.filename$/categoryHeadlines.shtml" -->
</li>
<!-- /templateIf -->

<!-- /templateIf -->



<!-- templateIf: $category.depth$ > "0" -->


<!-- templateIf: $category.depth$ == "0" -->
<li class="catMenu-0_selected"> <a href="$published.categoryIndex.url$">$category.name$</a></li>
<!-- /templateIf -->

<!-- templateIf: $category.depth$ == "1" -->

<li class="catMenu-1_selected"> <a href="$published.categoryIndex.url$">$category.name$</a></li>
<li>
<!--#include virtual="/artman2/publish/$category.filename$/categoryHeadlines.shtml" -->
</li>
<!-- /templateIf -->

<!-- /templateIf -->

<!-- /templatecell : categoryRow -->
</ul>


to answer your question, when level0 does not have sub-categories I want it to show the headlines when selected.

Thanks!
Roni


Jake
Staff / Moderator


Mar 17, 2008, 3:15 PM

Post #10 of 11 (992 views)
Shortcut
Re: [4blacksheep] sub-categories placeholder [In reply to] Can't Post

Hi Roni,

I spent some time looking into this and I don't think there's a way to assigned the selected style to a parent-level category when its subcategory is actually the selected category. There aren't any placeholders available for assessing the relationship between parent and sub categories, which is what makes this so difficult.

I'm going to keep this post in the back of my mind to see if any solutions present themselves, but I'm reasonably certain that there won't be any way to set this up.

Let us know if you have any other questions. Smile
-----------------------------------------------------------
Cheers,
Jake Swanson - Product Specialist
support@interactivetools.com


Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.



4blacksheep
User

Mar 18, 2008, 9:30 AM

Post #11 of 11 (972 views)
Shortcut
Re: [Jake] sub-categories placeholder [In reply to] Can't Post

seems like a very basic thing to show the relationship between the parent level and its subcategories.

Thanks for looking into it.

Roni

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4