Keyword

item edit form linked from menu does not work properly after upgrading to 2.9

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 7 months ago #169636 by Mark Schultz
I am running joomla 3.8.13 and k2 2.9

I had created a menu item that links to an item edit form. I created a custom template. It was working fine until I upgraded to 2.9 from 2.8.

Now the custom template is not used, the default template is used no matter what.
Also, the Target Window isn't working, when I set it to Parent, it reverts to New with Navigation on Save.

I've tried creating a new menu item, copying the form template to a new location, nothing changes.

Anybody else seeing this issue or have a thought? thanks.

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

More
6 years 7 months ago #169648 by JoomlaWorks
Where is the itemform.php sub-template file located inside your Joomla template's structure?

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 7 months ago #169659 by Mark Schultz
/templates/themename/html/com_k2/templates/templatename/itemform.php

The templatename does appear in the dropdown as a choice but is ignored when displayed.

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

More
6 years 7 months ago #169664 by JoomlaWorks
Move /templates/themename/html/com_k2/templates/templatename/ to /templates/themename/html/com_k2/templatename/. You have a very old templates override structure.

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 7 months ago #169672 by Mark Schultz
I moved the templates to /templates/themename/html/com_k2/templatename/
still ignores the setting

and the Target Window isn't working, when I set it to Parent, it reverts to New with Navigation on Save.

any other thoughts? thanks.

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 7 months ago #169681 by Mark Schultz
Has anyone else seen this issue?

I am running joomla 3.8.13 and k2 2.9. I had created a menu item that links to an item edit form. I created a custom template for the item edit form and it was working fine until I upgraded to 2.9 from 2.8. Has anyone seen this issue on any version of K2?

Now the custom template is not used, the default template is used no matter what.
Also, the Target Window isn't working, when I set it to Parent, it reverts to New with Navigation on Save.

I've tried creating a new menu item, copying the form template to a new location, nothing changes.

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

More
6 years 7 months ago #169688 by JoomlaWorks
The itemform.php has completely changed in recent versions. Please copy the contents of the included file in itemform.php and work on that. First try placing your new itemform.php inside the /html/com_k2/default/ folder to see if everything is OK. Let me know.

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 7 months ago - 6 years 7 months ago #169691 by Mark Schultz
When I put itemform.php in /html/com_k2/default/ that version is used, and is used no matter what else I do.
I tried putting a v2.9 itemform.php in a new template folder and selecting that, and it still uses the default.
My guess is the issue lies elsewhere because the Target Window dropdown isn't working too, when I set it to Parent, it reverts to New with Navigation on Save every time.

Do you think reinstalling 2.9 might help?
Last edit: 6 years 7 months ago by Mark Schultz.

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

More
6 years 7 months ago #169708 by JoomlaWorks

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 7 months ago #169718 by Mark Schultz
Reinstalling K2 2.9.0 had no effect. Anything else I can try? thanks.

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 6 months ago #169731 by Mark Schultz
I also tried restoring a K2 2.8.0 with J 3.8.13 installation and the symptom is not present, so it does appear to be 2.9.0 related. Anything else I might try? thanks.

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

More
6 years 6 months ago #169765 by JoomlaWorks
Can you map (a screenshot would also help) your current file tree related to K2 overrides?

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

More
6 years 4 months ago #170655 by Chris
Hi Mark,

I'm facing exactly the same problem. Have you found a solution?

Chris

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

  • Mark Schultz
  • Mark Schultz's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 4 months ago #170656 by Mark Schultz
Hi Chris,

No, I ran out of time to troubleshoot and downgraded to 2.8.

I will return to resolve when I can...

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

More
6 years 4 months ago #170667 by Chris
I also couldn't find a solution.
Downgrade to 2.8...
I hope the problem will be solved in next update...

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

More
6 years 4 months ago #170687 by JoomlaWorks
Compare the overrides please. There are changes in the HTML code that launches the edit form modal. It's not difficult to pinpoint.

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

More
6 years 4 months ago #170692 by Chris
In a completelly new Joomla installation, and a completelly new k2 installation as well, why should I compare HTML code?
Shouldn't be working?

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

More
6 years 4 months ago #170738 by JoomlaWorks
It does, the issue in your case could be elsewhere. E.g. are you installing some 3rd party template in this new Joomla installation? If so, it may load old K2 overrides by default...

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

  • Zerogravità di Emanuele Paccamiccio e Laura Lanari SNC
  • Zerogravità di Emanuele Paccamiccio e Laura Lanari SNC's Avatar
  • Offline
  • New Member
More
6 years 2 months ago #171294 by Zerogravità di Emanuele Paccamiccio e Laura Lanari SNC
Replied by Zerogravità di Emanuele Paccamiccio e Laura Lanari SNC on topic item edit form linked from menu does not work properly after upgrading to 2.9
Hello,
we have the same problem.
There is a solution now?
We have mod_k2_user with a reserved area menu, in which there is a link to Item edit form.
It loads the form in the page (not in a pop-up) and when we click on close button, it close the page.
There are some problems with javascript I think....
Hope this will resolve soon.

Laura

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

More
6 years 2 months ago #171301 by JoomlaWorks
You need to compare your overrides with the source template file for mod_k2_user (/modules/mod_k2_user/tmpl/userblock.php) because there were changes to how the modal is launched. Compare the files and move the changes from the source template to your override.

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


Powered by Kunena Forum