Hide from multi-category view layout

Phoca Download - download manager
shawnhy
Phoca Member
Phoca Member
Posts: 25
Joined: 04 Nov 2012, 08:22

Hide from multi-category view layout

Post by shawnhy »

Can I make a category hidden from multi-category layout? (a layout like https://www.phoca.cz/download)
I don't want this category be seen here.
I just want to put download items in and insert download links into articles with phoca download plugin.
I try set the accessibility "nobody" but result to un-downloadable. Obviously not a correct way.

Many thanks.

Shawn.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide from multi-category view layout

Post by Jan »

Hi, what happen if you unpublish it?
If you find Phoca extensions useful, please support the project
shawnhy
Phoca Member
Phoca Member
Posts: 25
Joined: 04 Nov 2012, 08:22

Re: Hide from multi-category view layout

Post by shawnhy »

When I un-publish the category, of course the category is disappeared from the front-end.
However, it will be not possible to put any download items into the category.
shawnhy
Phoca Member
Phoca Member
Posts: 25
Joined: 04 Nov 2012, 08:22

Re: Hide from multi-category view layout

Post by shawnhy »

Since I cannot find an interface to do that, I edit default.php file which located in /components/com_phocadownload/views/categories/tmpl/
To add divs id:
id="phoca-dl-categories-box-' . $value->id .

And hide them by css visibility:hidden;
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48566
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hide from multi-category view layout

Post by Jan »

Hi, yes, if the category needs to be "active" then the way with hiding it per CSS should be the way :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply