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
Cart button, Meta keywords & Meta Description in img details
-
erioch
- Phoca Newbie

- Posts: 6
- Joined: 19 Sep 2011, 12:19
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Cart button, Meta keywords & Meta Description in img det
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
https://www.phoca.cz/documents/50-phoca/ ... al-advices
Jan
If you find Phoca extensions useful, please support the project
-
erioch
- Phoca Newbie

- Posts: 6
- Joined: 19 Sep 2011, 12:19
Re: Cart button, Meta keywords & Meta Description in img det
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
Kind regards,
Erick
-
erioch
- Phoca Newbie

- Posts: 6
- Joined: 19 Sep 2011, 12:19
Re: Cart button, Meta keywords & Meta Description in img det
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
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
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Cart button, Meta keywords & Meta Description in img det
Hi, thank you for the info.
Jan
Jan
If you find Phoca extensions useful, please support the project