Views

Views can be used to display other types of content (such as News, Events or People) in an organized way. Simply adding any one of these items will automatically update the view. To update how or where the views are displayed, see below.


Image
Add View 2

How to Add a View

  1.  Create a page or edit an existing one.
  2. Select the Add View from the page elements at the bottom of the page.
  3. Add bottom spacing under Additional options.
  4. Add a custom title to the view (optional).
  5. Select desired value from the View dropdown menu (AZ Events, AZ News, AZ Person, AZ Pages).
  6. Choose from one of the pre-formatted display option from the Display dropdown menu.
  7. Under the Options dropdown input items per page (optional).
  8. Save.

How to Add a View to the Select List

Custom views will not be added to the select list automatically. By default, the Views component has the options: AZ Events, AZ News, AZ Pages, and AZ Person. To have a specific view available in the list, you need to add it to the component's field settings. To add a view, do the following:

  1. As a site Administrator, log into the site and navigate to <yoursite>/admin/structure/paragraphs_type/az_view_reference/fields
  2. Edit the View field (field_az_view_reference)
  3. In the edit form, scroll down to "Preselect View Options" and select the desired views
  4. Save the field

Step 1: Find the taxonomy term ID

  1. Navigate to Manage > Structure > Taxonomy.
  2. Select List Terms next to the desired category (Events, Page, Person, News).
  3. Select Edit next to the term.
  4. Copy the Term ID in the URL (Example: /term/4 means the term ID is 4). More information about Taxonomy terms can be found here.
Image
Taxonomy ID 1
Image
Taxonomy ID 2
Image
Taxonomy ID 3

Step 2: Add the taxonomy Term ID to a View

  1. Edit an existing view or create a new view as explained above.
  2. Enter an Argument to display only items in a certain category (Leaving this blank will display all items).
    • The Argument must be the taxonomy term ID number of the category you wish to display
    • You can enter:
      • Single taxonomy arguments: 4
      • Multiple taxonomy arguments: "4,6,3" (Taxonomy terms within double quotes and separated by comma)
      • Single secondary taxonomy arguments: 8 (No double quotes used)
      • Multiple secondary taxonomy arguments: 8 9 (No double quotes or comma used)
    • For more information see the Taxonomy page
Image
Filter View