? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
2 Nov 2018

Partial Pull Request for Issue #22908

Summary of Changes

This replaces the Mootools modal vs a bootstrap modal

Testing Instructions

  • Install 3.9.0
  • enable the Content - ConfirmConsent Plugin
  • configure this plugin to point to a article
  • open a contact page on the website
  • make sure the title is clickable and opens an modal
  • apply this patch
  • make sure it is still opening a modal this time it should be a bs modal

Expected result

bs modal

Actual result

mootools modal

Documentation Changes Required

none.

Additional Information

When this here gets approved & tested I can apply similar code to the other places where we use the old mootools modal:

cc @brianteeman as he is the original author of the modal things in this plugin touched here.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar zero-24 zero-24 - open - 2 Nov 2018
avatar zero-24 zero-24 - change - 2 Nov 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Nov 2018
Category Front End Plugins
avatar dgrammatiko
dgrammatiko - comment - 2 Nov 2018

@zero-24 please use a layout, do not do html markup inside the plugin!

avatar zero-24
zero-24 - comment - 2 Nov 2018

Can you please let me know what you want to change? As beyond the (already hardcoded) hight and width I did not add any extensive new HTML part in that plugin right? Or is there something special you want me to change?

avatar dgrammatiko
dgrammatiko - comment - 2 Nov 2018

There should be a tmpl folder with a layout (default.php or whatever) so people could actually do whatever they want in the front end, in other words, separate concerns. Check the https://github.com/joomla/joomla-cms/tree/staging/plugins/system/stats which was done correctly. This thing right now is hardcoded you cannot override anything unless you rewrite the whole plugin...

avatar zero-24 zero-24 - change - 3 Nov 2018
Labels Added: ?
avatar Bakual
Bakual - comment - 3 Nov 2018

While it is true that using a layout is better, this PR is valid by itself. Moving the thing to a layout can be done easily in a separate PR as well and is actually preferred. Since it makes the PRs more atomic and easier to test and review.

avatar dgrammatiko
dgrammatiko - comment - 3 Nov 2018

While it is true that using a layout is better

I'll say that it's mandatory, not better. You're not in Joomla 1.5 designers and site builders need to have the ability to override the output without rewriting the plugin! My 2c anyways

avatar mbabker
mbabker - comment - 3 Nov 2018

It should be a separate pull request for exactly the reasons @Bakual already stated. Nobody is saying not to move the code to layouts but when you start adding all sorts of extras onto pull requests they end up being too complex to properly test and review and people either ignore them or they end up getting merged while being completely broken.

avatar ReLater
ReLater - comment - 3 Nov 2018

I have tested this item successfully on c7ac385


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

avatar ReLater ReLater - test_item - 3 Nov 2018 - Tested successfully
avatar drmenzelit
drmenzelit - comment - 13 Nov 2018

I have tested this item successfully on c7ac385


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

avatar drmenzelit
drmenzelit - comment - 13 Nov 2018

I have tested this item successfully on c7ac385


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

avatar drmenzelit drmenzelit - test_item - 13 Nov 2018 - Tested successfully
avatar Quy Quy - change - 13 Nov 2018
Status Pending Ready to Commit
avatar Quy
Quy - comment - 13 Nov 2018

RTC


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

avatar rdeutz rdeutz - close - 13 Nov 2018
avatar rdeutz rdeutz - merge - 13 Nov 2018
avatar rdeutz rdeutz - change - 13 Nov 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-11-13 21:04:55
Closed_By rdeutz
Labels Added: ?

Add a Comment

Login with GitHub to post a comment