首页 > 解决方案 > Drupal 7 视图过滤器 - 将 URL 获取参数“Items_Per_Page”更改为“Items”

问题描述

我用 Drupal 7 建立了一个电子商务网站,并为我的产品目录使用视图和视图过滤器。

我想减小视图过滤器的 URL 参数的大小,以保持我的 URL 简洁明了。

Items_Per_Page ”无法在 UI 中进行更改。

我希望将其更改为仅“项目”。

这可以实现吗?

例子

我的产品目录有 5 个过滤器;类别、模组、品牌、系统和每页项目。

当前网址为:catalogue/?category=All&mod=All&brand=All&system=All& items_per_page =All

我想将其更改为:

目录/?category=All&mod=All&brand=All&system=All& items =All

标签: drupalgetdrupal-viewsurl-parametersquery-parameters

解决方案


Please try the Better Exposed Filters module (https://www.drupal.org/project/better_exposed_filters). You can setup your custom filter identifiers in the view settings with this module in order to achieve want you want.


推荐阅读