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
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

julma - January 30, 2008 - 18:02

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

zmove - March 28, 2008 - 10:05

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

sun - December 28, 2008 - 14:45
Status:active» fixed

#4

SocialNicheGuru - January 9, 2009 - 19:06

subscribing...

if this is the only way to get exposed filters to work, then so be it!

btw- this is NOT fixed

#5

skizzo - January 5, 2009 - 16:24

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

SocialNicheGuru - January 10, 2009 - 16:04
Priority:normal» critical
Status:fixed» active

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

SocialNicheGuru - January 10, 2009 - 16:06
Status:active» fixed

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

System Message - January 24, 2009 - 16:10
Status:fixed» closed

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

#9

SocialNicheGuru - April 1, 2009 - 13:35
Version:5.x-2.0-beta2» 6.x-2.x-dev
Status:closed» active

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

dereine - April 9, 2009 - 05:56

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

SocialNicheGuru - April 19, 2009 - 18:59

Dereine, how would I set $view->url?

#12

glass.dimly - May 23, 2009 - 17:20

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

ctalley5 - May 25, 2009 - 18:24

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

esmerel - June 24, 2009 - 05:19
Status:active» postponed (maintainer needs more info)

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

SocialNicheGuru - June 24, 2009 - 12:44
Version:6.x-2.x-dev» 6.x-3.x-dev
Status:postponed (maintainer needs more info)» active

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

joeslow - October 15, 2009 - 07:44

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

R.Hendel - October 17, 2009 - 20:54

Is this issue still active?
joeslows hint works fine for me, too.
Regards, Ralf

#18

merlinofchaos - October 21, 2009 - 20:24
Status:active» fixed

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

System Message - November 4, 2009 - 20:30
Status:fixed» closed

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

#20

slashwalk - December 1, 2009 - 05:18

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

paul.brightlemon - December 9, 2009 - 15:26

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

srsbl - January 4, 2010 - 19:36

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.

 
 

Drupal is a registered trademark of Dries Buytaert.