seb-vial / grav-plugin-about-me

Simple plugin to show some information about yourself, with a nice picture, your name, your title/job and a description
MIT License
9 stars 7 forks source link

documentation issue #8

Closed ScotsScripts closed 6 years ago

ScotsScripts commented 7 years ago

If you add {% include 'partials/aboutme.html.twig' %} to a page, all you see on the page when viewed is {% include 'partials/aboutme.html.twig' %}

It took me two hours to figure out that I had to turn on TWIG processing in the page config to get that statement above to work.

For experienced GRAV users this is probably obvious, but this is my first time using GRAV and I didn't know you had to turn on TWIG processing for the plugin to work. Please update the documentation with beginners in mind, thanks!

seb-vial commented 7 years ago

Hello there,

This is not really an issue, what you did is applicable to every plugin you'll use that uses templates. Basically this plugin is designed to be used in a template of your theme, of course you can use it in a single page as you did, but activating the TWIG functionality doesn't depend on this plugin or any other for that matter.

Activating TWIG in pages is a Grav functionality, you can find some explanation in the official documentation, specifically how yo activate TWIG in a page https://learn.getgrav.org/admin-panel/page-advanced#overrides

twig

image

To sum up there is no need to add this in the documentation for this plugin as it's not specific to this plugin.