- Posts: 9
COMMUNITY FORUM
cover image from url
- Juri Signorini
- Topic Author
- Offline
- New Member
Less
More
7 years 1 week ago #165375
by Juri Signorini
cover image from url was created by Juri Signorini
Hi,
another stupid question... do you kno if it possible, with a plugin I guess, choose to use an image as the cover of the article, not from our image archive, but from an external sourcce, therefore inserting the url of the image?
Thanks guys
another stupid question... do you kno if it possible, with a plugin I guess, choose to use an image as the cover of the article, not from our image archive, but from an external sourcce, therefore inserting the url of the image?
Thanks guys
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 1 week ago #165404
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic cover image from url
You can link it directly from the source in your editor <img src=".." alt=".." />
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Juri Signorini
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
6 years 8 months ago #167196
by Juri Signorini
Replied by Juri Signorini on topic cover image from url
Therefore, if I understand right... I do not have to insert the cover image from the "image" tab, but I have to insert it directly in article content in the "content" tab. Thus the first image inserted in the article, automatically becomes the article cover. Right?
For sake of clarity, attached a screenshot of the "image" tab (in Italian).
For sake of clarity, attached a screenshot of the "image" tab (in Italian).
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 8 months ago #167241
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic cover image from url
You can use an extrafield to store the external URL and use that field instead of the image,
You will need to override the item.php file -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates and alter the image's code a bit.
A rough example can be found here:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L102-L118
You will need to override the item.php file -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates and alter the image's code a bit.
A rough example can be found here:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L102-L118
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.