Ektron
Displaying Content on Your Website
The following Ektron server controls display HTML content on your website.
IMPORTANT: Starting from release 8.6, these Content server controls were replaced by the FrameworkUI: <ektron:ContentView> templated server control. If you are already using these Content server controls, you can continue to do so, but Ektron recommends using current versions of functionality.
NOTE: On a PageBuilder page, you can insert a content block using the Content Block widget. Also, you can insert list of content blocks via the Content List widget. See Also: Widget Reference
The following sections describe displaying content with the ContentList server control. See ContentList for information about its properties.
IMPORTANT: Starting from release 8.6, this functionality was replaced by the FrameworkUI: <ektron:ContentView> templated server control. If you are already using this functionality, you can continue to do so, but Ektron recommends using current versions of functionality.
You can use the ContentList server control to display a list of content associated with a given content item. First, you define a content list in the metadata of a content block. Then, assign the ID of the content block to the ContentID
property and specify a Metadata definition in the MetaTag
property. The ContentList server control pulls information defined in the metadata of the content to display the list of content.
The following steps show how to use the DefaultContentID
and MetaTag
properties to create a content list.
MetaTag
property for the server control.DefaultContentID
property to the content block’s ID.MetaTag
property.ContentIds
property.Retrieving the XML structure of content allows for greater control over developing XSLs. The following example shows how to retrieve the XML structure.
ContentID
property.TextMode
property to MultiLine.NOTE: Set the text box width to at least 400 px.
Textbox1.Text = ContentList1.XmlDoc.InnerXml
DefaultContentID
property to the ID of the content whose reviews will be displayed. To make the reviews for the content item dynamic, leave DefaultContentID
blank and set DynamicParameter
to ID.DisplayXSLT
property to Review List. If you want to change the look and feel of the review list, modify an existing XSL file or create your own. If you modify an existing XSL, save the modified file with a different name. Then, enter the file path in the DisplayXSLT
property.GetReviews
property to Content.DisplayXSLT
property to Review List. If you want to change the look and feel of the review list, modify an existing XSL file or create your own. If you modify an existing XSL, save the modified file with a different name. Then, enter the path to the file in the DisplayXSLT
property.GetReviews
property to User.UserID
property to the ID of the user for whom reviews will be displayed. To make the list of reviews for a user dynamic, leave the UserID
blank and set the DynamicParameter
to ID.