drupal-exposed-filter

drupal 7 views block and contextual filter not working

孤人 提交于 2019-12-24 12:12:05
问题 I'm trying to set a contextual filter for a block type views but when I preview it, it returns nothing... More specifically when I try the same view as a page the Contextual filter is working fine and filtering the content but when I try the view as a block nothing is returned although the "Provide default value" is set as "raw value from url". Any idea what might be the problem? By the way I tried the solution here but it's still not working https://drupal.stackexchange.com/questions/13868

How to change the label of the default value (-Any-) of an exposed filter in Drupal Views?

ε祈祈猫儿з 提交于 2019-12-18 12:55:24
问题 I created a view which has three exposed filters. Everything works fine except the fact that I can neither translate or change the default string (-Any-) for the dropdowns. Is there a way to change this string to something more meaningful like "Please Select" and make it translatable so the German version displays "Bitte wählen"? I have two screen captures that may be helpful: and A further improvement would be the ability to change the text "any" to something like "please select a (field

Drupal 7: Exposed filter on a post date

穿精又带淫゛_ 提交于 2019-12-02 14:28:00
问题 I have couple hundreds of articles on a website. I use a view to show excerpts and links to them on one page and I also have a pager that show 10 articles at the time. I need to add a dropdown with years [...,2008,2009...,2013]. If you select a year in the dropdown, then view should only display articles that were posted in that year. Years in the dropdown should be updated automatically if a new article added in 2013 for example, and thus the first year is the year of the first publication.

Drupal 7: Exposed filter on a post date

≯℡__Kan透↙ 提交于 2019-12-02 06:19:30
I have couple hundreds of articles on a website. I use a view to show excerpts and links to them on one page and I also have a pager that show 10 articles at the time. I need to add a dropdown with years [...,2008,2009...,2013]. If you select a year in the dropdown, then view should only display articles that were posted in that year. Years in the dropdown should be updated automatically if a new article added in 2013 for example, and thus the first year is the year of the first publication. Please suggest possible solutions. I think, you need to set exposed filter to the view list. The

How to change the label of the default value (-Any-) of an exposed filter in Drupal Views?

穿精又带淫゛_ 提交于 2019-11-30 08:26:12
I created a view which has three exposed filters. Everything works fine except the fact that I can neither translate or change the default string (-Any-) for the dropdowns. Is there a way to change this string to something more meaningful like "Please Select" and make it translatable so the German version displays "Bitte wählen"? I have two screen captures that may be helpful: and A further improvement would be the ability to change the text "any" to something like "please select a (field name here)" but I am losing hope for that =) UPDATE IMPORTANT: On further testing, I found that if you