Peter van Westen
ADMIN
I have just released the first beta version of Modals for Joomla 4.
A lot has changed compared to the Joomla 3 version.
Mainly the look and feel (styling) has changed. But also a lot of options have changed (or been removed).
So updating from the Joomla 3 version will give you a different result (in styling and maybe in functionality).
Here is a list of most of the major changes:
Different styling
Modals for Joomla 4 comes with completely new styling. It also comes packed with a couple of themes (which might get extended in the future). There is also a 'Classic' theme which comes close to the old styling of the Joomla 3 version.
The whole HTML output and structure has been completely changed.
This also means that any custom CSS you might use for the Joomla 3 version will not work for the Joomla 4 version.
A lot of settings that changed the styling of the modal have been removed. Any changes to styling that you need, can be done through CSS.
Size & Position
The sizing of the modals has become a lot simpler. No more settings for inner and outer widths/heights. And no more initial dimensions.
You can still give the modal a fixed width and height. Or just let if auto-size.
You now also get the ability to have the modal open in different locations of the screen:
top, bottom, left, right, top-left, top-right, bottom-left, bottom-right, and center (default)
So no more messing with pixels to position a modal.
No more jQuery
All javascript has been rewritten from the ground up, with no reliance on jQuery or other libraries.
Also the javascript API has changed.
To close a modal via custom javascript calls, you can now use:
RegularLabs.Modals.close();
You can add actions inside the
tag to trigger stuff on certain events:
on-open="..."
on-opened="..."
on-load="..."
on-loaded="..."
on-close="..."
on-closed="..."
For instance, you can do:
{modal url="..." on-loaded="alert('Look, a cool modal');"}Click me{/modal}
Other stuff[
A lot of other things have changed too. And also new features/possibilities are added.
You will be able to find out about those when the documentation is fully done.
Try it out!
To get the final version released as fast as possible, it would help if you test the beta version.
And of course, let me know about any issues you run into.
You can download the latest beta (dev) version from:
regularlabs.com/development-releases
Keep an eye out for any updated versions there.
Please post a rating at the
Joomla! Extensions Directory