Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
How does one generate a list of subcategories in a category?

 

 


nigelparry.net
User

Sep 2, 2009, 2:38 PM

Post #1 of 7 (4609 views)
Shortcut
How does one generate a list of subcategories in a category? Can't Post

How does one generate a list of subcategories in a category?

I know the answer to this is going to be easy, as one of the menu templates probably does that, and can therefore be modified. :-)
_____________________

For more information about Nigel Parry and nigelparry.net 
websites please see http://nigelparry.net

nigelparry.net: award-winning communications 
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting


Donna
Staff / Moderator


Sep 3, 2009, 10:16 AM

Post #2 of 7 (4553 views)
Shortcut
Re: [nigelparry.net] How does one generate a list of subcategories in a category? [In reply to] Can't Post

Hi Nigel!

Where are you wanting this list to be created? The easiest way is to create a new publish rule using the category menu template, with the "Subcategories Only" publish rule option selected. Does that make sense?

Donna

--
support@interactivetools.com


nigelparry.net
User

Sep 3, 2009, 1:11 PM

Post #3 of 7 (4541 views)
Shortcut
Re: [Donna] How does one generate a list of subcategories in a category? [In reply to] Can't Post

Yes, this makes total sense.

One section of this site I am working on reproduces a journal. I have a main Journal category and each journal is going to be a subcategory, so there's an easy way of just listing stuff from a single issue.

So the journal's index page needs to list all the subcategories (along with a cat image of the cover and a cat field with blurb) but not list the articles inside it. So people come to the Journal section, and see a list of the various issues that are online but not the articles in them until they click on a specific journal.

This current site has really stretched me. I managed to integrate Slideshow Pro into the AM2 system, using AM2's image gallery feature. The article page publishes an embedded flash thing with a FlashVars link to a second instance of the article page that uses the image gallery to publish an XML file. On the printable page version, the images appear listed on the page so that works as well. But all fun stuff!
_____________________

For more information about Nigel Parry and nigelparry.net 
websites please see http://nigelparry.net

nigelparry.net: award-winning communications 
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting


nigelparry.net
User

Sep 3, 2009, 7:07 PM

Post #4 of 7 (4500 views)
Shortcut
Re: [Donna] How does one generate a list of subcategories in a category? [In reply to] Can't Post

Hey Donna,

This totally isn't working. Pretty much what I want to do is publish a page that lists subcategories of the category with the following info:

Subcategory name
Subcategory image
Blurb
Links to subcategory index page

Another way of putting it is that I'm trying to publish a set of subcategories so it visually looks like an article list with summaries and summary images. Then people click on those and go to the category. Don't think I've tried this before. :-)

Here's the code I used in the template:

Code
<!-- templateInsert : $categoryList$ --> 
<!-- templatecell : categoryRow -->
<div id="article_list_container"><div class="article_headline_catlist">
<a href="$published.categoryIndex.url$">$category.name$</a></div>
$category.image$ <!-- templateCell : category.image.row -->
<a href="$published.categoryIndex.url$">
<img src="$file.webUrl$" width="$file.width$" height="$file.height$"
alt="$category.name$" border=1 align=left hspace=10 vspace=7
style="border-color:#000000;"/></a><!-- /templateCell : category.image.row -->
<div class="article_list_summary">$category.blurb$&nbsp;&nbsp;&nbsp;
<a href="$published.categoryIndex.url$">MORE&nbsp;&gt;&gt;</a></div>
<!-- /templatecell : categoryRow -->


and attached is a PDF of the rule that is publishing the categories (subcategory-pub-rule.pdf), the category Admin interface (category-page.pdf), and a sample subcategory (subcategory-page.pdf). On the page, the test category is not showing up.

This has got to be simple. :-)
_____________________

For more information about Nigel Parry and nigelparry.net 
websites please see http://nigelparry.net

nigelparry.net: award-winning communications 
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting

(This post was edited by nigelparry.net on Sep 3, 2009, 7:08 PM)
Attachments: subcategory-pub-rule.pdf (99.6 KB)
  category-page.pdf (76.3 KB)
  subcategory-page.pdf (101 KB)


ross
Staff / Moderator


Sep 7, 2009, 10:25 AM

Post #5 of 7 (4288 views)
Shortcut
Re: [nigelparry.net] How does one generate a list of subcategories in a category? [In reply to] Can't Post

Hi Nigel

Thanks for the update!

When you say it isn't working, what is happening instead of what you actually want to be happening?

Do you at least get a list of sub categories to appear? That should be the first goal here. Let's focus on getting a list of sub categories appearing on your category index pages and then go from there.

Is that already happening? Let me know :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - 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: http://www.interactivetools.com/consulting/



nigelparry.net
User

Sep 7, 2009, 3:26 PM

Post #6 of 7 (4277 views)
Shortcut
Re: [ross] How does one generate a list of subcategories in a category? [In reply to] Can't Post


Quote
When you say it isn't working, what is happening instead of what you actually want to be happening?


Nothing is appearing on the page. There is one parent category and there is one child category. I tried both default category menu templates (ie. including the alternate one) to publish a file with nothing there.

Attachment below includes the settings for the publishing rule that generates the page. The result, which does not list the child category, can be seen here: http://mizna.org/engine/test/yes.shtml
_____________________

For more information about Nigel Parry and nigelparry.net 
websites please see http://nigelparry.net

nigelparry.net: award-winning communications 
solutions for clients with something to say

Website & print design
Internet, public relations & media consulting
Attachments: catmenu.pdf (99.7 KB)


Donna
Staff / Moderator


Sep 9, 2009, 11:11 AM

Post #7 of 7 (4244 views)
Shortcut
Re: [nigelparry.net] How does one generate a list of subcategories in a category? [In reply to] Can't Post

Hi Nigel,

Switch that to "Multiple files - one for each selected category". As it is, there's no one "Selected Category", because you've chosen "one file, listing all selected categories", but the menu format you've chosen depends on a specific selected category.

Anyway, switch that to multiple files, and it should start working for you. :)

Donna

--
support@interactivetools.com