[wp-trac] [WordPress Trac] #15803: Page Templates within Plugins
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 13 19:49:56 UTC 2010
#15803: Page Templates within Plugins
-----------------------------+----------------------------------------------
Reporter: sterlo | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version:
Severity: normal | Keywords:
-----------------------------+----------------------------------------------
It would be awesome if we could create a '''Page Template''' from within a
the confines of a '''Plugin'''.
Currently, we have to create Page Templates from within a '''Theme'''.
Source: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
If we could add an action or if WordPress could look inside a plugin's
directory, we could have Custom Page Templates within a plugin.
Story:[[BR]]
If '''The User''' has a Theme activated that has a persistent sidebar and
when '''My Awesome Plugin''' requires a page to not have a sidebar (it
needs to use the full with of a site - or whatever - let your imagination
run wild), then there is currently little recourse - other than going into
the theme and adding a Page Template.
This can leave a Plugin "Theme Dependent".
Ideas:
* Add a hook for Page Templates
* Extend WordPress' search for Page Template to include plugin
directories
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15803>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list