Keyword

Frontend editing - add new item

  • Gery Wauters
  • Gery Wauters's Avatar Topic Author
  • Offline
  • New Member
More
4 months 3 weeks ago #168357 by Gery Wauters
Gery Wauters created the topic: Frontend editing - add new item
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.

More
4 months 3 weeks ago #168362 by Krikor Boghossian
Krikor Boghossian replied the topic: Frontend editing - add new item
Hello Gery,

Are you getting any JavaScripts error when jQuery is enabled?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Gery Wauters
  • Gery Wauters's Avatar Topic Author
  • Offline
  • New Member
More
4 months 3 weeks ago #168365 by Gery Wauters
Gery Wauters replied the 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
4 months 3 weeks ago #168366 by Gery Wauters
Gery Wauters replied the 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.

More
4 months 2 weeks ago #168392 by Krikor Boghossian
Krikor Boghossian replied the 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?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

Moderators: william white