[wp-trac] [WordPress Trac] #21665: Allow non-editable pages to be classified & organized as "System Pages"
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 23 12:55:03 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 ui-feedback |
--------------------------------------+------------------------------
Comment (by scribu):
The problem with custom page templates is that they're supposed to be
completely non-editable. Users should still be able to edit the slug at
least, as well as the title. Also, some templates actually use the page
content as well.
So, we'd need some sort of API for specifying this.
It could be another field in template's header:
{{{
<?php
/**
* Template Name: Showcase Template
* Description: A Page Template that showcases Sticky Posts, Asides, and
Blog Posts
* Supports: title, editor
...
}}}
Or a PHP function:
<?php
{{{
register_page_template( 'showcase.php', array( 'title', 'editor' ) );
}}}
The array would accept the same values as the 'supports' parameter from
`register_post_type()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21665#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list