-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Adding a manage button to the sample data module #33169
Conversation
… plugin manager with sampledata plugins prefiltered.
Why not select |
Because that cog icon comes from the module chrome (not from the module itself). To my knowledge the module can't manipulate this part. |
I have tested this item ✅ successfully on df52e89 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
please solve conflicts as #33168 was merged |
A button to directly edit (or unpublish) the sample data plugin isn't possible easy because we don't know the ID of the plugin. |
We need to fetch the db. here is the modified file
|
Fetching the DB is a no-go in my eyes. Also technically "name" doesn't necessary have to be the name of the plugin. It could be anything. It just happens to be the same name for the core plugins. So if we want to have a direct button, we need to adjust the overview method so the plugin returns its own ID. |
I have tested this item ✅ successfully on 91c4cac @infograf768 though I get what you're trying to allow for there, the buttons indicating "Edit" are misleading IMO... you're not "Editing" the sample data, you're managing the availability of the plugin. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
Regarding the name of the button, I think "Manage Sample Data Plugins" gets to long. Maybe @brianteeman has a better idea for the text (I'm no no native english speaker). |
Buttons: This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
I have tested this item ✅ successfully on 29274b6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
I have tested this item ✅ successfully on ab2019e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
I have tested this item ✅ successfully on ab2019e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33169. |
As an partial alternative to #33165
Summary of Changes
Adds a button to the sample data module which leads to the plugin manager. Sampledata plugins will be prefiltered.
This certainly needs improvement on the design aspect (where I suck badly). So if anyone has an idea how this can be improved I'm open to suggestions or PRs :-)
Testing Instructions
Just use the button
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Buttons leads to
Documentation Changes Required
None