- Posts: 77
COMMUNITY FORUM
Frontend -> new item -> is not modal
- Bam Bam
-
Topic Author
- Offline
- Senior Member
Less
More
9 years 2 months ago #151023
by Bam Bam
Frontend -> new item -> is not modal was created by Bam Bam
Hi everybody,
I'm just working on a new site with Joomla 3.4.8, the Purity III template and K2 2.6.9.
I created a menu link in the user menu named "add new item". It works, but unfortunately a new tab or a new window opens - not a modal window, like at "edit item". In the code I can't find any modal-classes. Is it a bug or are my settings wrong? What can I do to make it work? Any ideas?
Thanks for your help.
Matthew.
I'm just working on a new site with Joomla 3.4.8, the Purity III template and K2 2.6.9.
I created a menu link in the user menu named "add new item". It works, but unfortunately a new tab or a new window opens - not a modal window, like at "edit item". In the code I can't find any modal-classes. Is it a bug or are my settings wrong? What can I do to make it work? Any ideas?
Thanks for your help.
Matthew.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #151050
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Frontend -> new item -> is not modal
Hello,
The menu items are by default loaded in a new window.
You can bypass this behaviour, by manually creating a modal window.
Add this to the menu item's css class->
modal” rel=”{handler: ‘iframe’, size: {x: 780, y: 500}, onClose:function(){$(‘sbox-content’).empty();}}
The menu items are by default loaded in a new window.
You can bypass this behaviour, by manually creating a modal window.
Add this to the menu item's css class->
modal” rel=”{handler: ‘iframe’, size: {x: 780, y: 500}, onClose:function(){$(‘sbox-content’).empty();}}
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bam Bam
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 77
9 years 2 months ago #151053
by Bam Bam
Replied by Bam Bam on topic Frontend -> new item -> is not modal
Hi,
thanks for your help. The problem is: now the itemform opens in a modal popup AND as a new tab! I decided the modal-function is not necessary for me.
But there is another problem: when opening the form as new tab none of the buttons work as expected. For example: the buttons beyond the content window (except "readmore") open as "_self"-target instead of a modal popup. The buttons with the calendar-function for setting up the item-date don't work, too. Searching the server for content in the "image"-tab and the "attachment"-tab opens only an empty modal-popup.
Can you help me again, please?
Matthew
thanks for your help. The problem is: now the itemform opens in a modal popup AND as a new tab! I decided the modal-function is not necessary for me.
But there is another problem: when opening the form as new tab none of the buttons work as expected. For example: the buttons beyond the content window (except "readmore") open as "_self"-target instead of a modal popup. The buttons with the calendar-function for setting up the item-date don't work, too. Searching the server for content in the "image"-tab and the "attachment"-tab opens only an empty modal-popup.
Can you help me again, please?
Matthew
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #151068
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Frontend -> new item -> is not modal
Are you getting any JS errors in your browser developer tools?
Are you using overrides for the itemform?
Are you using overrides for the itemform?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Nate Hunter
-
- Offline
- New Member
Less
More
- Posts: 14
9 years 2 months ago #151627
by Nate Hunter
Replied by Nate Hunter on topic Frontend -> new item -> is not modal
I am having the same issue. The rel= fix mentioned above doesn't work for me.
The reason I am doing this is because the items are remaining checked out even after a save and a close. instead of the window closing it remains open and redirects back to home page.
I tried to change the menu items target to Parent but after I save it reverts back to new window with navigation every single time.
Please advise.
The reason I am doing this is because the items are remaining checked out even after a save and a close. instead of the window closing it remains open and redirects back to home page.
I tried to change the menu items target to Parent but after I save it reverts back to new window with navigation every single time.
Please advise.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 2 months ago #151642
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Frontend -> new item -> is not modal
Hello Nate,
Are you using K2's latest version?
Also can you send me a link to your site?
Are you using K2's latest version?
Also can you send me a link to your site?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.