drupal - 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
解决方案
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.
推荐阅读
- amazon-s3 - Apache Beam + Apache Flink + AWS S3
- java - 尝试在空对象引用上调用虚拟方法“...distanceTo”
- php - 使用 REST API 将 WHMCS 与我的网站连接
- c# - 按钮单击在 ASP.NET 中的面板帖子中不起作用
- android - 飞机wifi恢复后世博会崩溃
- amazon-web-services - AWS SES 不发送电子邮件,尽管遵循指南 - Windows 操作系统
- php - 如果输入被禁用,表单输入不验证
- python-3.x - Python 3 导入:约定与性能?
- postgresql - Rails - PG:InvalidSchemaName
- c++ - 为什么 std::pair 不可构造?