[wp-trac] [WordPress Trac] #21665: Allow non-editable pages to be classified & organized as "System Pages"
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 28 20:39:25 UTC 2012
#21665: Allow non-editable pages to be classified & organized as "System Pages"
------------------------------------+------------------------------
Reporter: bootsz | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: UI | Version:
Severity: normal | Resolution:
Keywords: dev-feedback has-patch |
------------------------------------+------------------------------
Comment (by bootsz):
Replying to [comment:16 ryan]:
> Let's just make template registration entirely programmatic and lose
those headers.
>
> {{{
> register_post_template( 'foo.php', array(
> 'name' => __('Foo Page'),
> 'description' => __('Bringing pages full of Foo to your face'),
> 'supports' => array( 'page' => array( 'title', 'editor' ) ),
> ) );
> }}}
>
> edit-form-advanced.php would use the capabilities from the template over
the post type caps. Some care would be needed here since themes don't
necessarily know what caps to use for arbitrary post types.
>
> If we want a "Template/System Pages" filter in edit.php it could query
based on _wp_page_template.
I like the looks of this. Aren't page templates specific to Pages though?
We also need to consider the "Page for Posts", which may require a
slightly different treatment to achieve the same effect.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21665#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list