Keyword

Icons on K2 items pictures if they are videos, images, audio

  • Stephanus Dreyer
  • Stephanus Dreyer's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago #146264 by Stephanus Dreyer
is it possible to set up that K2 items have icons on them to show if it is a video, picture or audio.
if so any idea to do this.

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

More
8 years 8 months ago #146278 by Lefteris
Hi,

An item can have both image and video. What are you going to display in that case? You can check if an item has an image or a video ( audio is the same you cannot know if the media is an audio ) . The only thing you need to do is use the conditions that are already there in K2 template files:

github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/item.php#L205

github.com/joomlaworks/k2/blob/master/components/com_k2/templates/default/item.php#L512

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