Skip to main content

Agent (DirectoryItem)

Description​

DirectoryItem is pulling the agent details from the database and displaying it on the page.

{object:DirectoryItem 
id="agent_1"
section="exampleSectionName"
isDefault="true"
name="Agent item"
thumbnail="/path/to/image.jpg"}

{:Id}
{:CompanyId}
{:ImageS}
{:ImageL}
{:FirstName}
{:LastName}
{:Title}
{:About}

{block:Contact}
{block:ContactItem}
{:Type}
{:Name}
{:Contact}
{/block:ContactItem}
{/block:Contact}

{block:SocialMedia}
{block:SocialMediaItem}
{:Type}
{:Url}
{/block:SocialMediaItem}
{/block:SocialMedia}


{block:PropertyList}
{/block:PropertyList}

{/object:DirectoryItem}

Object attributes​

  • id - used to identify the object, this will be used to match the correct object when the user is updating the template
  • section see Settings
  • isDefault - if this is the default object, if not set, it will select the first in the list
  • name - the display name
  • thumbnail - the display thumbnail

Properties​

  • :Id - agent id
  • :CompanyId - the company id of the agent
  • :ImageS and/or :ImageL - avatar
  • block:Contact - the contact items of the agent
  • block:SocialMedia - social media of the agent
  • block:PropertyList - list of all properties of the agent, see Property List