Skip to content

Instantly share code, notes, and snippets.

@antonioortegajr
Last active January 12, 2018 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonioortegajr/1093c628a0757066118143a1d2b63f37 to your computer and use it in GitHub Desktop.
Save antonioortegajr/1093c628a0757066118143a1d2b63f37 to your computer and use it in GitHub Desktop.

Address page twig variable definitions

Some variables and macros will riqure the an import. These are generally indentified when a period is included Example: labels.subdivision Additionally some variable are combined with logic such as an {% if %} statement. Others may pass arguments.

{% import "forms-1.001.twig" as form %} - imports form macro

{% import "searchTools-1.001.twig" as tools %} - import search tools macro as tools

{% block idxContent %} - Declares and names a block in twig

{% spaceless %} - Removes white space between divs

{% if middleware %} - return if is in middleare

{% include 'multipleMlsDisclaimers-1.000.twig' %} - include disclaimers

{% include 'navbar-1.000.twig' %}

{{ formAction }} - action url for for current page and form

{{ pageID }} - page ID of currnet page

{{ hiddenFields.pt }} - hidden fileds for form

{{ customListType }} - type of custom list

{{ customListID }} - custom list ID

{{ customCityCountyZipLists }} - list of custom lists

{{ displayName }} - display name for list

{{ counties }} name of the counties the property is on

{{ cityName }} name of the city the property is in

{{ zipcode }} - zip code the property is in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment