Views Argument Defaults
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
This module provides a default handler for contextual filters which allows the site administrator to set a title or a breadcrumb for a view based on a value defined by a contextual filter of this view.
Example use case
Let's say you want to build a view displaying nodes and you have it filtered via an exposed filter in a block somewhere in your page. Views allows you to set a static title in this case, eg. Search nodes. Using this module, you will be able to use the value of the exposed filter in the title or the breadcrumb. Just add a Global:Null contextual filter and override the title or breadcrumb as you like, eg. Search Nodes - %1.
Limitations
This module uses the exposed filter's value as-is without any processing. If the exposed filter uses a text, it will be used as-is (filtered for security of course). If the exposed filter uses a number to represent a entity id, it will be used as-is, meaning that it will not understand that it should display the entity's label instead.
More defaults required?
Please use the issue queue for any feature requests you might have.