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.

CommentFileSizeAuthor
#7 viewfield-5.x-1.5-exposed-filters.patch691 bytesSloMo

Comments

alex_b’s picture

Title: Make sortable tables and filters work within viewfields » Make exposed filters work within viewfields

doublechecked. sorting is ok. filtering not.

cfuller12’s picture

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.

OliverColeman’s picture

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

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

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

darren oh’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

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

d.sibaud’s picture

Version: 6.x-1.x-dev » 5.x-1.5
Category: feature » bug
Status: Closed (fixed) » Active

The problem is still active and not fixed in the 5.x-1.5, someone can tell me if there is an hack or something working?

I tried somthing in template.php with function phptemplate_views_filters, but can't find out how to solve it

SloMo’s picture

Status: Active » Needs review
StatusFileSize
new691 bytes

I was able to quickly fix it by applying the attached patch. It basically sets the view URL that is also used to construct the filter form to the URL of the node.

I'm not sure, though, how this interacts in the presence of arguments and in node listings. Thus, setting the status to needs review...

sun’s picture

Status: Needs review » Closed (won't fix)

I'm sorry, but there is no maintainer for Viewfield for Drupal 5 and D5 is EOL very soon (with the release of D7).