Using dynamic strings to display Platform or User information on your Custom Pages

Modified on Fri, 13 Nov at 5:03 AM

Dynamic Strings can be used in Custom Pages to automatically and dynamically display your Platform's Name and Colours or the logged in User's details.

This feature adds a more personalised touch to an organisation's or user's experience in the platform

Below are currently supported dynamic strings for use in your page's HTML or CSS:

HTML

These strings are to be used in the HTML code.

Platform Name

This is the platform name as set under Admin > Settings.

<%=metadata.account.ClientName%>

Example:

<h1>Welcome to <%=metadata.account.ClientName%></h1>

User Details

First Name:

<%=metadata.user.FirstName%>

Full Name:

<%=metadata.user.FullName%>

Example:

<h1>Welcome <%=metadata.user.FirstName%></h1>

CSS

These strings are to be used in the HTML code. Insert them where the colour code would normally go.

Template Colours

These are the platform colours as set under Admin > Templates.

<%=metadata.account.PrimaryColor%>

<%=metadata.account.PrimaryTextColor%>

<%=metadata.account.SecondaryColor%>

<%=metadata.account.SecondaryTextColor%>

<%=metadata.account.HighlightColor%>

Example:

h1 {
color: <%=metadata.account.HighlightColor%>;
}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article