Create a "settings" link on Plugins Overview for local plugins

Create a "settings" link on Plugins Overview for local plugins

by Brad Simpson -
Number of replies: 2

We have an existing settings page for our local plugin located at local/myplugin/settings.php.  We have added this link to the admin subnav block under "Local plugins."  This is all working fine.

However, we would also like a settings link to appear under the "actions" column in the Plugins Overview table at admin/plugins.php .  Is this possible?

Plugins overview showing the lack of a settings link for a local plugin

Average of ratings: -
In reply to Brad Simpson

Re: Create a "settings" link on Plugins Overview for local plugins

by Mark Sharp -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Ha! Never spotted that before. The admin/localplugins.php file simply doesn't include the settings column like it does at admin/modules.php (for activities).

Could be a nice improvement to core. Would be worth seeing if there's a tracker item for it.


In reply to Mark Sharp

Re: Create a "settings" link on Plugins Overview for local plugins

by Brad Simpson -
Good idea. It seems that there were a few tickets from several years ago that relate to this:

https://tracker.moodle.org/browse/MDL-35442
https://tracker.moodle.org/browse/MDL-35661

It's unclear to me if the "settings" link was ultimately removed, though. Possibly due to issues around user capabilities? https://tracker.moodle.org/browse/MDL-35661?focusedCommentId=181477&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-181477

I should note that we're using Totara with Moodle 3.4.9, so it's possible that the "settings" links are present in a newer version of Moodle. Not sure, though.