带有预加载值的导出过滤器
我为用户定义了一个名为“Size”的配置文件字段,它可以采用“Small”、“Normal”和“Big”值,因此它显示为一个组合框。 现在我有一个页面视图,其中有一个在“大小”上定义的公开过滤器,此外该过滤器是可选的,因此组合框中会显示“任意”值。
两个问题:
- 当用户进入查看页面时,自动显示结果列表。我可以等待用户点击“搜索”来显示结果吗?
- 我可以预先选择组合框中的值以及在该配置文件字段中为该用户存储的值吗?即,如果用户的“大小”值为“大”,我可以在组合框中预先选择“大”吗查看搜索页面?
谢谢。
I defined a profile field for users called "Size" which can take the values "Small", "Normal" and "Big", so it's presented as a combo box.
Now I have a Page view with an exposed filter defined over "Size", furthermore the filter is optional so an "Any" value is presented in the combo box.
Two questions:
- When the user enters the view page the result list is automatically showed. Can I wait for the user to click "Search" to display the results?
- Can I pre-select the value in the combo box with the value stored for that user in that profile field?, i.e. if the user's value for "Size" is "Big", can I pre-select "Big" in the combo box of the view search page?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以使过滤器显示用户选择的最后一个值。假设用户 A 选择
Big
,则用户 A 每次观看该视图时,他都会看到字段Size
包含值Big< 的用户个人资料/代码>。显然,用户 A 可以随时更改过滤器的值。
It is possible to make a filter show the last value a user selected. Supposing that user A selects
Big
, then all the times user A watches that view, he will see the user profiles for which the fieldSize
contains the valueBig
. User A can obviously change the value of the filter all times he wants.