Keyword

image gallery or image diplayed

  • leff34
  • leff34's Avatar Topic Author
  • Offline
  • New Member
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

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #136628 by Krikor Boghossian
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • leff34
  • leff34's Avatar Topic Author
  • Offline
  • New Member
More
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

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #136647 by Krikor Boghossian
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.


Powered by Kunena Forum