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 templatesectionsee SettingsisDefault- if this is the default object, if not set, it will select the first in the listname- the display namethumbnail- the display thumbnail
Properties
:Id- agent id:CompanyId- the company id of the agent:ImageSand/or:ImageL- avatarblock:Contact- the contact items of the agentblock:SocialMedia- social media of the agentblock:PropertyList- list of all properties of the agent, see Property List