Page 1 of 1
[solved]displaying cataloger items of sub categories
Posted: Wed Jan 28, 2009 7:22 pm
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?
Re: displaying cataloger items of sub categories
Posted: Wed Jan 28, 2009 7:40 pm
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
Re: displaying cataloger items of sub categories
Posted: Wed Jan 28, 2009 8:14 pm
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
it show only the countries as it is supposed to, but is it possible to only show the second level of categories?
Re: displaying cataloger items of sub categories
Posted: Wed Jan 28, 2009 10:23 pm
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
Re: displaying cataloger items of sub categories
Posted: Thu Jan 29, 2009 5:39 am
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.
Re: displaying cataloger items of sub categories
Posted: Thu Jan 29, 2009 8:23 am
by Coldman
Good to know it works!
Please add [solved] before displaying cataloger items of sub categories.
/Coldman