[wp-trac] [WordPress Trac] #10652: Additional arguments required for page_template_dropdown
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 19 17:29:06 UTC 2009
#10652: Additional arguments required for page_template_dropdown
----------------------------+-----------------------------------------------
Reporter: husobj | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Administration | Version: 2.8.4
Severity: trivial | Keywords: reporter-feedback
----------------------------+-----------------------------------------------
As a plugin/theme developer, it would be really useful to be able to call
the page_template_dropdown function with a parameter string similar to
[http://codex.wordpress.org/Template_Tags/wp_dropdown_pages
wp_dropdown_pages].
For example, the current '$default' argument should accept a string of
arguments where:
- 'selected' is the selected template (replaces the current
$default)[[BR]]
- 'echo' can be set to 1 to return instead of output[[BR]]
- 'name' will set a name/id for the menu[[BR]]
This would make it easier to create plugin/theme options where you could
select which templates you want to use for different content.
At the moment it is possible to do this by replicating and adapting this
function but I think it would make more sense to use the same multi-
parameter argument as
[http://codex.wordpress.org/Template_Tags/wp_dropdown_pages
wp_dropdown_pages] and
[http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
wp_dropdown_categories] and include it in core?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10652>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list