Page 1 of 1

Cart button, Meta keywords & Meta Description in img details

Posted: 19 Sep 2011, 13:28
by erioch
Hi,

Is it possible to add these items; (Cart button, Meta keywords & Meta Description) in image details window, especially the JAK window?

I would really appreciate if someone advices.

Cheers

Erick

Re: Cart button, Meta keywords & Meta Description in img det

Posted: 22 Sep 2011, 22:48
by Jan
Hi, this needs to be hardcoded in the javascript and css of JAK. But JAK is an image method which means it will be not so easy -the information must be loaded by javascript.
https://www.phoca.cz/documents/50-phoca/ ... al-advices

Jan

Re: Cart button, Meta keywords & Meta Description in img det

Posted: 23 Sep 2011, 08:31
by erioch
Thank you Jan for your quick response, I have decided to use the popup modal window to display the image instead, and managed to get the meta key displayed by modifying the default.php in the tmpl folder, though not the cart, Quick question if you may, which code part of the java script should I work on if any and do you have an idea of what I should put there, or does the modal popup need to be hardcoded too?

Kind regards,

Erick

Re: Cart button, Meta keywords & Meta Description in img det

Posted: 23 Sep 2011, 09:17
by erioch
Hi all, this is for those who would have the same need to add metakey to the details window...

I modified the file components\com_phocagallery\views\detail\tmpl\default.php approximately line 15 to 27 to this;

if ($this->tmpl['displaytitleindescription'] == 1) {

$titleDesc .= $this->item->title;


if ($this->item->description != '' && $titleDesc != '') {
$titleDesc .= ' - ';
$titleDesc .= ' -- ';
$titleDesc .= ' Key Words ';
$titleDesc .= ' -- ';
$titleDesc .= $this->item->metakey;}

Cheers,
Erick

Re: Cart button, Meta keywords & Meta Description in img det

Posted: 26 Sep 2011, 17:08
by Jan
Hi, thank you for the info.

Jan