? Failure

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
6 Feb 2017

The Button - Module editor-xtd should only display when Content - Load Modules is enabled.
The Button - Fields editors-xtd should only display when both the Content - Fields and System - Fields are enabled.

Otherwise the tags entered with these buttons will show as tags {whatever} as they will not be able to display what they should.

Test instructions
Use TinyMCE and edit an article.
Patch and test disabling the said plugins. The buttons will not display anymore.

@Bakual

avatar infograf768 infograf768 - open - 6 Feb 2017
avatar infograf768 infograf768 - change - 6 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Feb 2017
Category Front End Plugins
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Feb 2017

I have tested this item successfully on d6a446f


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 6 Feb 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 6 Feb 2017

Travis throws errors not related to this PR

avatar zero-24 zero-24 - change - 6 Feb 2017
Labels Added: ?
avatar infograf768
infograf768 - comment - 6 Feb 2017

@franz-wohlkoenig
Please test again as I simplified code.

avatar Bakual
Bakual - comment - 6 Feb 2017

I'm not sure if it's such a good idea. @mbabker made a good argument against this as currently you can exchange the content plugin (or in theory also the editor one) with a different one working from the same tags. That would be perfectly fine. However with this PR it would make the button unuseable even if it would work fine.

And of course if you disable one of the plugins after the tag is already inserted, you still get the plugintags in frontend. So it only prevents from adding new ones using the modal.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Feb 2017

I have tested this item successfully on afdd49d


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 6 Feb 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 6 Feb 2017

Same reply I did to @mbabker

In that case they should imho also fork the existing xtd-button, content plugin, etc.

Displaying the module and fields button when the only things they will show when rendered would be {whatever} is worse.
And yes, one could unpublish the plugins and also can commit seppukku with a dull blade... ?

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 6 Feb 2017

Its about User: What would they expect? Guess clicking on a Button make something.

avatar AlexRed
AlexRed - comment - 11 Feb 2017

I have tested this item successfully on afdd49d

Patch ok for me


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

avatar AlexRed AlexRed - test_item - 11 Feb 2017 - Tested successfully
avatar infograf768
infograf768 - comment - 11 Feb 2017

@rdeutz
Can you take a decision concerning this?

avatar rdeutz
rdeutz - comment - 11 Feb 2017

Do I remember right, I think we had a time as a disabled content plugin at least removed the tag from the content?

avatar Bakual
Bakual - comment - 11 Feb 2017

Do I remember right, I think we had a time as a disabled content plugin at least removed the tag from the content?

I wouldn't know how that would be possible. To my knowledge, the plugin methods don't get triggered when it is disabled. Thus there is no way to replace the tags.

avatar rdeutz
rdeutz - comment - 11 Feb 2017

I checked it it was Joomla! 1.5 :-)

avatar Bakual
Bakual - comment - 11 Feb 2017

You're to old ?

avatar jeckodevelopment jeckodevelopment - change - 11 Feb 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 11 Feb 2017

RTC


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

avatar rdeutz
rdeutz - comment - 11 Feb 2017

Because @jeckodevelopment set it to RTC I made up my mind. I don't think it is the right way to do it. Of course it will solve the problem for now, but we need something to allow a button to find out if it makes sense to display it. Just as an idea, the editor plugin fires an event "shouldIDisplayed" and if nobody answered with yes (baby) it shouldn't be displayed.

avatar rdeutz rdeutz - change - 11 Feb 2017
Status Ready to Commit Needs Review
avatar rdeutz
rdeutz - comment - 11 Feb 2017

removing RTC and set to need review


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

avatar Quy
Quy - comment - 31 Oct 2017

This is partially fixed in PR #18345.

avatar HLeithner
HLeithner - comment - 30 Jun 2019

@infograf768 as #18345 get merged it makes sense to be consistent and do the same for modules.

Could you please fix the merge conflict?

avatar infograf768
infograf768 - comment - 1 Jul 2019

@HLeithner
There is some opposition to this PR by @rdeutz
For fields I was adding here

if (!JPluginHelper::isEnabled('content', 'fields') || !JPluginHelper::isEnabled('system', 'fields'))

and for module

if (!JPluginHelper::isEnabled('content', 'loadmodule'))

In #18345
I was only dealing with the component itself

if (!JComponentHelper::isEnabled('com_fields'))

Not sure what to do...
If you decide that these are necessary anyway, corrected the conflict.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2019

@HLeithner merge conflicts resolved.

avatar HLeithner
HLeithner - comment - 24 Jul 2019

I'm not in favor to break a 3rd party plugin in a bugfix release I would suggest to move this PR to J4.

Sorry for the late decision JM. I'm closing this and hope you create a new one for J4.

avatar HLeithner HLeithner - change - 24 Jul 2019
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2019-07-24 08:45:14
Closed_By HLeithner
avatar HLeithner HLeithner - close - 24 Jul 2019

Add a Comment

Login with GitHub to post a comment