A view with exposed filters inside a panel
julma - January 30, 2008 - 16:55
| Project: | Panels |
| Version: | 6.x-3.x-dev |
| Component: | Panel pages |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi,
I am trying to put inside a panel a view which have exposed filters.
Is it possible to stay inside the panel when the exposed filters are used ?
If yes, How can we do that ?
If no, is it something that is planned to be added ?

#1
I have something working :
I set the panel url to "panel1/%"
and the views url to "panel1/views1"
Then I have put the view in the panel and now I can use an exposed filter of the view, for example "node type" and use this filter inside the panel.
I am not sure though to understand how everything is working so if somebody have more details about how a view is supposed to work inside a panel, I am still intersted.
#2
Another solution tested & approved by me is to theme the redirection of the form in your template.php
<?php
function theme_views_display_filters_VIEWNAME($view) {
$form = drupal_retrieve_form('views_filters',$view);
$form['#action'] = 'THE URL OF YOUR PANEL'
drupal_process_form('views_filters', $form);
return drupal_render_form('views_filters', $form);
}
?>
#3
#4
subscribing...
if this is the only way to get exposed filters to work, then so be it!
btw- this is NOT fixed
#5
I am addressing panels with URL's like review/18/96 where
first argument is used by panel, second argument is handed over to view
panel name: review
panel URL: review/%
view name: review
view URL: v/review/$arg
what exactly should I add to template.php? Not being a programmer, so far I only
managed to get a white page. Maybe I am missing something trivial, or maybe it
can't work in my use case? Thank you.
#6
This has not been fixed for D5.
1. create any view with exposed filters; http://mysite.com/myview is the url
2. create node/%/somepage
3. create context
4. add myview to a pane in the panel (you can use legacy views or import view)
5. set arguments
Option 1:
set url to panel
I am taken out of the panel and to the original view page
more link and link to view go back to http://mysite.com/myview
Option 2:
set url override manually:
node/$arg/somepage (which is the url of panel)
While the more link and the title link goto the http://mysite.com/node/$arg/somepage (where $arg is replaced), the exposed filters go back to the original view again.
#7
I am closing this. My problem was with Views Exposed Filter block specifically. It is not working with panels. I will repost there. Thank you for your patience and understanding.
#8
Automatically closed -- issue fixed for two weeks with no activity.
#9
When exposed filter block is added to a panel page, the submit button takes me to the url of the view not the panel even if the panel override is set.
#10
did you created a view with a display page, can you try to add a view pane as display type.
This should solve the problem.
if not you could try to set
$view->url#11
Dereine, how would I set $view->url?
#12
Another option is to use the Insert View module and embed a view in a node, then add that node to a panel. This worked for me.
#13
Similar issue... only not sure the Insert View module will work.
I have a view that has 2 View Panes... (1 table & 1 Gmap)... and exposed filters - no arguments. I have the 2 View Panes placed on the same Panel as well. The URL i have for the panel is.... www.example.com/browser.
Since I have 2 view panes that should be linked by the exposed filters, I don't think it will work embedding the view into a node.
#14
If this is happening under 6.x-2.x, you need to try it with panels 3 - Panels 2 will not have any further updates for Drupal 6. I'm not going to close it yet because it's been reopened a couple of times, but I'm not going to let it sit active if it's not for a current version of Panels.
#15
It was happening under panels 2.
Currently this is still the case in panels 3.
Exposed filter block placed on a panels page does not work as per #6.
Thanks,
Chris
#16
In Panels 3, in Panel Pages, in the view settings select to Override the URL and point that to the panel page name.
Works fine without requiring tricks on the view or panel page URLs
#17
Is this issue still active?
joeslows hint works fine for me, too.
Regards, Ralf
#18
Sounds like we're all good, then.
IMO there needs to be a mechanism to make this more seamless but for now this works well enough.
#19
Automatically closed -- issue fixed for 2 weeks with no activity.
#20
Hi Joe, how exactly did you get this to work? I went to the view pane in my panel page, click on the pane settings and im not sure what you mean with "panel page name", dont i have to input the panel url in Override URL? Do i have to set anything on the View? or just on the panel page? Thanks in advance
#21
Here's how I got it working using joeslow's method - Go to your panel page's edit screen and click on 'content'. Go to the 'settings' screen for your view content. In the 'override URL' field, enter the URL from your view page (NOT the panel's URL). Hope this helps!
#22
It also works if you create a content pane display and set "Use panel path" to Yes, in the Pane settings. Then you just need to select that view pane in the panel.