Drupal 6 – output your primary links as a Site Map
This took me a while to find: In Drupal 6, I wanted to output the main Primary Links menu item, expanded, as a site map:
Simply add the following to a node (with PHP parsing ON!)
<?php $tree = menu_tree_all_data($menu_name = ‘primary-links’, $item = NULL); print menu_tree_output($tree); ?>
Incoming search terms:
- menu_tree_all_data(\primary-links\);
- create sitemap in drupal 6
- print all menu links in drupal
- how to add sub menu in primary links drupal6
- how to add primary link menu in drupal 6
- get modules output in drupal6
- example of menu_tree_all_data drupal 6
- drupal sitemap with views
- drupal menu_tree_all_data example
- drupal 6 php print menu_tree_output
