Skip to main content

File Component Debugging

Individual component preview​

When debugging a component, it is very helpful to see the component rendered in real time. If one is developing the template using SFTP then this becomes more difficult, as the template objects are not displayed in real time. To view the component in real time, one can use the DevTemplateComponentPreview route, by going to the following URL:

https://yuppsy.com/Admin/DevTemplateComponentPreview/XXX@YYY@ZZZ/

Where XXX is the template head id, YYY is the object type and ZZZ is the object id.

Where template head id is the id displayed in the template list, also used to connect to the template via FTP, see Template File Editor.

The active company in the authenticated session must match the template's developer or customer company. A template owner can preview their own template; previewing another user's template requires developer TemplateOthers read access or customer TemplateBuilder read access, respectively. The endpoint's existing authentication requirements still apply.

e.g. yuppsy.com/Admin/DevTemplateComponentPreview/999@DirectoryItem@my_agent_id/ will show the component with the name My Menu and the id my_menu_id in template head 999.

Where the object is defined as:

{object:DirectoryItem 
id="my_agent_id"
name="My Agent"
...}
...
...
{/object:DirectoryItem}