IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
You can apply custom labels to your layout elements. This way you can create a more explicit layout that is easier to understand. For example, you can label your header and footer or you can label an element to state which widget must be applied to it.
The following screenshot displays a layout where each layout element has a custom label applied to it:
To label a layout element, perform the following:
To apply a label to a custom layout widget, in the template, add a new attribute data-placeholder-label to the sf_ColsOut <div>.
EXAMPLE:
<
div
runat
=
"server"
class
"sf_cols"
>
"sf_colsOut sf_2cols_1_25"
data-placeholder-label
"Left Sidebar"
"sf_colsIn sf_2cols_1in_25"
</
"sf_colsOut sf_2cols_2_75"
"Content"
"sf_colsIn sf_2cols_2in_75"
When using a master page with multiple asp:contentplaceholder, you can add a label in one of the following ways:
<asp:ContentPlaceHolder ID="header" runat="server"/>
In this case, the label cannot contain spaces.
asp:ContentPlaceHolder
ID
"header"
asp:Literal
"childLiteral"
Text
"can contain spaces"
/>
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important