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

halisemre’s picture

bump

dawehner’s picture

Component: Miscellaneous » exposed filters
Category: task » support
Status: Active » Fixed

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

halisemre’s picture

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

Status: Fixed » Closed (fixed)

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