Extension: Hidden Templates
I just wrote a quickie extension that hides Hidden Templates (prefixed by “.”) from the dropdown in both the Pages and Structure Modules. We’re using it to keep the publish form clean for clients and to keep them from accidently choosing say “includes/primary_nav” for a new page. We now are showing only a few templates like “site/two_column” and “site/three_column” which our clients really dig.
It requires the JQuery for Control Panel to be enabled. So far it plays well with a bunch of other extensions/modules, but let me know if you hit a snag.
Tested on EE 1.6.6.
UPDATED: Current version 0.9.6 Download it right here.
New Features: Added settings to enable/disable for Super Users and non-Super Users.
Extensions aren’t required to have a language file if there are no settings, so i disabled the settings link. However i’m going to add a per-user group feature so Super Admins can see all templates if need be, etc.. for the 1.0 “release.”
The file is updated.
As for it not working, do you definitely have JQuery for Control Panel enabled?
I disabled all other extensions except JQuery and Hidden Templates. This is a fresh install of EE 1.6.6.
So, with the extension enabled, I should be able to go to the Pages tab of an entry (or create a new page) and the .something template should be hidden from the Templates drop-down. Is that correct? I want to make sure my expectations are what the extension is actually meant to do. 😊
I also get the JQuery code in the header, so that seems to be working properly:
Edit: Bah, the forums stripped that code, oh well.
So, with the extension enabled, I should be able to go to the Pages tab of an entry (or create a new page) and the .something template should be hidden from the Templates drop-down.
Yup that’s exactly what it does. I’ll launch up a fresh copy of EE and see if that’s playing a factor. Most likely something very simple, as most things are 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.