Jump to content

Template Family restriction (no or one) can be overuled by editing an existing page


KarlvonKarton
 Share

Recommended Posts

When I set the family of a template not to be used for a new page, then I can not add/create a new page with that template.  All good.

But when I edit the template of an existing page, then I can select and save that ('disabled') template... 

So I can still have more than one page with a ('disabled') template that only can have one or not at all ... 

How is that possible?

Link to comment
Share on other sites

I guess it depends on the needs of your site, but I've never needed to give the "page-template" permission that allows a role to change the template of a page to any role other than superuser. And as a general rule in PW the superuser role can do anything and isn't affected by restrictions.

Link to comment
Share on other sites

18 hours ago, KarlvonKarton said:

When I set the family of a template not to be used for a new page, then I can not add/create a new page with that template.  All good.

But when I edit the template of an existing page, then I can select and save that ('disabled') template... 

So I can still have more than one page with a ('disabled') template that only can have one or not at all ... 

How is that possible?

This is by design. See this GitHub issue for more details. It's not the most consistent solution, but admittedly I've found it quite useful too.

  • Like 3
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...