Make exposed filters work within viewfields

alex_b - February 11, 2007 - 00:47
Project:Viewfield
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

If you follow a sort link on a sortable tables or change a settings on an exposed filter, the embedding node of the view is left to the page URL of the view.

The view should stay under all circumstances within its embedding node.

#1

alex_b - February 11, 2007 - 01:03
Title:Make sortable tables and filters work within viewfields» Make exposed filters work within viewfields

doublechecked. sorting is ok. filtering not.

#2

cfuller12 - May 23, 2007 - 20:41

Needed a quick fix for this and did the following:

  • Copy theme_views_filters from views.module to template.php in your theme folder
  • Add the following immediately above the drupal_render call:
  • $form['#parameters'][1]->url = $_GET['q'];

This simply changes the action of the filter form from the original views page to the current (ie node) page. From there everything else works as expected.

This seems to be a quick fix that resolves the issue with out breaking any functionality or conventions. However, if I've missed something, please let me know.

#3

Oliver Coleman - August 14, 2007 - 04:08

I tried this modification of template.php but all I got was an error informing me I couldn't redeclare the function theme_views_filters in template.php.

I then tried editing views.module directly. I got no errors, but it also didn't seem to make the slightest bit of difference.

I'm using drupal 5.1, views 5.x-1.6-beta5 and view field 5.x-1.2

#4

moshe weitzman - January 29, 2008 - 05:38
Status:active» active (needs more info)

still an issue? if so, i think the fix is in viewfield_field_formatter()

#5

Darren Oh - May 1, 2008 - 16:14
Status:active (needs more info)» closed

Closed because there was no response. Please reopen if this is still an issue.

 
 

Drupal is a registered trademark of Dries Buytaert.