PDA

View Full Version : Category and Subcategory in one box on home page


InoffLine
02-24-2008, 08:05 PM
I'd like to make a one box for news from all subcategories and it's category.
And to show them in home page. So I have this code:
<vte:param name="search_limit" value="{VIVVO_MODULES_MORE_NEWS_ARTICLE_NUMBER}" />
<vte:param name="search_cid" value="{category.id}" />
<vte:param name="add_to_printed" value="true" />
<vte:param name="exclude_printed" value="true" />
As I undestood I need to edit <vte:param name="search_cid" value="{category.id}" />
Bou what value do I need to edit there?

Micha
02-25-2008, 07:59 AM
<vte:param name="search_cid" value="{category.id}" />

You need the ID of your category here.
For example if your "News" category have ID 3, you need to type
<vte:param name="search_cid" value="3" />.

InoffLine
02-25-2008, 09:05 AM
<vte:param name="search_cid" value="{category.id}" />

You need the ID of your category here.
For example if your "News" category have ID 3, you need to type
<vte:param name="search_cid" value="3" />.
If I will insert you variant in all boxes I will see news only from category with id - 3. And I want to see 4 boxes. With different news.
I use your tpl4005

Micha
02-25-2008, 11:35 AM
Ok, are you trying to make 4 different boxes, or one box to display news from specific category and its subcategories?
Please clarify.

If you are trying to make one box to display news from one category and its subcategories, you can use this:

<vte:param name="search_cid" value="3,4,5,6,7" />

Value is filled with category and its subcategory ID's.
This will pull articles from that category/subcategory and display it in box.