kirby-meta-knight icon indicating copy to clipboard operation
kirby-meta-knight copied to clipboard

Option to disable specific fields/manually change fields

Open tobimori opened this issue 3 years ago • 6 comments

In order for MetaKnight to be used in a more versatile environment, options to disable specific fields or change them manually would be a cool addition.

tobimori avatar Mar 02 '21 16:03 tobimori

Interesting idea. Can you give me an example of the use cases you were thinking of? Which fields would you like to disable and which fields would you like to add?

You could already use a custom blueprint based on the preconfigured SEO-tab as a starting point for further customization.

jonathanmuth avatar Mar 11 '21 11:03 jonathanmuth

When I first opened this issue, I just thought of a simplification of the whole settings, maybe with the possibility of manually changing texts or descriptions with ease.

Although when I think about it now, that could also be used to aggregate meta data from already existing fields, like a product description or an excerpt of an article, which are already used elsewhere.

tobimori avatar Mar 11 '21 13:03 tobimori

I started using your plugin in current projects and like the approach. Thanks for your work! It’s easy to translate fields or modify further after copying and editing the blueprints, but e.g. the way the title of a page is build (having dashes) limits the developer. It would be nice to have a config entry to keep it flexible or to simply turn it off like Tobias suggests. Right now I modify your plugin to customize titles, but that’s probably not future proof.

grommas avatar Mar 19 '21 17:03 grommas

When it comes to titles we could easily add the option to define the separator between page title and site title via a config option. The default would be - and could be replaced with any characters you choose. I'll make sure that goes into the next release.

When it comes to managing other fields, I think could we could offer the option to disable certain lines of the meta_information snippet via config options – but for this to be really useful the configuration would have to be applied on a per page or per template basis. So that for example on a product page we can pull in the product description as meta description while on other pages the description fields supplied by the plugin is still functional. 🤔

I am not sure how a feature like that would be best implemented. I'll have a look into it and will report back here.

jonathanmuth avatar Mar 22 '21 16:03 jonathanmuth

Sounds good! Not sure if it’s caused by markdown, but the option may include the whitespaces as well. So we can have something like Site: Title.

grommas avatar Mar 22 '21 18:03 grommas

I’m currently using your plugin for a page with a slightly more complex virtual setup (similar to the gallery example from kirby). In my case it’s good to keep the title from the parent page and add the index as an extended meta information in brackets. After explaining that, I want to add a short note to this topic: it would still be great to turn off features, so that we don’t have to modify the plugin. Thats likely not future proof, when it comes to updates. With that in mind we can easily add our own custom logic without overblowing the plugin for edge cases.

Maybe it’s also worth putting thumbnail configurations for the twitter and OG image in a more configurable but predefined context, but that could be handled with turning it off and writing an own logic as well.

grommas avatar Apr 25 '21 10:04 grommas