Keyword

Corner Ribbon on K2 image

  • aris T
  • aris T's Avatar Topic Author
  • Offline
  • New Member
More
8 years 6 months ago - 8 years 6 months ago #151968 by aris T
Corner Ribbon on K2 image was created by aris T
Hi all,
Does anyone have any idea how to apply a corner ribbon on a K2 image, depending either on an extra field or a tag?
I want to show a SOLD ribbon on every K2 article if i have an extra text field sold or a tag: sold.

Thanks
Last edit: 8 years 6 months ago by aris T.

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

More
8 years 6 months ago #151986 by Javi Mata
Replied by Javi Mata on topic Corner Ribbon on K2 image
i don't know without modified a layout, if i need do it this maybe see create a Extra Fields maybe Radio Buttons type and in the layout check if this extra field is selected or exist and add a div with a class and maybe, with the image or add the image to this div with css

Twitter: @Javi_Mata
Web: www.javimata.com

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 6 months ago #152011 by Krikor Boghossian
Replied by Krikor Boghossian on topic Corner Ribbon on K2 image
You can use the Featured items code to implement a custom css solution based on these classes.

If you want to render a specific extrafield, you can use this code.
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L104-L109

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