Placeholder

The placeholder template part can be used to render contents inside the reserved space of the placeholder. The identifier of the placeholder will be shown in the design configuration overlay and is set by an expression.

Syntax

<% Placeholder identifier default expression %>

The identifier must be surrounded by double quotes.

Example

<body>
    <!-- Body content -->
    <h1><% Placeholder "Header text" default ProjectName() %></h1>
    <!-- Body content -->
    <img src='<% Placeholder "Logo URL" default ApplicationRoot + "/static/images/logo.png" %>' />
    <!-- Body content -->
</body>

Last updated

Was this helpful?