Feature RTC PBF PR-6.0-dev Success

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
4 Dec 2023

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:

<div class="hidden">
<div id="my-popup-target">
<p class="p-3">Lorem ipsum dolor sit amet, cu vis velit signiferumque, eos no possim mollis facilisi.</p>
</div>
</div>

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:
Screenshot 2023-12-03_17-59-26
Second link does nothing.

Expected result AFTER applying this Pull Request

First link works with Joomla Dialog:
Screenshot 2023-12-04_11-07-49

Second link works with Joomla Dialog:
Screenshot 2023-12-04_11-21-21

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:
  • No documentation changes for docs.joomla.org needed
  • Pull Request link for manual.joomla.org: TBD
  • No documentation changes for manual.joomla.org needed

References:

avatar Fedik Fedik - open - 4 Dec 2023
avatar Fedik Fedik - change - 4 Dec 2023
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Dec 2023
Category Front End com_content
avatar Fedik Fedik - change - 7 Dec 2023
Labels Added: Feature PR-5.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 7 Dec 2023
Category Front End com_content Front End com_content Templates (site)
avatar Quy Quy - test_item - 10 Dec 2023 - Tested successfully
avatar Quy
Quy - comment - 10 Dec 2023

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.

avatar Quy Quy - alter_testresult - 10 Dec 2023 - fgsw: Tested successfully
avatar Quy Quy - change - 10 Dec 2023
The description was changed
Status Pending Ready to Commit
avatar Quy
Quy - comment - 10 Dec 2023

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461.

avatar Quy Quy - edited - 10 Dec 2023
avatar LadySolveig
LadySolveig - comment - 5 Jan 2024

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.
If a template uses the bootstrap modal events with custom javascript to perform another action when opening or closing, this will unexpectedly stop working. Similarly, custom styles for the modals have to be rewritten from the users and custom css for this purpose will unexpectedly not work anymore.

Perhaps another select option for the new dialog would be a variant to prevent this.
And the deprecation of the BS modal in the frontend for the article links could be the long-term solution.

What do you think about this?
Would be glad to hear further opinions as well.

avatar Fedik
Fedik - comment - 5 Jan 2024

I can do another option, it is not a problem for me.
But I have seen that current modal option looks bad anyway.

What other thinks? :)

avatar Fedik
Fedik - comment - 6 Jan 2024

On second thought, another "modal" option will be very confusing, we can probably close it and keep BS here, or rebase to 6-dev

avatar LadySolveig
LadySolveig - comment - 6 Jan 2024

On second thought, another "modal" option will be very confusing

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.

avatar LadySolveig
LadySolveig - comment - 11 Jan 2024

@Fedik thank you for your work. We decided to rebase to 6

avatar LadySolveig LadySolveig - change - 11 Jan 2024
Labels Added: PR-6.0-dev
Removed: PR-5.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jan 2024
Category Front End com_content Templates (site) Front End com_content
avatar Fedik Fedik - change - 24 Jan 2024
Title
[5.1] Use Dialog for Article links, when "modal option" is selected
[6.x] Use Dialog for Article links, when "modal option" is selected
avatar Fedik Fedik - edited - 24 Jan 2024
avatar Quy Quy - change - 24 Jan 2024
Status Ready to Commit Pending
avatar Hackwar
Hackwar - comment - 21 Feb 2024

Can you please make the requested change, so that we can test this during PBF? Then we can already merge this into 6.0.

avatar Fedik Fedik - change - 21 Feb 2024
Labels Added: Updates Requested PBF
avatar SarahBerryman12 SarahBerryman12 - test_item - 24 Feb 2024 - Tested successfully
avatar SarahBerryman12
SarahBerryman12 - comment - 24 Feb 2024

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.

avatar eddiekonczal eddiekonczal - test_item - 24 Feb 2024 - Tested successfully
avatar eddiekonczal
eddiekonczal - comment - 24 Feb 2024

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.

avatar richard67 richard67 - change - 24 Feb 2024
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 24 Feb 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42461.

avatar brianteeman
brianteeman - comment - 24 Feb 2024

How can this have been tested with 6.x

avatar laoneo
laoneo - comment - 26 Feb 2024

@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.

avatar laoneo laoneo - change - 5 Mar 2024
Labels Added: RTC
Removed: Updates Requested
avatar laoneo laoneo - change - 5 Mar 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-03-05 13:49:20
Closed_By laoneo
avatar laoneo laoneo - close - 5 Mar 2024
avatar laoneo laoneo - merge - 5 Mar 2024

Add a Comment

Login with GitHub to post a comment