Skip to main content

Agent List (DirectoryList)

Description​

DirectoryList is pulling the list of agents from the database and displaying it on the page.

{object:DirectoryList 
id="agent_list_1"
displayType="display_Type"
name="List of agents"
section="exampleSectionName"
isDefault="true"
pageSize="10"
thumbnail="/path/to/image.jpg"}

{block:DirectoryItem}
{:ItemUrl}
{/block:DirectoryItem}

{block:Pagination}
{/block:Pagination}

{/object:DirectoryList}

Object attributes​

  • id - used to identify the object, this will be used to match the correct object when the user is updating the template
  • displayType - object info display type, see Object Display Type
  • section see Settings
  • isDefault flag used when user is changing the templates, this will mark the objedt as default item to be used on a new template
  • pageSize number of items per page, default is 10

Properties​

  • block:DirectoryItem - see Agent
    • properties
      • :ItemUrl - agent page url
      • block:PropertyList - properties list block that is referenced here have the following:
        • Note
          • PropertyList block referenced here does not have block:Pagination, this block is disabled here.
        • attributes:
          • top - top X items, default is 3, max is 10
  • block:Pagination - see Pagination