Keyword

Can't create K2 item menus in 2.8

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
7 years 3 months ago #162196 by Kelsey Brookes
Can't create K2 item menus in 2.8 was created by Kelsey Brookes
Note - I've raised this as an issue on GitHub also: github.com/getk2/k2/issues/395


I'm on K2 2.8.0 (upgraded to fix the issue in mod_k2_content with custom links not working) and Joomla 3.7.2.

When creating a new K2 'item' menu item, items are not selectable in the item list. Additionally the red 'close' button does not work. The modal close button does.

At present it's impossible to create menu links to K2 items.

I've attempted on both Firefox and Chrome on MacOs Sierra.

Video of issue: www.dropbox.com/s/vb0bh2fgc1k847s/k2-item-error.mov?dl=0

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

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
7 years 3 months ago #162201 by Kelsey Brookes
Replied by Kelsey Brookes on topic Can't create K2 item menus in 2.8
Quick note, I've created a pull request on GitHub with my solution:

github.com/getk2/k2/pull/396

I had a look at the difference between 2.7.1 and 2.8 for this particular function and it leapt out at me that the new modal version was using 'window.parent.k2ModalSelector' but the old 'window.parent.jSelectItem' - which seems reasonable, given it's adding to a menu item.

I changed this and voila, all working.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #162210 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't create K2 item menus in 2.8
Hello Kelsey,

Fotis has answered in that PR.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
7 years 3 months ago #162212 by Kelsey Brookes
Replied by Kelsey Brookes on topic Can't create K2 item menus in 2.8
Thanks Krikor, glad to know a fix is coming and that it's got a much greater vision behind it.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #162215 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't create K2 item menus in 2.8
:)

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
7 years 3 months ago #162311 by Scott Staffiery
Replied by Scott Staffiery on topic Can't create K2 item menus in 2.8
Any update on this issue?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 3 months ago #162316 by Krikor Boghossian
Replied by Krikor Boghossian on topic Can't create K2 item menus in 2.8
Unfortunately the patch is not available at this moment.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Kelsey Brookes
  • Kelsey Brookes's Avatar Topic Author
  • Offline
  • Elite Member
More
7 years 3 months ago #162325 by Kelsey Brookes
Replied by Kelsey Brookes on topic Can't create K2 item menus in 2.8
This is **absolutely not recommended**, and you should ensure you keep a backup of this file before performing this action, because this issue will be fixed soon and my fix is not a great one for compatibility moving forward.

That said, you can see my change here: github.com/getk2/k2/pull/396/files

This rolls it back to the previous way of working - only use if you're desperate.

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


Powered by Kunena Forum