Closed Sogl closed 6 years ago
If you don't need those variables in the Instagram loop, you could just wrap your instagram block into your own .twig template and pass all the needed variables to it.
The function instagram_feed()
single purpose is to just display the feed.
If you really need, you can customize the plugin and pass your needed variables here: https://github.com/artifex404/grav-plugin-instagram/blob/master/instagram.php#L99
Simple {% include 'partials/instagram.html.twig' %}
don't work.
Here I see that function expect parameters: https://github.com/artifex404/grav-plugin-instagram/blob/master/instagram.php#L58 but this variable is not used. Why?
Please refer to PHP and twig documentation. Closing this issue as it is not related to the plugin functionality.
This is what I needed: https://github.com/artifex404/grav-plugin-instagram/pull/11
Hi!
I'm trying to implement custom template with this plugin. When I put
{{ instagram_feed() }}
into my twig, I see output of mytemplates/partials/instagram.html.twig
.But how to pass some
page.header
variables and other parameters to this function and use it insideinstagram.html.twig
?