How to set custom title for Categories?

Phoca Gallery - image gallery extension
mishef
Phoca Member
Phoca Member
Posts: 19
Joined: 04 Jul 2011, 14:20

How to set custom title for Categories?

Post by mishef »

Hello, everyone!

How to set custom title for Categories in Phoca Gallery, but without showing in mod_phocagallery_menu ?

For example:

I have product category - Smartphones, and category look like this:

Products - Smartphones (and this is the title of the category page). Products is index of Phoca Gallery. In mod_phocagallery_menu is also show only: Smartphones, and lets say subcategories after move mouse over it.

I want to set price range 300 to 500 dollars, and want when user is in category to see in title: Products - Smartphones - Price range: 300$ to 500$, but i NOT want this to show in mod_phocagallery_menu.

How do i achieve that ?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to set custom title for Categories?

Post by Jan »

Hi, you can set the title formatting in menu link parameters (to display only menu title or menu title plus category title)

To set it for your needs, I think, you need to customize in php :-(

e.g. category view:

components/com_phocagallery/views/category/tmpl/ ...

Jan
If you find Phoca extensions useful, please support the project
mishef
Phoca Member
Phoca Member
Posts: 19
Joined: 04 Jul 2011, 14:20

Re: How to set custom title for Categories?

Post by mishef »

Ok. How to call "Geo tagging Title" for example and place it next to category title.

In default.php i found where category title is:

<div class="componentheading'.$this->params->get( 'pageclass_sfx' ).'">'.$heading.' HERE I WANT TO PLACE Geo Tagging Title</div>'. "\n";

In this way if i type my text in Geo Tagging Title imput field i will get what i want for different categories.

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

Re: How to set custom title for Categories?

Post by Jan »

Hi, you need to load the geo tagging title from database (not sure which geo tagging you for now mean?) but if it is included in database, such needs to be loaded from database, if it is included in image, it should be extracted from image.

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