Hi Neil,

Hi Neil,
After some update problems, I had to start over again on another site, and somehow I am not getting it to work.
- did build the view with "taxonomy_menu/% => working
- did get taxonomy_menu 2.0 installed. => working
- build the add-on to settings.php with custom_url_rewrite function => working
- did build the vocabulary with the taxonomy_menu on Navigation menu. => Working
- other taxonomy_menu selections are working: default, summit, custom path. => working
- hierarchical path option => Not WORKING.

All taxonomy_menu options beside hierarchical are working...but I need hierarchical..
What could be the problem please?

greetings,
Martijn

Comments

indytechcook’s picture

Status: Active » Postponed (maintainer needs more info)

Did you create the views first with the corresponding path? The path needs to be set before the taxonomy menu is created.

summit’s picture

Hi Neil,

I do not know exactly anymore...how can I re-arrange this when I did it the other way around?
Just disabling the menu, and than enabling it on navigation-menu didn'd do the trick...
Do I need to reinstall the module?

Thanks a lot for going into this. Hierarchical menu's seems to be hard to get working :)

EDIT: It is driving me crazy..default is showing just fine, but hierarchical menu..NO GO..
I build another view, and changed taxonomy_menu to category, after this I saved the view, and only then I build the taxonomy_menu with BASE PATH FOR HIERARCHY PATH: category.
It is just not showing hierarchical menu... NO GO.
Thanks for your effort to get this done!

Greetings,
Martijn

summit’s picture

Hi Neil,
Still puzzling with this, and can't get it to work.
On the other site I can't get a hierarchical menu to show. The default menu shows nicely?

Question1) Could this still be a view-issue, while default is showing ok?
Question2) How to really start from scratch if needed, which database records/tables should I delete if that is necessary?

What I did was, was starting from scratch:
- Cloned the taxonomy_term view to a new view taxonomymenu
- Made the taxonomymenu view have a new path : taxonomymenu/%
(Argument one a taxonomy ID)
- Filled the path taxonomymenu in the taxonomy/taxonomy_menu settings
- Selected the hierarchical path option ==> NO SHOW
- Changed again to default path option ==> SHOW.

Question 3) It seems still something is not completely correct with the hierarchical menu, right?

Thanks a lot in advance for going into this still.

Greetings,
Martijn

indytechcook’s picture

Hello Martijn,
My thought is that it's related to the view and the path. Try change the path in the view to 'category/%' then rebuild the menu.

summit’s picture

Hi Neil,
I set the taxonomy_menu options to Hierarchical, path: category. rebuild the menu, but NO GO

Here is the view I use, do I do something wrong in the view?

$view = new view;
$view->name = 'category';
$view->description = 'A view for taxonomy_menu';
$view->tag = 'category';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('sorts', array(
  'sticky' => array(
    'id' => 'sticky',
    'table' => 'node',
    'field' => 'sticky',
    'order' => 'DESC',
    'relationship' => 'none',
  ),
  'created' => array(
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'order' => 'DESC',
    'granularity' => 'second',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'term_node_tid_depth' => array(
    'default_action' => 'not found',
    'style_plugin' => 'default_summary',
    'style_options' => array(
      'count' => TRUE,
      'override' => FALSE,
      'items_per_page' => 25,
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '%1',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'taxonomy_term',
    'validate_fail' => 'ignore',
    'depth' => '0',
    'break_phrase' => 1,
    'set_breadcrumb' => 0,
    'id' => 'term_node_tid_depth',
    'table' => 'node',
    'field' => 'term_node_tid_depth',
    'relationship' => 'none',
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'weblinks' => 0,
      'panel' => 0,
      'datafeeditem' => 0,
      'feed' => 0,
      'page' => 0,
      'producten' => 0,
      'story' => 0,
    ),
    'validate_argument_vocabulary' => array(
      '1' => 0,
      '2' => 0,
      '3' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'user_argument_type' => '',
    'restrict_user_roles' => 0,
    'user_roles' => array(),
  ),
));
$handler->override_option('filters', array(
  'status_extra' => array(
    'id' => 'status_extra',
    'table' => 'node',
    'field' => 'status_extra',
    'operator' => '=',
    'value' => '',
    'group' => 0,
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('items_per_page', 4);
$handler->override_option('use_pager', '1');
$handler->override_option('link_display', 'page_1');
$handler->override_option('row_plugin', 'node');
$handler->override_option('row_options', array(
  'teaser' => TRUE,
  'links' => TRUE,
));
$handler = $view->new_display('page', 'Pagina', 'page_1');
$handler->override_option('arguments', array(
  'term_node_tid_depth' => array(
    'default_action' => 'not found',
    'style_plugin' => 'default_summary',
    'style_options' => array(
      'count' => TRUE,
      'override' => FALSE,
      'items_per_page' => 25,
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '%1',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'taxonomy_term',
    'validate_fail' => 'not found',
    'depth' => '0',
    'break_phrase' => 1,
    'set_breadcrumb' => 0,
    'id' => 'term_node_tid_depth',
    'table' => 'node',
    'field' => 'term_node_tid_depth',
    'relationship' => 'none',
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'weblinks' => 0,
      'panel' => 0,
      'datafeeditem' => 0,
      'feed' => 0,
      'page' => 0,
      'producten' => 0,
      'story' => 0,
    ),
    'validate_argument_vocabulary' => array(
      '1' => 0,
      '2' => 0,
      '3' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
    'override' => array(
      'button' => 'Use default',
    ),
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'user_argument_type' => '',
    'restrict_user_roles' => 0,
    'user_roles' => array(),
  ),
));
$handler->override_option('path', 'category/%');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));
indytechcook’s picture

Status: Postponed (maintainer needs more info) » Active

While I think about this......
To answer your question about how to start from scratch: If you disable then uninstall the module at 'admin/build/modules/uninstall' it will remove all variables, tables and references to the taxonomy menu.

summit’s picture

Hi Neil,

I did as you explained. I uninstalled the module, then I saved the above view from http://drupal.org/comment/reply/402888/1374114#comment-1373796 again
Only after this I enabled the taxonomy_menu module, and the taxonomy_menu_hierarchy module. So this must be the right order.

Then I set the vocabulary to use the navigation menu as taxonomy_menu, set Menu Path Type to hierarchy and set Base Path for Hierarchical Path to:category
Unfortunately, NO GO....
When I do submit, it says * Updated vocabulary Regionaal and * The Taxonomy Menu has been rebuilt...but NO SHOW.
Menu Path Type default is showing the menu correct. What I can I still be doing wrong please?

EDIT: IT IS WORKING!! I THINK IT HAD TO DO WITH ARGUMENT SETTING ON THE VIEW
Greetings,
Martijn

indytechcook’s picture

Status: Active » Fixed

That's great news! I was at a lost about what else to tell you.

summit’s picture

Status: Fixed » Closed (fixed)

Hi Neil,

Thanks a lot for your time and effort so far! Great we have solved this!
So now I have my settings.php version working. It is not the most elegant way, but it is working!

Greetings,
Martijn