How to create meta tags?

Phoca Gallery - image gallery extension
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to create meta tags?

Post by Jan »

Hi, for now there is no such option :-( This is planned.

Jan
If you find Phoca extensions useful, please support the project
thunder_go
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 04 Jan 2010, 10:06

Re: How to create meta tags?

Post by thunder_go »

If you have any description in the category you can just simply add

Code: Select all

$doc =& JFactory::getDocument();
$doc->setMetaData( 'description', 'Some text: '. strip_tags($this->category->title) .' '. strip_tags($this->category->description));
right after

Code: Select all

<?php
defined('_JEXEC') or die('Restricted access'); 
on com_phocagallery/views/category/tmpl/default.php

... and it will put your title and text description as your <meta> desc :)
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to create meta tags?

Post by Jan »

Hi, this was added in Phoca Gallery 2.6.2

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