Is there a way to hide certain templates in the Admin Panel? When the user wants to add a new page, she needs to pick a template. There are quite some templates she never needs to pick, so I was wondering if I could improve the UX by hiding these. Is this possible?
original forumpost here
Hi there,
I have this done on my local version. I will make it into a PR and I'll create a plugin for it.
I have added two new events: 'onAdminPageTypes' and 'onAdminModularPageTypes', the types are passed as reference so you can do whatever you want with it, thus filtering in this case.
@rhukster Any idea for the event names or they will be fine?
I was wondering about this very thing. The Gantry plugin adds a few templates that I love, but sometimes want to hide. I was thinking about creating the same template name in my /custom directory. Then, we could add a special tag (not sure what) to tell the Admin panel to not display it in the dropdown.
This probably have something to do with this two options in admin:

Sadly I can't make this options work. (I've try with page folder_name/title/slug/template)
Hi @jimblue
Can you tell me what would you like to achieve?
Describe your situation so I can help you :)
Cheers,
David
Hi @david-szabo97
I'm trying to hide some pages from admin page list.
Thanks :)
@jimblue
You misunderstood the functionality of my PR.
This configuration hides page templates, not pages from the page list.

Hi! is this feature in any place?... I want something like that to facilitate my users.
hum ok @david-szabo97 ! thanks
@Al-Demon
Hi!
Which feature do you mean? Hiding page templates feature is available in Grav.
See https://github.com/getgrav/grav-plugin-admin/pull/1105
HI! yes, I see is available but... I can't know how its works... Where
I have to put the code:
I tried in system and I can't find in the visual version plugin admin
either... Sorry maybe I'm lost
hide_page_types: - taxonomy - error
hide_modular_page_types:Â - modular/front
El sáb, 31-03-2018 a las 11:54 +0000, Dávid Szabó escribió:
@Al-Demon
Hi!
Which feature do you mean? Hiding page templates feature is available
in Grav.See #1105
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread. Â
 Â{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/getgrav/g
rav-plugin-admin","title":"getgrav/grav-plugin-
admin","subtitle":"GitHub repository","main_image_url":"https://cloud
.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-
95fc-
7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent
.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
b52498112777.png","action":{"name":"Open in
GitHub","url":"https://github.com/getgrav/grav-plugin-
admin"}},"updates":{"snippets":[{"icon":"PERSON","message":"@david-
szabo97 in #1020: @Al-Demon \r\nHi!\r\nWhich feature do you mean?
Hiding page templates feature is available in Grav.\r\nSee
https://github.com/getgrav/grav-plugin-
admin/pull/1105"}],"action":{"name":"View
Issue","url":"https://github.com/getgrav/grav-plugin-
admin/issues/1020#issuecomment-377687800"}}}
@Al-Demon
You just need to open the Admin's plugin configuration. You will find it at the end.
See this comment: https://github.com/getgrav/grav-plugin-admin/issues/1020#issuecomment-375349973
thanks a lot... now I found it... In admin/plugins/admin panel ...
@rhukster
Can we close this issue?
It's implemented via #1105
The admin-panel settings that allow to hide templates only works for the modal related to the main "Add Page" button of the admin-panel. However, the page templates are still visible in the "Advanced" tab "Page Template" field. Was this considered and deliberately omitted from the hide function?
This doesn't seem to work for me. It doesn't do anything, unless I'm misunderstanding.
@bobbwal you have to start with a lowercase letter for it to work
My theme extends Quark theme. No trouble hiding page templates, but hiding modular page templates created by Quark doesn't seem to work.
Any help is much appreciated!