[6.x] Use Dialog for Article links, when "modal option" is selected#42461
[6.x] Use Dialog for Article links, when "modal option" is selected#42461laoneo merged 7 commits intojoomla:6.0-devfrom
Conversation
|
Test successfully but can't mark it on issues.joomla.org, get |
|
I have tested this item ✅ successfully on 7801a6a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461. |
|
Thank you @Fedik for this nice work! A direct change of the modal option for the links in article could lead to broken styles and functions in the frontend for some users in conjunction with a Cassiopeia child template, for example. Perhaps another select option for the new dialog would be a variant to prevent this. What do you think about this? |
|
I can do another option, it is not a problem for me. What other thinks? :) |
|
On second thought, another "modal" option will be very confusing, we can probably close it and keep BS here, or rebase to 6-dev |
That's exactly what bothers me a little. But I think the new dialog looks much better by default even without adjusting the css. And can be used out of the box with a template that ships no bootstrap. Tricky :) I will try if I can get a few more opinions on this. |
|
@Fedik thank you for your work. We decided to rebase to 6 |
|
Can you please make the requested change, so that we can test this during PBF? Then we can already merge this into 6.0. |
|
I have tested this item ✅ successfully on b1872ff This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461. |
1 similar comment
|
I have tested this item ✅ successfully on b1872ff This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461. |
|
How can this have been tested with 6.x |
|
@brianteeman the pr was made against the 6.0-dev branch. This is the branch where we commit all the changes which should go into 6.0. |
|
I updated the Help page at https://docs.joomla.org/Help5.x:Articles:_Edit to indicate the new feature in J6. |
Summary of Changes
Use Dialog for Artcile links, when "modal option" is selected.
And new feature: Allow to show inline content in the popup.
Testing Instructions
Add a couple links to the Article,
First link: any regular URL.
Second link:
#my-popup-target.Also add to the article content, following html:
For both links select option: show in modal.
Got to article view, and click these links.
Actual result BEFORE applying this Pull Request
First link works in BS Modal:

Second link does nothing.
Expected result AFTER applying this Pull Request
First link works with Joomla Dialog:

Second link works with Joomla Dialog:

Link to documentations
Please select:
References: