Shopping Basket

 x 
Cart empty


Popular Items

Find Us Elsewhere

  • Page:
  • 1

TOPIC: Articles Count: show one counter for all articles

Articles Count: show one counter for all articles 1 year 9 months ago #463

  • hamss
  • hamss's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi,

i want to modify the source code of Article Count, to have following function:
the counter must show the number of all articles in the choosen categories in one row, without separating them.
I should look like this at the end: 564 Articles published

How can I change the source code of the module, to get this function?

Tank you in advance!
Regards
Last Edit: 1 year 9 months ago by hamss.
The administrator has disabled public write access.

Re: Articles Count: show one counter for all articles 1 year 9 months ago #464

  • boggler
  • boggler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 572
  • Thank you received: 58
  • Karma: 11
If you want to display in a single line you can accompish this with css:-

div.articles_count li{display: inline;}

Just add it to your template css somewhere.

I am not sure what you mean by 'should look like this at the end: 564 Articles published'. Do you mean you want the total number of articles? if so you will not to modify the template, which is in tmpl/default.php. You will need to add some code to add up the totals in each category.
The administrator has disabled public write access.

Re: Articles Count: show one counter for all articles 1 year 1 month ago #679

  • Corniz
  • Corniz's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
boggler wrote:
If you want to display in a single line you can accompish this with css:-

div.articles_count li{display: inline;}

Just add it to your template css somewhere.

I am not sure what you mean by 'should look like this at the end: 564 Articles published'. Do you mean you want the total number of articles? if so you will not to modify the template, which is in tmpl/default.php. You will need to add some code to add up the totals in each category.



The last part is exactly what I would like to do.

I have a category named "Video's"....under that i have sub categories called 1,2,3,4,5 etc.
I would like to add up all articles in 1,2,3,4,5 etc so the output on the page would display something like this:
Right now, the webpage hosts xx number of Video's.


Would appreciate any kind of help!
Last Edit: 1 year 1 month ago by Corniz.
The administrator has disabled public write access.

Re: Articles Count: show one counter for all articles 1 year 1 month ago #682

  • boggler
  • boggler's Avatar
  • OFFLINE
  • Moderator
  • Posts: 572
  • Thank you received: 58
  • Karma: 11
It would require some reprogramming of the module to make a running total of all the articles. If you have some experience of PHP then it is not difficult, otherwise I suggest you find someone with PHP experience to help you.

We will probably be updating the module fairly soon to make it compatible with Joomla 3.0, when that happens we will think about adding some optional extras such as having a total for all articles.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: boggler
Time to create page: 0.515 seconds