Hi,
I have a view with the following argument handling code (it is used in the view to be able to show the content with two taxonomy terms.:
$new_title = '';
if (!$args[0]) return $args;
$new_arg0 = '';
$new_args = explode('-', $args[0]);
foreach ($new_args as $this_arg) {
if (is_numeric($this_arg)) {
$new_arg0 .= $new_arg0 == '' ? $this_arg : ','.$this_arg;
} else {
$these_terms = taxonomy_get_term_by_name($this_arg);
if (count($these_terms)) {
$new_title .= $new_title == '' ? $this_arg : ' - '.$this_arg;
}
foreach ($these_terms as $this_term) {
$new_arg0 .= $new_arg0 == '' ? '' : ',';
$new_arg0 .= _taxonomy_get_tid_from_term($this_term);
}
}
}
if ($new_title) {
$view->argument[0]['title'] = $new_title;
}
return array($new_arg0);
The view will not save in the Panel!
greetings,
Martijn
Comments
Comment #1
summit commentedOn second thought..the one view with this argument handling code works....another is not working.
I have to get into this deeper.
I got this error on both views:
greetings,
Martijn
Comment #2
summit commentedOK,
What I did is trying to make the taxonomy/term view "two" terms enabled. This works within the view-scope. But this is not working within the panel-scope. The view itself will not save.
I show the specific view underneath:
I hope this helps to find the bug!
The same argument handling codes works when I insert in in the popular content view, but not in the taxonomy/term view as seen above.
Greetings,
Martijn
greetings,
Martijn
Comment #3
summit commentedHi,
Can anyone confirm that views with diffiicult argument handling code like above is not working with panels 2?
Thanks in advance!
greetings,
Martijn
Comment #4
merlinofchaos commentedI've not seen anything like this; I'm not sure how argument code could affect pane settings saving, they're completely unrelated. You may need to provide the exact steps you go through to reproduce this problem.
Comment #5
summit commentedHi Earl,
first I got this error, only with trying to add the panel on alpha13.
I will try alpha 14 and give feedback on this.
greetings,
Martijn
Comment #6
summit commentedHi Earl, the invalid argument error is gone with Alpha14! Thats good.
But the view will not save in the panel.
Step1: I added a panel
Step2: I went to site/admin/panels/panel-page/test/edit/content
Step 3: I selected the above view (http://drupal.org/node/192624#comment-631183) to add in the panel-page (see picture select_taxonomy_test.jpg)
Step 4: I tried to save the pane (see picture panel_page).
It will not save.
I tried also without the argument handling code..it will also not save. May be there is something about the view!
Thanks for getting into this. Maybe it is not the argument handling code..
And Earl..I am not in a hurry. You have more important things to do I think.
Anyway when you get time to get into it. Thanks already!
greetings,
Martijn
Comment #7
sunMarking as by design for now. Feel free to re-open this issue if you still encounter this error.