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

Modified on Wed, 8 Oct at 5:49 PM

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

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 color code would normally go.

Template Colors
 
These are the platform colors 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