Skip to content

Viewfield#

The Viewfield (viewfield) custom field type plugin is our version of the popular Viewfield contrib module. It is used to store a reference to a view along with a display name and options for arguments and number of items to display.

Field Settings#

Setting Label Description Default
allowed_views Allowed views A list of allowed views displays that can be referenced
force_default Always use default value Force the field to use the default value 0

Token browser settings#

Note

These additional settings are provided to handle available tokens for the arguments field when the Token module is enabled. In particular, the default depth of the token tree can be modified via the recursion_limit setting to access deeper levels of the token tree.

Setting Label Description Default
recursion_limit Recursion limit The depth of the token browser tree 3
global_types Global types Enable 'global' context tokens like [current-user:*] or [site:*] FALSE

Widgets#

Label Plugin ID Default
Viewfield select viewfield_select
Hidden hidden

Formatters#

Label Plugin ID Default
Viewfield viewfield_default
Hidden hidden

Dependencies#

  • Views ( views)
  • Custom Field - Viewfield (custom_field_viewfield)