Grav Page Inject Plugin and Custom Page Template

I am injecting a page using the page inject plugin.


My challenge is that title is being displayed twice.  See the output

My control template:

{% block controls %}

{{ page.title }}

{{ page.content }}
{% endblock %} ```

Screen Shot 2016-10-06 at 11

Are you sure you not outputting the title in the content? or the page that has the page inject is not already including the same title?

Yes, i did validate that. This is happening for anything that I pull from the header. I was able to test this using a custom header variable:

variable1: inject me

Screen Shot 2016-10-10 at 2

Controls Template:

<div class="control">
    {% block control %},{{page.content}},{% endblock %}

Screen Shot 2016-10-10 at 2

hmm… i’ll have to look into this… can you please create an issue in the page-inject project.

Thanks. Done.

Should be sorted in v1.2.0 of page-inject plugin.

Sweet! I’ve updated my Page Inject plugin and the problem has been solved! Thanks again for your assistance and help!