Create menu by taxonomy term parent
bwoods - January 8, 2009 - 16:19
| Project: | Jump |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
I ran into a situation where I needed multiple menus for sets of categories using the same taxonomy vocabulary set. I made a few minor changes to pass in the parent in the initial call, like so:
<?php
print jump_quickly(3, 'taxo', 12);
?>In this case, my parent term has a tid = 12. If you do not include a parent ID, the menu appears as it would have without the additional variable.
| Attachment | Size |
|---|---|
| create_menu_by_parent.patch | 552 bytes |
