Real Estate Templates

Each page within the real estate app has its own template to display that page's content.

Where to save template files

Template files will go in a folder that has the same name as the app instance key. For example, if the real estate app instance key is "realestate" then you would put all of your template files within the realestate folder inside the templates folder.

If your theme was called "Custom" then this would be an example folder structure:

  • themes
    • custom
      • theme.json
      • templates
        • home.twig
        • one-column.twig
        • two-column.twig
        • realestate
          • agent.twig
          • agents.twig
          • categories.twig
          • category.twig
          • home.twig
          • idx-property.twig
          • idx-search.twig
          • idx-search-results.twig
          • property.twig
          • properties.twig
          • search.twig
          • search-results.twig

Real estate app pages and their templates

Below is the list of real estate app pages and the name of the template file that you should create.

App home

The app home page often shows the properties and/or categories.

Template name: home.twig

Agents list

This page shows the list of agents.

Template name: agents.twig

Agent detail

This page shows the detail information for an individual agent. The properties assigned to the agent can be shown.

Template name: agent.twig

Categories list

This page shows the list of categories.

Template name: categories.twig

Category detail

This page shows the detail information for an individual category. The properties assigned to the category are often shown.

Template name: category.twig

IDX Search

The IDX search page can be used to show the form to search for properties in the linked IDX vendor system.

Template name: idx-search.twig

IDX Search results

The IDX search results page can show the results of search in the linked IDX vendor system. It can show a paginated list of matching properties.

Template name: idx-search-results.twig

IDX Property detail

This page shows the full details for an individual IDX property from the IDX search results.

Template name: idx-property.twig

Property detail

This page shows the full details for an individual property.

Template name: property.twig

Property list

This page shows a paginated list of properties.

Template name: properties.twig

Search

The search page can be used to show the form to search for properties.

Template name: search.twig

Search results

The search results page can show the results of an app search. It can show a paginated list of matching properties.

Template name: search-results.twig