Hiding CATEGORY name

Phoca Gallery - image gallery extension
Dzontrax
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Apr 2015, 15:12

Hiding CATEGORY name

Post by Dzontrax »

Hi to you all, can anybody help me pls, I'm trying to hide Category (parent category) name from page.
I would simply like to have only images as links that represents child or subcategories. Simply a grid of thumbnail images
without those little folders, or numbers, nor names either. Is there any way to do it in code or something?!
I'm using Phoca gallery 4.1.1.

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

Re: Hiding CATEGORY name

Post by Jan »

Hi, you can set it in menu link to gallery which heading will be displayed on the site, so you can disable the heading.

Jan
If you find Phoca extensions useful, please support the project
Dzontrax
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Apr 2015, 15:12

Re: Hiding CATEGORY name

Post by Dzontrax »

Thank you for your quick answer Jan, but I don't think I understand you. I have set every single option to HIDE, I even made NUMBER OF CHARACTERS set to 0, witch gave me tree dots on the main page (...), but still I haven't get what I want. I'm trying to find an option for removing header in the menu link, just like you wrote it, but I can't find it still. Could you be more specific about it please. I'm using Joomla 3...

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

Re: Hiding CATEGORY name

Post by Jan »

Hi, did you disable the title in menu link to Phoca Gallery?

Jan
If you find Phoca extensions useful, please support the project
Dzontrax
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Apr 2015, 15:12

Re: Hiding CATEGORY name

Post by Dzontrax »

To disable? That means that there is some checkbox. I set every single option to HIDE in menu, like I wrote it before. Try to find a way to disable the title in menu link, can't find it! I have set , IN PAGE DISPLAY section of the menu link, "Show page heading" to NO! Nothing changes... Pls help and be more specific

Thx
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Hiding CATEGORY name

Post by Jan »

Hi, are you sure, you change the right menu link - the show page heading should do the trick. Did you create more menu links to Phoca Gallery?

The code is following:

Code: Select all

// Heading
$heading = '';
if ($this->params->get( 'page_heading' ) != '') {
    $heading .= $this->params->get( 'page_heading' );
}

// Category Name Title
if ( $this->tmpl['display_cat_name_title'] == 1) {
    if (isset($this->category->title) && $this->category->title != '') {
        if ($heading != '') {
            $heading .= ' - ';
        }
        $heading .= $this->category->title;
    }
}
// Pagetitle
if ($this->tmpl['show_page_heading'] != 0) {
    if ( $heading != '') {
        echo '<div class="page-header"><h1>'. $this->escape($heading) . '</h1></div>';
    } 
} 
- if heading is set, display it
- if displaying of category is enabled - add it to heading
- if show heading is enabled - display the heading which was generated by previously defined arguments

Jan
If you find Phoca extensions useful, please support the project
Dzontrax
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 22 Apr 2015, 15:12

Re: Hiding CATEGORY name

Post by Dzontrax »

Hi Jan,

I have only one link that points to Phoca gallery:

Explanation:
Main menu -> New -> Give it a name and then find Phoca gallery component and link it to the created menu ->
then in Phoca gallery options I choose a display (layout) I would like to see. I have 3D cooliers, Categories, Category...
I have chosen Category view. That's it... Only ONE.

DO I need to paste that code. Where to paste it. I'm asking you because I was trying to resolve this issue using CSS, but I didn't manage to find default.css in c-panel's File manager.



Thank you, Jan, for helping!
Post Reply