I noticed that it's possible to select a view to change the listing of nodes.
Unfortually I can't manage to get it working.

I guess I have to make a new view, which captures the arguments passed by the url, in order to filter correctly.
How can I filter against the nodes taxonomy within the arguments filter, and how can I manage to put the taxonomy's name as the views title?

I also think there's a small bug in the code. When you select a view and save, it doesn't select the chosen one in the options-list.
I guess it should be defined here:

    // In case of View options selected, select Views
    if (module_exists('views')) {
      $form[$vocab->vid]['taxonomy_menu_show_view_'. $vocab->vid] = array(
        '#default_value'  => variable_get('taxonomy_menu_show_view_'. $vocab->vid, ''),
        '#options'        => $views_list,
        '#title'          => t('Views available'),
        '#type'           => 'select'
      );
    }

If someone can point me how I can create a view with passed by arguments, I'll be a happy person again.

Comments

thierry.beeckmans’s picture

Okay, I thought I was working in a wrong way with the views module.
By changing the url of the view and manual testing, I noticed that my view works without a problem and filtering correct (thought I was doing something wrong there).

So the problem must be within the taxonomy_menu, somewhere...

thierry.beeckmans’s picture

Category: support » bug
Status: Active » Needs review

within taxonomy_menu.inc, you'll have the function _taxonomy_menu_page().
In there you'll have 2 times arg(2), change it to arg(1) and it works.

Although the views part should need improvement, this could do it for now.

brmassa’s picture

Status: Needs review » Fixed

thanks for your report. fixed.

regards,

massa

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Wet’s picture

This fix don't work in my web site.
I'm replace "taxonomy_menu_show_view_" with "taxonomy_menu_show_views_" and this worked.

suit4’s picture

Wet is right: there are typos in the code:
taxonomy_menu_show_view_ is sometimes used as 'taxonomy_menu_show_view_' anad sometimes as 'taxonomy_menu_show_views_'

Additionally I woder, why the top menu element is rendered as view, but not the children .... they are rendered as alist of nodes.