Views
The Views component embeds a Drupal View — a dynamic list of content items that can be filtered, sorted, and paginated. For example, a Places View shows a list of Places, which can be further filtered using the options below.
Intro tab
Section titled “Intro tab”Options in the Intro tab are covered in the Components section.
Views tab
Section titled “Views tab”Select the View to embed. Available Views typically include:
- Councillor
- Events
- Have Your Say
- Meeting
- Meeting — Search (a searchable list of various council meetings)
- News and Media
- Places
- Publication
Display
Section titled “Display”Typically, there will be only one option available — Block.
Options
Section titled “Options”Show Filters on Page
Section titled “Show Filters on Page”Determines whether filters (such as Category) are displayed above the list of items. Available filters depend on the selected View.
Items per Page
Section titled “Items per Page”Number of items displayed on a single page. If there are more items than specified, pagination is displayed (if enabled).
Offset Results
Section titled “Offset Results”Skip the first n items.
Pagination
Section titled “Pagination”Classic pagination with links to first, previous, next, and last pages.
Shows a Load more button.
Shows a fixed number of items. Additional items are hidden and cannot be loaded.
Shows all items, ignoring the Items per page setting.
Argument
Section titled “Argument”Filter the list by taxonomy ID.
- Navigate to the Taxonomy page in the admin menu
- Click List terms on the needed taxonomy
- Click Edit on the needed term and copy the number after
/term/from the URL - Paste that number into the Argument field
Appearance Admin
Section titled “Appearance ”The Appearance options are the same as for the Related Content component — render style, columns, media shape, media size, info level, and more.
Additional Views-specific options:
Hide Actions
Section titled “Hide Actions”Hide the View’s action buttons (e.g. “Add content”).
Carousel Rows
Section titled “Carousel Rows”Number of rows in the carousel (1 or 2).
Use Full Body
Section titled “Use Full Body”Show the full body content instead of the summary.
Show Facility Icons
Section titled “Show Facility Icons”Display facility-specific icons on the cards (applicable to Places View).
Example: Annual Reports
Section titled “Example: Annual Reports”- View: Publication
- Display: Block
- Options:
- Items per page: 9
- Argument: 163 (Taxonomy ID for Annual Reports)
- Appearance:
- Media Shape: Rectangle
- Media Size: Extra Large x2 (Portrait)
- Render Style: Grid
- Columns: 3
- Info Level: Low
- Summary Lines: Hidden
All fields (technical reference) — 31 fields
| Field name | Machine name | Type | Role |
|---|---|---|---|
| Block ID | field_dmz_block_id | string (max 255) | Admin |
| Border Style | field_dmz_border_style | list_string | Admin |
| Columns | field_dmz_column_count | list_string | Admin |
| Render Style | field_dmz_content_render | list_string | Editor |
| Filter ID | field_dmz_filter_id | string (max 255) | Admin |
| Filter Taxonomy ID | field_dmz_filter_taxonomy_id | string (max 255) | Admin |
| Filter Title | field_dmz_filter_title | string (max 255) | Admin |
| Hidden | field_dmz_hidden | boolean | Editor |
| Hide Actions | field_dmz_hide_actions | boolean | Admin |
| Info Level | field_dmz_info_density | list_string | Editor |
| Media Emphasis | field_dmz_initial_media_style | list_string | Admin |
| Summary Lines | field_dmz_line_count | list_string | Editor |
| Buttons (legacy) | field_dmz_links | link | Deprecated |
| Magazine Style | field_dmz_magazine_style | boolean | Admin |
| Background Media | field_dmz_media | reference (image, video, fotoweb) | Admin |
| Media Shape | field_dmz_media_shape | list_string | Editor |
| Media Size | field_dmz_media_size | list_string | Editor |
| More Link | field_dmz_more_link | link | Editor |
| Orientation | field_dmz_orientation | list_string | Editor |
| Outer Background | field_dmz_palette_color_1 | list_string | Admin |
| Inner Background | field_dmz_palette_color_2 | list_string | Admin |
| Content Background | field_dmz_palette_color_3 | list_string | Admin |
| Carousel Rows | field_dmz_row_count | list_string | Admin |
| Section ID | field_dmz_section_id | string (max 255) | Admin |
| Introductory Text | field_dmz_text | text | Editor |
| Introductory Title | field_dmz_title | text | Editor |
| Title Lines | field_dmz_title_line_count | list_string | Editor |
| Title Heading Level | field_dmz_title_tag | list_string | Admin |
| Use Full Body | field_dmz_use_full_body | boolean | Admin |
| View | field_dmz_view | viewsreference | Editor |
| Show Facility Icons | field_show_facility_icons | boolean | Admin |