Remove Category Count

Phoca Download - download manager
keepitfrozen
Phoca Member
Phoca Member
Posts: 22
Joined: 13 May 2008, 01:25
Location: United States of America

Remove Category Count

Post by keepitfrozen »

Jan i looked thru the forum and didn't see this one asked so if it's a repeat I apologize. :( Is there some way to remove the "red" category count from the section header? maybe just comment out some code or something.

thanks,

Mark
Last edited by keepitfrozen on 01 Dec 2008, 15:35, edited 3 times in total.
User avatar
akerman
Phoca Member
Phoca Member
Posts: 42
Joined: 07 Jul 2008, 18:42
Location: Sweden - Stockholm
Contact:

Re: Remove Category Count

Post by akerman »

Hi Mark,

Since there is no switch or parameter for the 'count' feature in 'Sections' and 'Section' views, we have to edit this by hand. So, here is the solution you're looking for:

1. Go to /components/com_phocadownload/views/sections/tmpl/..
2. Open the file 'default.php' (Make a backup/copy first :wink: )
3. At about line 18 you find the place of interest

<div id="phoca-dl-sections-box">
<?php
if (!empty($this->section)) {
$i = 1;
foreach ($this->section as $value) {
echo '<div class="sections"><div><div><div><div><div><h3>';
echo '<a href="'. JRoute::_('index.php?option=com_phocadownload&view=section&id='.$value->id.':'.$value->alias.'&Itemid='. JRequest::getVar('Itemid', 1, 'get', 'int')).'">'. $value->title.'</a>';
echo ' <small>('.$value->numcat.')</small></h3></div></div>';

4. Just edit the red line into this:
echo '</h3></div></div>';

...and you're done!

(Careful not to miss any charachters since PHP get hickups if you even leave out a single dot)

PS. If you're happy with the solution, please mark the first posting in this thread as 'SOLVED' by writing this first on the subject line. Thanx!

Regards
Akerman
http://www.AkermansCove.com - CMS Addons! & Royalty Free Images
http://www.InfoClip.se - Swedish site for Practical knowledge.
Ubuntu LAMP / Joomla 1.5.8 / VM 1.1.2 Stable / JoomFish / Mosets Tree
/ Joomsuite / Phoca / JoomGallery /
keepitfrozen
Phoca Member
Phoca Member
Posts: 22
Joined: 13 May 2008, 01:25
Location: United States of America

Re: Remove Category Count

Post by keepitfrozen »

Worked perfectly, thanks so much.

Marking Solved.
Post Reply