Hide one of the category in List Of Categories (Categories V

Phoca Download - download manager
gregorius
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2009, 20:42
Location: Poland

Hide one of the category in List Of Categories (Categories V

Post by gregorius »

Hi,

Can you provide me an solution what do i have to edit to hide one of the category in List Of Categories (Categories View).
I have two places where i'm using this component and in one i am using List Of Categories (Categories View) and in the other just List of Files (Category View). And i don't want to show this other cat in the List Of Categories (Categories View) :)
Chrisx909
Phoca Member
Phoca Member
Posts: 28
Joined: 11 Jun 2009, 17:27

Re: Hide one of the category in List Of Categories (Categori

Post by Chrisx909 »

I think, that's not possible.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48975
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide one of the category in List Of Categories (Categori

Post by Jan »

Hi, yes, for now there is no such option, added to feature request list.

Jan
If you find Phoca extensions useful, please support the project
gregorius
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2009, 20:42
Location: Poland

Re: Hide one of the category in List Of Categories (Categori

Post by gregorius »

I know that is not possible in this version. But there should be an easy way, if you knew this component, by edit tmpl file or any else and add php to hide the category by ID. Could you provide that kind of code form me? Please :-)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48975
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide one of the category in List Of Categories (Categori

Post by Jan »

Hi, I don't know exactly what all needs to be changed, because I didn't do such modification yet :-(, see:

forum-rules.php (9)

The sql query is located in model:

components/com_phocadownload/models/category.php so there needs to be added some limitation

Jan
If you find Phoca extensions useful, please support the project
gregorius
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2009, 20:42
Location: Poland

Re: Hide one of the category in List Of Categories (Categori

Post by gregorius »

Np.

Thank you
Post Reply