Keyword

editor enabled k2 extrafield doesnt show

  • Jacob Arlington
  • Jacob Arlington's Avatar Topic Author
  • Offline
  • New Member
More
8 years 10 months ago #149503 by Jacob Arlington
editor enabled k2 extrafield doesnt show was created by Jacob Arlington
I add an extra-field and enable editor for it (default Tiny MCE) but i cant retrieve content with this code that work well when editor not enabled
<?php if(!empty($this->item->extraFields->Crew->value)) : ?>
	<span class="listing_alt_image">
		<?php echo $this->item->extraFields->Crew->value; ?>
	  </span>
<?php endif; ?>

please advice if there is any extra step that i need to do when editor enabled for extra field

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 10 months ago #149527 by Krikor Boghossian
Replied by Krikor Boghossian on topic editor enabled k2 extrafield doesnt show
The correct code would be:
github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L104-L109

Yours should work as well. Make sure that extrafields are enabled in the category's settings.

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