Keyword

No extra field on latest item after upgrade to 2.9

  • PRE ART
  • PRE ART's Avatar Topic Author
  • Offline
  • New Member
More
2 months 5 days ago #169627 by PRE ART
PRE ART created the topic: No extra field on latest item after upgrade to 2.9
Hello.
After upgrade to K2 2.9 and save changes to article I don't have extra fields in latest item view (K2 » Latest items from (one or more) users or categories) I have my own k2 templates (override), but I checked default template after this problem came out. There is no extra fields. How can I fix this?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 4 days ago #169644 by Fotis
Fotis replied the topic: No extra field on latest item after upgrade to 2.9
Which version were you previously using? Which Joomla version?


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • PRE ART
  • PRE ART's Avatar Topic Author
  • Offline
  • New Member
More
2 months 4 days ago #169674 by PRE ART
PRE ART replied the topic: No extra field on latest item after upgrade to 2.9
It happened on Joomla 3.8.12 and K2 2.8 -> 2.9

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 months 3 days ago #169683 by Fotis
Fotis replied the topic: No extra field on latest item after upgrade to 2.9
Core K2 files were probably modified.

I'm looking now at the code and since there is no option to enable extra fields in the Latest items view you can't have them there. The workaround is to modify the check for it until we add an option for it (as part of a general option re-checking in K2).

First off, install v2.9.1 dev from: github.com/getk2/k2/archive/master.zip

Then edit the file /components/com_k2/models/item.php and replace line 168 with this:
($item->params->get('genericItemExtraFields') && $view == 'itemlist' && ($task == 'search' || $task == 'date')) || $view == 'latest'

This should do it.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white