Keyword

[SOLVED] Add item from menu or from user module

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago #134588 by oorzaak
Hi,

On my site I enabled the user module. As I enabled front end submission of items by registered users, this module features a link for adding a new item. I also created a menu item for submitting a new item.

What puzzles me is that these two options, that lead to the same form, are opening the form differently. The module opens the form in a modal while the menu item opens it in a new window. I think this is confusing for users. I cannot find a way to make the two the same in this respect. Is this possible?

Also, I prefer the modal option as I have an issue with the menu item. It seems that I cannot force it to open as a page of the website; it is alwasy opened in a new window. Now I can live with that, but unfortunately the Close button of the form does not work. Also it doesn't pick up some small overrides that I've made to the form (adding a logo and changing the order of the tabs).

Hope you can help me.

Kind regards, Frits

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 4 months ago #134606 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add item from menu or from user module
Hello Frits,

You have two options when it comes to overriding the itemform.php . You either override the default itemform.php file in your template or if you want a different form you need to assign that K2 template directly from your menu item.

Now to the modal part. You can use an extension to convert menu links to modals if you do not want to manually apply JS code.

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

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

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 months ago - 9 years 4 months ago #134613 by oorzaak
Replied by oorzaak on topic Add item from menu or from user module
Hi Krikor,

You can use an extension to convert menu links to modals if you do not want to manually apply JS code.


I already tried using NoNumber's modals, but then some of the functionality of the form breaks:
- the content of all tabs is shown instead of hiding the content of all tabs except the selected (or default) one;
- the Close button as provided in the form does not work.

Apparently I cannot apply just any JS modals code. What would you recommand?

Kind regards, Frits
Last edit: 9 years 4 months ago by oorzaak.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #134700 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add item from menu or from user module
I would recommend a custom implementation of Fancybox.
fancyapps.com/fancybox/

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

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

  • oorzaak
  • oorzaak's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 months ago #134877 by oorzaak
Replied by oorzaak on topic Add item from menu or from user module
Hi,

I found a Fancybox plugin for Joomla! created by Yireo: www.yireo.com/software/joomla-extensions/fancybox

Works ok for this situation, except for the Close button of the form. But as the modal hase a Close button itself (the well-known 'X' in a circle at the top right corner of the modal) I decided to hide the Close button of the form with css.


Topic solved,

Kind regards, Frits

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago #134897 by Krikor Boghossian
Replied by Krikor Boghossian on topic Add item from menu or from user module
Thank your sharing the solution Frits :)

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