- Posts: 3
COMMUNITY FORUM
No extra field on latest item after upgrade to 2.9
- PRE ART
- Topic Author
- Offline
- New Member
Less
More
6 years 1 month ago #169627
by PRE ART
No extra field on latest item after upgrade to 2.9 was created by PRE ART
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
6 years 1 month ago #169644
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic No extra field on latest item after upgrade to 2.9
Which version were you previously using? Which Joomla version?
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- PRE ART
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
6 years 1 month ago #169674
by PRE ART
Replied by PRE ART on 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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
6 years 1 month ago #169683
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on 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.
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.