Closed (fixed)
Project:
Taxonomy Menu
Version:
5.x-1.01
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2008 at 18:45 UTC
Updated:
7 May 2008 at 12:51 UTC
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
Comment #1
thierry.beeckmans commentedOkay, 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...
Comment #2
thierry.beeckmans commentedwithin 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.
Comment #3
brmassa commentedthanks for your report. fixed.
regards,
massa
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
Wet commentedThis fix don't work in my web site.
I'm replace "taxonomy_menu_show_view_" with "taxonomy_menu_show_views_" and this worked.
Comment #6
suit4 commentedWet 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.