HashandSalt / kirby3-seo

A plugin for generating SEO meta tags
10 stars 2 forks source link

Provide some examples #4

Open DominiqueVial opened 4 years ago

DominiqueVial commented 4 years ago

Please provide some examples for the use of this plugin. I am not a powerful user of Kirby and after reading the documentation I still don't know how to use this plugin. Maybe providing information about which files are involved could help. i.e for bare minimum controller: what is such a controller? Where these files are located?

Thank you

HashandSalt commented 4 years ago

A controller is a Kirby feature which allows you to seperate the logic for a template away from the template and pass the information down as variables you can access in the template.

Please read the documentation on controllers, and you will understand where to put the code for this plugin 👍

https://getkirby.com/docs/guide/templates/controllers

Essentially, you need a corresponding controller file for each of your page templates, and then paste the "bare minimum" example into the controller file.

DominiqueVial commented 4 years ago

Ok, thank you.

But adding examples to doc should be a great improvement.