Keyword

Frontend editing - add new item

  • Gery Wauters
  • Gery Wauters's Avatar Topic Author
  • Offline
  • New Member
More
5 years 9 months ago #168357 by Gery Wauters
Frontend editing - add new item was created by Gery Wauters
Hi,

I seem to have a problem with my website when wanting to add a new k2 article.

I've added a new menu item (K2 >> Item >> Item edit form) to my webpage. I've set the target Window to 'New Without Navigation'.

Instead of opening in a new window, it opens in the same window of my website. And accordingly, when you click the close button, the whole webpage is closed.

When I don't load jQuery library for this plugin, this page does open in a new Windows. But then neither the close and save buttons do work.

Does anyone have a clue what is happening here and how to solve this?

Thanks in advance!

Kind regards,
Gery

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 9 months ago #168362 by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend editing - add new item
Hello Gery,

Are you getting any JavaScripts error when jQuery is enabled?

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

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

  • Gery Wauters
  • Gery Wauters's Avatar Topic Author
  • Offline
  • New Member
More
5 years 9 months ago #168365 by Gery Wauters
Replied by Gery Wauters on topic Frontend editing - add new item
Hi Krikor,

Strangely not, while there should be a javascript error.
I was able to find the error.
While the menu link has to be:

<a class="item" href="/index.php/nieuws/artikel-toevoegen" onclick="window.open(this.href,'targetwindow','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');return false;">

it is formatted like this:

<a class="item" href="/index.php/nieuws/artikel-toevoegen" onclick="window.open(this.href," targetwindow','toolbar="no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes');return" false;'="">

When I format it right in Inspect element, it works fine. But what can be the cause of this? Is there a file where I can adjust this?

Thanks again!

Kind regards,
Gery

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

  • Gery Wauters
  • Gery Wauters's Avatar Topic Author
  • Offline
  • New Member
More
5 years 9 months ago #168366 by Gery Wauters
Replied by Gery Wauters on topic Frontend editing - add new item
A little more information. The template works with the gantry 4 framework which also builds this menu. Do you have any knowledge of compatibility issues with this framework and the k2 plugin?

Thanks!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 8 months ago #168392 by Krikor Boghossian
Replied by Krikor Boghossian on topic Frontend editing - add new item
Actually I will need to investigate a bit.
The new Joomla! version introduced some changes in the menu items and I have seen several discussions on this and several templates were affected.
Can you try reproducing the issue with Protostar?

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