Jump to content

Get template of page being edited


Pete
 Share

Recommended Posts

Hi guys

I'm sure I'm missing something really simple, but I'm trying to write a module that intercepts the page being edited and works out the template and other information for that page.

I hook it in the module like this:

$this->pages->addHookBefore('ProcessPageEdit::execute', $this, 'something);

But then I'm not sure how to access what the page's template is. If I do the following then it gives me information about the ProcessPageEdit form and not the page being edited:

$page = $event->object;

I'm sure I've run into this before and resolved it before but I just can't find or remember the code.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...