- Posts: 8
COMMUNITY FORUM
image gallery or image diplayed
- leff34
- Topic Author
- Offline
- New Member
Less
More
9 years 2 months ago #136619
by leff34
image gallery or image diplayed was created by leff34
HEllo ,
I would like to customize the item element and give choice to user :
I already customize the element and move gallery above item title (same place as image )
But I have a code problem ...
I would like to give choice to user, they can add image and/or gallery image.
Case 1 : image only is added --> image is published in home(preview S size ) and full in item . Ok
Case 2 : Image and gallery images are added ---> Image is published in home (preview S size ) but how to only display the gallery image on item page . I don't want image and gallery image displayed on the same page .
Any idea ?
Thanks for help .
FK
I would like to customize the item element and give choice to user :
I already customize the element and move gallery above item title (same place as image )
But I have a code problem ...
I would like to give choice to user, they can add image and/or gallery image.
Case 1 : image only is added --> image is published in home(preview S size ) and full in item . Ok
Case 2 : Image and gallery images are added ---> Image is published in home (preview S size ) but how to only display the gallery image on item page . I don't want image and gallery image displayed on the same page .
Any idea ?
Thanks for help .
FK
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #136628
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic image gallery or image diplayed
You can do this in your overrides -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
Edit item.php file and move the gallery block of code right under the item image code block. Now with an if/ else statement select which element to show.
Edit item.php file and move the gallery block of code right under the item image code block. Now with an if/ else statement select which element to show.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- leff34
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
9 years 2 months ago #136631
by leff34
Replied by leff34 on topic Solved - image gallery or image diplayed
HEllo ,
Thanks for help .
Works perfectly.
Regards
Thanks for help .
Works perfectly.
Regards
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #136647
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Solved - image gallery or image diplayed
You 're welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.