Follow the steps below to add Drupal Views in your website with Glazed Builder:

  1. Click on the + icon.
  2. Go to the Views tab.
  3. Optionally, filter view by name with Filter field.
  4. Select the View display.
  5. Optionally, override the views' contextual filter by setting contextual filter values in Glazed Builder. This is only possible if the views is configured with contextual filters in the views dashboard.
  6. Optionally, override the views' default filtering by setting exposed filters in Glazed Builder. This is only possible if one or more of the views' filters are set to "exposed" in the views dashboard.
  7. Optionally, display exposed filters to users by clicking Show exposed filters field.
  8. Optionally, display view title by clicking Show title field.
  9. Optionally, override views pager settings in Override pager field.
  10. Optionally, override views pager offset in Pager offset field. This option is only available if Override pager is enabled.
  11. Once you’ve selected your preferred settings, you can click on Save Changes and you're done!


    Toggle Views Fields on and off with Glazed Builder

    1. Go to the Toggle Fields tab to select fields to display in view. This tab is only available when the view is configured to use Fields and there is more than 1 field to display.
    2. Optionally, select fields to exclude from display.
    3. Once you’ve selected your preferred settings, you can click on Save Changes and you're done!


    Exposed Filters in Glazed Builder

    There are 2 ways in which exposed filters can be used. One option is to set the exposed filter value in the Glazed Builder modal that pops up if you click the pencil icon on your views display. The purpose of this method is to re-use the same views displays in multiple places with different filter-based content. 
    You can also let your website's visitors manipulate exposed filters by enabling the option Show exposed filters, this is Drupal's intended use of exposed filters. In order for this to work it is required that you enable Ajax​​​​​​​ on your views display. 


    Contextual Filters in Glazed Builder

    Contextual Filters are an advanced filtering option that let's Drupal determine filter values from the context of the page. A typical usage of contextual filters is to load content belonging to the same taxonomy term on a taxonomy term overview page. For example the page taxonomy/term/3 will load all content referencing taxonomy term 3. 

    It is possible for views inside a Glazed Builder container to filter content based on contextual filters that rely on ID values in internel paths, but there are some requirements: 

    • The views display must be a block display, this does not work for page type displays.
    • The block display must have Ajax enabled.
    • The block display must be set up to load default values from the URL, for example: "WHEN THE FILTER VALUE IS NOT IN THE URL" -> Provide default value -> Taxonomy Term ID from URL