Keyword

Adding specific Extra Field in K2 Item

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
1 day 13 hours ago - 1 day 12 hours ago #184810 by Gorast
Hi,
Im trying to show specific field in K2 Item.
I tried implementing the guide from this site: getk2.org/documentation/tips-a-tricks/display-single-extra-fields-anywhere-in-your-k2-content
but it simply not rendering anything.

This renders nothing:
<?php echo $this->item->extra_fields->postereng->name; ?>

It Joomla 3.5, the field is called "postereng" and I need to get the url for the image (it is an image extra field).
Also tried rawValue and value and still nothing.
Any help will be appreciated.

Tnx,
Gorast
 
Last edit: 1 day 12 hours ago by Gorast.

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

  • Gorast
  • Gorast's Avatar Topic Author
  • Offline
  • Premium Member
More
1 day 12 hours ago #184811 by Gorast
Replied by Gorast on topic Adding specific Extra Field in K2 Item
As always, as soon as I post something, I find the solution.
Thanks and sorry for the noise.

Gorast

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


Powered by Kunena Forum