Jump to content

Wish: Make Template::filenameExists hookable


Oliver
 Share

Recommended Posts

I just wanted to vote for making Template class’ filenameExists method hookable. Would become handy as soon as you don’t want to work with native template files the usual way without all pages being marked as not viewable.

BTW: As the hook method viewable provided by PagePermissions is the main problem here, it would be good to know if it were possible to override existing hooks of other modules somehow. Just a thought.

Link to comment
Share on other sites

I just wanted to vote for making Template class’ filenameExists method hookable. Would become handy as soon as you don’t want to work with native template files the usual way without all pages being marked as not viewable.

<spam>

Maybe the new addition Change Page Template in Fieldtype Select File could help you out. What it does is render the selected template instead of the normal template file. So it's possible to have no template file for the page template, thus not viewable, but after selecting a file and page save, the page is viewable with the selected one.

</spam>

  • Like 1
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

×
×
  • Create New...