Aleksander Trembowiecki
Hi,
it's high time to move from J3 to J4 (which is and incredible pain in my case). Modals for J3 worked in a very intuitive way, which for me was true perfection. Modals for J4 is a different animal and when I tried to recreate the old functionality, I stumbled on a few things.
The problem: displaying whole article (which is published as a menu item) in a popup.
Expected behaviour:
1) display article as an inline content, not iFrame, and when right clicked to open the popup in different window - it opens with the rest of the site (menus, modules, etc.)
2) when clicked on mobile (defined screen width), the popup is disabled and the link opens as a traditional link.
In Modals for J3 all the points are checked, however with J4...
ad 1) I've tried the old syntax and got iFrame. When I right clicked to open the link in new window, I got just the naked article without menus, modules etc. So I've tried {modalconent SomeName}{article id="xxx}{/article}{/modalcontent}{modal content="SomeName" title="Some title"}Some text{/modal}. Well, at first sight it looks as it should, but when I right click to open it in a new window, instead it opens 'source-url#SomeName'. I'm stuck. What shoud I do to achieve expected behaviour as described in point 1)?
ad 2) the popup mechanism just doesn't want to go away, even on a very small screen. Is there a way to disable modals in small screens at all?
Kindest regards
Olek