Problem/Motivation
Only the flattened loader needs the template key.
Steps to reproduce
Go to site settings configuration and template key is there.
Proposed resolution
Simplest would be a method added to loader + interface indicating template key is needed, then show if the loader plugin needs template key.
Perhaps more advanced option could be Plugin Configuration to allow future plugins to provide their own settings.
No strong preference here.
Remaining tasks
Update site settings configuration.
User interface changes
Site settings configuration should only show template_key when it is applicable.
API changes
None
Data model changes
None
Issue fork site_settings-3399429
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bobi-mel commentedComment #3
bobi-mel commentedComment #5
bobi-mel commentedHi @ scott_euser
I fixed this issue
Also, I changed the order for inputs. The 'loader_plugin' input is displayed first. It looks better if changing plugins in the select list
Comment #7
scott_euser commentedThanks! Actually template_key is only relevant when auto-load is enabled, so I updated the code to just base it on that. Tricky part was getting the ajax and plugin check to control access working of course, glad you managed! Thanks!
Comment #9
bobi-mel commentedI thought in the future you could create another plugin where template_key displaying and disable_auti_loading are hidden. But we can separate this logic if it needs in any moment