Forum


List Manager Support

List Manager support
Forums
Public write access is disabled. Please login

Count of records 23.09.2013 15:55

Is there a quick way to add a record count to my list?

Re: Count of records 23.09.2013 18:19

Hi,
record count is not printed in any position at the view, but the number itself is recovered among the rest of the data, so if you have some knowledge of js you can add some code in order to have it shown at any point of your page. At this source file:

joomla\modules\mod_listmanager\tmpl\content.php


the counter is available from line 312 (replace [ and ] for lower/greater than symbols)


listManager[?php echo $seed;?].setPrefs(arrPrefs[?php echo $seed;?]);
//the counter is now at listManager[?php echo $seed;?].countData
//here you can introduce an alert with the counter, for ex, or write it in another
//html section of your code
alert("Counter:"+listManager[?php echo $seed;?].countData);
// Test actual page
if (listManager.......

Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: Count of records 23.09.2013 18:59

Thanks for the info. I got it working with some basic code.. not too fancy since it's for internal use only.

For anyone else who needed this info, here's what I did.

in the content.php file

added this Javascript:

var totaldiv = document.getElementById('total_count');
totaldiv.innerHTML = listManager[?php echo $seed;?].countData;
(angle brackets need to be substituted for the regular brackets > for [ ] )

then create a div with id of total_div in the editor for the front end... boom.

btw.. this forum is frustratingly basic.

Edited by moon_992 - 23.09.2013 19:03

Re: Count of records 23.09.2013 19:18

Hi,
thank you very much for sharing!. Soon you will see your subscription extended for free, as we usually do with people contributing to improve the extensions or providing solutions for others.

Regards

PD: the forum strips anything similar to code, we have suffered a big number of attacks lately, so we try to keep all our gates closed, sorry about inconveniences.
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback