Search
Other Modals questions
Forum

In J4 Modals is not working the way it did in J3

Dom Cassone's Avatar Dom Cassone
In J3, we had a modal that went to a registration page using {modals url=/registration-page}. The code behind the registration menu item redirects the user to a new page. This works well in J3.

But with Modals moving to an iFrame model in J4, the redirect is displayed within the modal iFrame rather than back on the main window.

Any ideas on how to solve this?
Peter van Westen's Avatar Peter van Westen ADMIN
see if you can set the target of the registration form to '_parent'.
Please post a rating at the Joomla! Extensions Directory
Dom Cassone's Avatar Dom Cassone
Not sure how to do that....in the {modal} line?

Here is a Loom video that shows the problem.
www.loom.com/share/495924788ad24a379a89b...4e-bad3-ba67b0a524f7

BTW - I'd prefer to stay with Regular Labs, but I need this solved as it is holding up the transition to J4.
Peter van Westen's Avatar Peter van Westen ADMIN
You can't do that in the {modal} tag.
You could do this by creating a template override for the registration page and add the target to the form element.
Please post a rating at the Joomla! Extensions Directory
Dom Cassone's Avatar Dom Cassone
ok, thanks for the quick reply. So that J3 functionality was lost in J4?
Peter van Westen's Avatar Peter van Westen ADMIN
The functionality to load pages inline is not included in the Joomla 4 version, as it caused too many issues.
So yes, with the Joomla 4 version, all urls are loaded via iframes.

You can still do what you need with a little html knowledge. If that is too high-level for you, then either look for someone who can do it for you, or look for a different solution than Modals.
Please post a rating at the Joomla! Extensions Directory
Dom Cassone's Avatar Dom Cassone
OK, thanks for your help! Appreciate it!
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription