You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure is this an "idea" issue, or should it be a issue (or PR) in the getkirby.com repo?
When writing a plugin with snippets, these can be overridden by a site using a snippet of the same name as registered. In order to allow developers to keep their snippets folder clean, it would be good practice to not register them with
instead. This allows to place plugin-related custom snippets into folder site/snippets/pluginname rather than adding them to the main site/snippets folder. I got feedback on that related to one of my plugins, and today - now sensitized to it - encountered the same while implementing somebody else's plugin.
A recommendation to use the latter style in the "Best practices" document could help establish this as a pattern? Maybe as a subchapter along with some other "best practices" that make it easy to override plugin defaults for site authors?
The text was updated successfully, but these errors were encountered:
Not sure is this an "idea" issue, or should it be a issue (or PR) in the getkirby.com repo?
When writing a plugin with snippets, these can be overridden by a site using a snippet of the same name as registered. In order to allow developers to keep their
snippets
folder clean, it would be good practice to not register them withbut
instead. This allows to place plugin-related custom snippets into folder
site/snippets/pluginname
rather than adding them to the mainsite/snippets
folder. I got feedback on that related to one of my plugins, and today - now sensitized to it - encountered the same while implementing somebody else's plugin.A recommendation to use the latter style in the "Best practices" document could help establish this as a pattern? Maybe as a subchapter along with some other "best practices" that make it easy to override plugin defaults for site authors?
The text was updated successfully, but these errors were encountered: