开发者

Drupal, Views, Exposed filter: custom default selected tags

开发者 https://www.devze.com 2022-12-24 09:36 出处:网络
I\'m using Drupal, Views with a exposed filter (using taxonomy). My customer wantsto set from back-end the default selected tags (in order to pre-filter the views content).

I'm using Drupal, Views with a exposed filter (using taxonomy). My customer wants to set from back-end the default selected tags (in order to pre-filter the views content).

In the exposed filter settings, there is functionality. However, it doesn't work properly: when I click on "Select None" link (I'm using better_exposed_filter module) I expect none of the tags are selected, instead, the default configuration (default selected tags) are selected, so actually it 开发者_运维技巧doesn't work anymore. I hope it is clear.

So, I was wondering if I can prepare a custom menu in which my user can check/uncheck the default selected tags in the view.

thanks


You could achieve this with hook_forms_alter to change the default selected entries, but if the exposed filter isn't using your selected ones by default then there may be a bug that's worth filing on the module.


I've created a new homepage with a CCK forward link.

My customer can select the tags in the View, and copy paste the URL after the changes.

The homepage automatically forward to the personalized view URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消