Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
exposed filters
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2010 at 05:54 UTC
Updated:
26 Apr 2010 at 05:20 UTC
Hi folks,
I have a Exposed form filter: frontpage-default block in which I can filter stories. Everything works fine for now. Like sort by gender, age
In the mean time I have a view for "topviewed" content and "topcommented" content.
In the filter block I would like to have a new field where users can choose from drop-down list the options "topviewed" or "topcommmented" among with other exposed filters and Apply.
Which would be the best way to accomplish this.
I would greatly appreciate feedback.
Comments
Comment #1
halisemre commentedbump
Comment #2
dawehnerAre you kidding?
13:51 - 06:54 = 06:57
I don't know a way of doing this without custom coding.
You could make two different urls, and let display the form with ctools jump menu code.
Alternative you could make a filter handler, which is only used for exposed filters, which changes the url of the site.
Perhaps http://code.developmentseed.org/views_modes/node/185 helps you too.
Comment #3
halisemre commentedI already have my_module hook in which I convert export fields to drop-down list in views export filter. I want to create another empty field which I will convert it to dropdown list and run sql queries by that way i can get rid of other views...in logic it seems easy to accomplish like getting the sql from the current views.