Jump to content

Disabling PageFrontEdit (Front-end Page Editing) on a particular template


Recommended Posts

I have PageFrontEdit enabled.  I have a template that includes a bunch of partials.  Those partials contain the PageFrontEdit tags in the following format:

<edit field="body" page="<?php echo $page->id; ?>">...</edit>

This is all working well, however I have a particular template whereby I don't want Frontend Page Editing to be activated at all, as if you were logged out.

https://processwire.com/docs/front-end/front-end-editing/

What's the best way to disable it for a particular template? Is there a proper hook for this perhaps?  Or some hackish JS approach?

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...