Skip to content

Conversation

@hwmaier
Copy link
Contributor

@hwmaier hwmaier commented Oct 27, 2015

This patch passes the Page object down to the onTwigPageVariables event handler of a plugin so it can determine and manipulate the page headers of the corresponding page object. It is otherwise not possible to access page headers of modular pages because $this->grav['page'] will point always to the main page not the modular subpage.

Refer to discussion here: http://getgrav.org/forum#!/getgrav/plugin-development:ontwigpagevariables-event-h::unread

rhukster added a commit that referenced this pull request Oct 27, 2015
onTwigPageVariables event handler gets Page object passed as Event parameter
@rhukster rhukster merged commit df9b219 into getgrav:develop Oct 27, 2015
@rhukster
Copy link
Member

Thanks! should be useful!

@hwmaier hwmaier deleted the feature/onTwigPageVariables branch October 28, 2015 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants