[wp-trac] [WordPress Trac] #12900: Enhance Nav_Menu to use the older menu functions
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 7 16:42:23 UTC 2010
#12900: Enhance Nav_Menu to use the older menu functions
-------------------------+--------------------------------------------------
Reporter: WraithKenny | Owner: ryan
Type: enhancement | Status: new
Priority: normal | Milestone: 3.1
Component: Menus | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Concerning wp_list_pages, wp_page_menu, and/or wp_list_categories
functions:
Since these functions exists and developers are comfortable with them, and
they'd add much functionality if they were included in the new wp_nav_menu
function.
Could the wp_nav_menu utilize these established functions in itself to
allow "dynamic" listing of pages with the useful options available in
those functions?
New "widgets" on the left among the "Add Existing Page" and "Add an
Existing Category" (perhaps "Add Dynamic Page List" or the like) that
would essentially be a UI interface for the args that the wp_list_pages,
wp_page_menu, or wp_list_categories functions already accept. The
wp_nav_menu would then pass those args to the appropriate function and
create items in the appropriate place in the nav menu. (I have no idea how
easy/hard that'd be.)
This wouldn't replace the "Add Existing Page" or "Add an Existing
Category" as starting at zero and adding individual items is different and
also very useful.
This treatment might be appropriate for any function listed in "Related"
http://codex.wordpress.org/Template_Tags/wp_list_pages#Related or maybe
only wp_page_menu or wp_list_pages. I think it warrants discussion.
P.S. This is well above my ability in PHP. I don't think I can't do a
working patch on this :-(
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12900>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list