Keyword

K2 Item Image From Flickr

  • Red Evolution
  • Red Evolution's Avatar Topic Author
  • Offline
  • Premium Member
More
3 years 9 months ago #176479 by Red Evolution
K2 Item Image From Flickr was created by Red Evolution
Hi Fotis,

Got yet another query for you. Due to the number of articles and images used on our clients site, we have helped them to move to a new method of embedding them in from Flickr which has been working great for them as it's giving them a better backend management and allowing them to reuse images easier.

We would like to be able to use a Flickr image for the main K2 image which isn't possible in the main image tab. In the Media tab though there is the option to select Flickr and input a url or to just add the embed code in. We had used the embed code so that we could then also add in title and alt tag info. When using the media tab for the images though, it doesn't generate the correct og tags, so there is no image there when sharing on social media.

Can you tell me if I am missing something or if that is correct behaviour and it's not meant to generate the tags using the media info?

Thanks,
Dave

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

More
3 years 9 months ago #176487 by JoomlaWorks
Replied by JoomlaWorks on topic K2 Item Image From Flickr
One option is to check if a Flickr URL is used in the item's media data and if so, reset the relevant OG image tag.

See how to override or add any meta tag here (as an example): www.joomlaworks.net/forum/k2-en/51293-og-image-width-and-height#173709

A better option is to create a K2 plugin that dynamically swaps all $item->image or $this->item->image instances with the Flickr image URL. This will essentially have everything else work just as they do already with uploaded images in K2 items, across component AND module views.

Fotis / 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