Page 1 of 1

Add links into Titles ?

Posted: 31 Aug 2011, 16:38
by mishef
Hello!

For seo reasons i want to make titles of my images linkable: http://i.imgur.com/N0B5Z.png

In my parametars images are in "Detail View".

Is any way to do that ?? :x

Re: Add links into Titles ?

Posted: 31 Aug 2011, 20:49
by Jan
Hi, then this needs to be customized in the template of Phoca Gallery - add the url to the items:

components/com_phocagallery/views/category/view.html.php
components/com_phocagallery/views/category/tmpl/default.php

Jan

Re: Add links into Titles ?

Posted: 01 Sep 2011, 09:41
by mishef
Thanks for directions.

For thoose who want the same thing.

Go to components/com_phocagallery/views/category/tmpl/default.php

Go to Line 245 and search for:

// image
if ($value->type == 2) {
if ($value->displayname == 1) {
echo '<div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px">'
.PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...').'</div>';


and replace it with:

// image
if ($value->type == 2) {
if ($value->displayname == 1) {
echo '<a href="'. $value->link.'"><div class="phocaname" style="font-size:'.$this->tmpl['fontsizename'].'px">'
.PhocaGalleryText::wordDelete($value->title, $this->tmpl['charlengthname'], '...').'</div></a>';

Re: Add links into Titles ?

Posted: 06 Sep 2011, 22:43
by Jan
Ok, thank you for the guide.

Jan