Vivvo CMS Support Forum Home | Free Trial | Online Demo | Docs and Manuals | Order Now   

Go Back   Vivvo CMS Support Forums > Code and Template Customizations > Customizations & Templates

Customizations & Templates Various hacks and customizations for Vivvo 4 branch. Template repository and all related template customization discussions.

Reply
 
Thread Tools Display Modes
Old 06-17-2012, 12:25 AM   #1
sip
Vivvo Veteran
 
Join Date: Sep 2010
Posts: 601
Rep Power: 3
sip is on a distinguished road
Default Total Count in a given category and it's subcat

Hello,

Using following i can get count of articles in a category or a subcategory (on say more_news.tpl or category/default.tpl )

Code:
<vte:value select="{article_list_object.get_total_count}" />
Is it possible to get the count of articles in a given category and all it's subcategories?

TIA.
sip is offline   Reply With Quote
Old 06-18-2012, 02:13 AM   #2
sip
Vivvo Veteran
 
Join Date: Sep 2010
Posts: 601
Rep Power: 3
sip is on a distinguished road
Default

Following worked:

Code:
<vte:param name="search_cid" value="{category.get_id},{category.get_descendent_ids|implode:','}" />
With following

Code:
<vte:value select="{article_list_object.get_total_count}" />
Gives correct count taking care of recursion (subcat).
sip is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Order now:

Order your copy of Vivvo now and get:
bullet Six months free upgrades
bullet Free support
bullet Full source code
bullet Immediate download
bullet Starting at only $295.00
Order now

Support HelpDesk:

You can submit a trouble ticket in the support area at any time, using your client area email and password.

Vivvo CMS Resource Center:

The Vivvo CMS Resource Center is your window to a variety of resources that showcase Vivvo's features and technologies. So whether you're brand new to Vivvo or a seasoned user, you can find the information you need right here!

Latest Additions:

Contact us:

Business hours
Mon-Fri 9:00AM - 6:00PM GMT+1
(Europe)
Telephone Sales
381 11 311-50-20
Email inquiries
sales@vivvo.net
(Sales inquiries)
support@vivvo.net
(Support inquiries)

All times are GMT +1. The time now is 04:56 AM.
Contact Us - Vivvo Home - Archive - Privacy Statement - Top

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.