- Posts: 3
COMMUNITY FORUM
No extra field on latest item after upgrade to 2.9
- PRE ART
-
Topic Author
- Offline
- New Member
Less
More
4 months 1 week 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?
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
-
- Offline
- Administrator
- JoomlaWorks Support Team
4 months 1 week ago #169644
by Fotis
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
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
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 3
4 months 1 week 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
-
- Offline
- Administrator
- JoomlaWorks Support Team
4 months 1 week ago #169683
by Fotis
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
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:
This should do it.
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