[solved]displaying cataloger items of sub categories

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
karry
Forum Members
Forum Members
Posts: 26
Joined: Thu Aug 30, 2007 12:35 pm

[solved]displaying cataloger items of sub categories

Post by karry »

I am using the Cataloger module for a website (http://www.artonlinegallery.kfasterholdt.dk/index.php?page=kunstnere) with the following structure.

1. Artists
      1.1 Country (category)
              1.1.1 Artist (Category)
                    1.1.1.1 Image (Item)

on the Artists page I would like to show the all from the Artist category. I have tried using

Code: Select all

{cms_module module='Cataloger' action='all' sub_template='Land' recurse='categories_all'}
But then both Country and Artist will show up, is there a way to just display the sub category Artist?
Last edited by karry on Thu Jan 29, 2009 4:22 pm, edited 1 time in total.
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: displaying cataloger items of sub categories

Post by Coldman »

Hi!

Add alias='Artist' . This will  loop the Artist list.

Code: Select all

{cms_module module='Cataloger' action='all' sub_template='Land' alias='Artist' recurse='categories_all'}
/Coldman
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
karry
Forum Members
Forum Members
Posts: 26
Joined: Thu Aug 30, 2007 12:35 pm

Re: displaying cataloger items of sub categories

Post by karry »

I can't get that to work, but I am new to Cataloger.
I don't know if I am explaining things right or I have done anything wrong in creating my pages.

It's like this

Artists
    Brazil
        Artist 1
              image 1
              image 2
        Artist 2
              image 1
        etc.
    Denmark
          Artist 1
              image1
          Artist 2
              image 1
              image 2
          etc
    etc.

Where do you define which category or alias they belong in?, as far as I can see each Artist has a page alias on their own.
I thought the categories came from the hieracy of the website, but how does it work?

If i use the

Code: Select all

recurse='categories_all'
it show only the countries as it is supposed to, but is it possible to only show the second level of categories?
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: displaying cataloger items of sub categories

Post by Coldman »

Sorry but I missunderstod you..

The only way for you just now to show Artist(category) on Artists page is this.

Code: Select all

{cms_module module='Cataloger' action='all' sub_template='Land' alias='brasilien' recurse='categories_all'}

Code: Select all

{cms_module module='Cataloger' action='all' sub_template='Land' alias='danmark' recurse='categories_all'}
etc etc etc
You must do so with each Country-category.
Why? because you can't show sub-categories without add alias='page_alias'.

I would suggest that you did some changes.

Artists(content)
    Brazil(content)
         Artist 1(Category)
              image 1 (item)
              image 2 (item)
         Artist 2(Category)
              image 1 (item)
         etc.
    Denmark(content)
          Artist 1(Category)
              image1 (item )
          Artist 2(Category)
              image 1 (item)
              image 2 (item)
          etc
    etc.

Then put {cms_module module='Cataloger' action='all' sub_template='Land' recurse='categories_all'} in Artists content.

And in every country page ex. Danmark: {cms_module module='Cataloger' action='all' sub_template='Land' alias='danmark' recurse='categories_all'}

Hope you understand what I mean.

/Coldman
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
karry
Forum Members
Forum Members
Posts: 26
Joined: Thu Aug 30, 2007 12:35 pm

Re: displaying cataloger items of sub categories

Post by karry »

Thanks, that works!

I will just have to concider if it is easy enough for the customer to update the website afterwards, since they know nothing about code, but I guess they can learn that bit.
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: displaying cataloger items of sub categories

Post by Coldman »

Good to know it works!

Please add [solved] before displaying cataloger items of sub categories.

/Coldman
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
Post Reply

Return to “Modules/Add-Ons”