Ektron 9.00
The ActiveTopics server control displays a forum's most active or most recent topics. The most active are determined by the number of new posts in a topic, or how many replies a post receives. The most recent are determined by the date of the post. The following example shows 2 ActiveTopics server controls: one is set to Active, the other to Recent.
The items in the list are clickable links, which open to the topic.
NOTE: On a PageBuilder page, you can drop the Recent Forum Posts widget, which displays a selected number of the most recent forum posts. See Also: Widget Reference
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the board from which to get entries. If you don’t know the ID, click Ellipses (), then sign in, browse to, and select a discussion board.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Choose between Active or Recent. The default is Active.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Select False to display this server control on the page. Select True to suppress it.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The maximum number of topics listed. The default is 10.
Suppresses the output of the span/div tags around the control.
Enter the path to the Forum server control’s Web page. For example: http://<your site>/siteroot/forum.aspx
or /CMS400Developer/forum.aspx
. If your Forum page and your Active Topics page are in the same folder, just enter the name of the page. For example: forum.aspx.
Lets a developer specify a server control’s tag.
The ActivityStream server control displays notification messages generated by Ektron’s Notification system. Sending Notifications to a Community
When this control is added to a Web page, Ektron looks for a DefaultObjectID
defined in properties. If one is found, the activity stream is based on that user or group. If none is found, notifications are based on the pages’s dynamic query string parameter, which typically identifies the logged-in user.
You can exclude any user or a group from the activity stream. To achieve this, open the page that hosts the Activity Stream server control, find the control, and add the following to the control’s code-behind.
//activityStream cmsActivityStream.ExcludeUserIds.Add(this.ProfileId); You can also exclude groups. cmsActivityStream.ExcludeGroupIds.Add(GroupId1); cmsActivityStream.ExcludeGroupIds.Add(GroupId2); : cmsActivityStream.ExcludeGroupIds.Add(GroupIdN);
To add this control to a page, drop it on a Web form and set the following properties.
http://~yoursite~/CGHome.aspx?gid=21
in the query string to a page containing this control, you see the activity stream for the community group whose ID is 21.The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of the object whose activity stream will appear where you place this server control. For example, if you want this control to display Scott Markey’s activities, and his USER ID is 142, place 142 here, and set the ObjectType
property to User. To display the activity stream for the logged-in user, enter zero (0).
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank. For example, if you are passing the ID value of a community group, you might enter ‘gid’ for this property. So, if you passed http://~yoursite~/CGHome.aspx?gid=21
on the Query Strings to a page containing this control, you would see the activity stream for the group with an ID of 21.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
The Maximum number of notifications to fetch. 0 (zero) = unlimited.
The type of object to which this control is assigned. Choices are:
The parameter name to pass in the QueryString to the TemplateUserProfile page, if you want it to be anything other than id. For example, you may prefer userid
, because it is more descriptive, as shown in the following example.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
The URL path to a page that contains another
ActivityStream server control.
When this property contains a path and the
destination page has an ActivityStream control
whose ObjectType
property is set to Activity
, a user can
click an Activity Stream’s time span on the first
page to open a second page that contains just
that activity. See Also: Server Control Reference
The URL path to a page that contains the UserProfile server control. The path can be relative or absolute. If you enter a path, a user can click a user’s name or avatar from the Message Board server control and be forwarded to the profile page. See illustration.
User templates can be defined in the Ektron Workarea > Settings > Community Management > Templates screen. However, if you assign a template in this field, this setting takes precedence over the setting on the Workarea Template screen.
Lets a developer specify a server control’s tag.
The AdaptiveMultiView server control lets you specify sections of a template that will appear for a specific Device Group. When a page is loaded, the template determines which device group the visitor’s device fits into and displays the appropriate view for this control.
This server control associates each “AdaptiveView” section to one of the Device Groups created in the Workarea (Workarea > Settings > Configuration > Mobile Settings > View All Device Groups).
AdaptiveMultiView syntax:
<ektronUI:AdaptiveMultiView runat="server" ID="MyMobileControl"> <ektronUI:AdaptiveView ID="AdaptiveView1" runat="server" GroupId="7" GroupType="Breakpoint"> I'm a SmartPhone! </ektronUI:AdaptiveView> <ektronUI:AdaptiveView ID="AdaptiveView2" runat="server" GroupId="3" GroupType="DeviceGroup"> I'm a CoolPhone! </ektronUI:AdaptiveView> <ektronUI:AdaptiveView ID="AdaptiveView3" runat="server" GroupId="0" GroupType="DeviceGroup"> I'm Generic Mobile! </ektronUI:AdaptiveView> <ektronUI:AdaptiveView ID="AdaptiveView4" runat="server" IsDefaultView="true"> I'm a Default! </ektronUI:AdaptiveView> </ektronUI:AdaptiveMultiView>
Group Id for the Device Group, which is displayed you can find in the table at Workarea > Settings > Configuration > Mobile Settings > View All Device Groups. If you set this to 0, GroupID is associated with any device that does not fit into any of the Device Groups created.
NOTE: If Breakpoint Groups exist, every device will fall into one of these groups, therefore making this “Generic Mobile” group unusable.
Determines whether the group is a Breakpoint Group or a manually created Device Configuration. The possible values for this property are Breakpoint
or DeviceGroup
.
Set this value to “true” to display this view for any visitors using a device that doesn’t fit into any other group. This view will typically be displayed for any desktop visitors.
Track Business Analytics statistics about visits to your site, such as:
The data recorded by this server control is used by the Most Popular and Trends widgets' Most Viewed category. See Also: Running Ektron Business Analytics
The data recorded is also used by the Classic Analytics Reports, available from the Ektron Workarea > Reports > CMS Site Analytics section.
IMPORTANT: Your site license key must support Analytics. You must also set the control's enableanalytics
property to true
or set the enableanalytics
property to ConfigSpecified
, and the enableAnalytics
key in your web.config
file to true
The AnalyticsTracker server control provides 3 properties for determining which content items are viewed when a site visitor browses to a page that contains the control. The properties are additive, that is they can be used together.
ContentID
property, and the other 3 into this property.If you want to track your entire site, place an Analytics Tracker server control on your master pages on your site templates, and use the DynamicParameter
property.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
Enter a comma-separated list of content IDs to be tracked. The DefaultContentId and the dynamicParameter are also tracked. See Also: Running Ektron Business Analytics
The ID of a content block being tracked by this server control. It typically would be the content directly above the analytics tracker if no other content block is identified, or is not available. If you don’t know the ID number of the content block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this control dynamic, select id. When you do, this server control is attached to the content block passed as a URL parameter.
Set one of these values to determine if this server control tracks Business Analytics statistics.
site root/web.config
file'senableAnalytics
key. For example, if that key =true, this control tracks analytics.Note that the first 2 options (true and false) let you enable/disable this particular control. Use the last option, ConfigSpecified, if you want to use a single web.config
setting to enable/disable all analytics controls.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Lets a developer specify a server control’s tag.
The AssetControl server control, when viewed on a Web form, displays a drag and drop icon that lets you upload a new asset or update an existing one. When you click this icon, a drag and drop box appears. This box is similar to the upload box in the Workarea. The difference between the Workarea and the server control is, in the Workarea users can only upload assets. With the AssetControl server control, you can upload a new asset or update an existing one by overwriting it. If the asset is overwritten, the previous version is available through Ektron’s history feature. See Also: Managing Versions of Content.
The appearance of the AssetControl server control can vary depending on your browser. See Also: Methods for Importing Assets.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the asset you want to update. This property is used when the UploadType
property is set to Update. If you don’t know the ID number of the asset, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The ID of the folder where assets are added. This property is used when the UploadType
property is set to Add. If you don’t know the ID number of the folder, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a content ID or folder ID dynamically. The content ID is read when the UploadType
property is set to Update. The folder ID is read when UploadType
property is set to Add. To use the default content ID or default folder ID, leave blank.
Hides or displays the output of the control in design time and run time.
Setting this control to 1 (one) restricts the control so only images can be uploaded.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Lets you restrict the type of asset that can be uploaded by its extension. For example, to restrict the control to uploading Word documents, enter doc in the property.
NOTE: When using this property, enter only the extension’s letters not the wildcard (*) or the dot (.).
You can add multiple extensions by creating a comma separated list of extensions. You should limit the list to 5 extensions.
Suppresses the output of the span/div tags around the control.
The ID of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. with which to associate the asset.
Select whether the control adds new assets or updates existing ones.
DefaultFolderID
property. If a file of the same name already exists in the folder, the new file is created using the naming convention filename(2)
.DefaultAssetID
property. Lets a developer specify a server control’s tag.
Ektron provides server controls for displaying a blog on a website. The Blog server control lets you display pieces that typically make up a blog site on a Web form, such as blog entries, posts, subjects, recent posts, RSS feed, archive, calendar, and a blog roll.
Additional Blog server controls let you display each item individually and offer additional ways to customize the layout and appearance. For example, you might display Blog entries and a Blog roll but not a Blog calendar. The individual Blog server controls also let you further define the display details.
NOTE: On a PageBuilder page, you can insert a blog using the Blog widget.
The Blog server control lets you add a blogshort for Web Log to a Web form. This control has the items commonly found on a blog page, such as blog posts, comments link, a blog roll, blog subjects, recent blog posts, the blog's RSS feed, archivethe state of content upon reaching its end date. What happens next is determined by your choice at the content's Schedule tab > Action on End Date options field. Choices are * Archive and remove from site (expire) * Archive and remain on site * Add to CMS Refresh Report, and a blog calendar.
The Blog server control lets you easily maintain the overall look of the blog. Any change to display properties, such as background color or font, affects the entire blog. However, you cannot change the location of each server control item. The title always appears on top, with the tagline below it. The blog posts always appear to the left,and the calendar, blog roll, blog subjects, recent blog posts, RSS feed, archive and blog roll to the right.
NOTE: You can use individual blog server controls to change the page layout.
To customize a blog's styling, edit the Blog.css
file located in webroot\siteroot\Workarea\csslib
.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Select whether the archive appears in month format or year format. The default is month
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the blog ID, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
Set the date range of the Blogs to show. For example, if you want to display blogs for only the past 3 months, set this value to Quarterly.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The date of the most recent blog entries to appear. For example, to display blog entries for January 1, 2012 and before, enter 1/1/2012. Click the drop-down box to access a calendar.
The ID of the user who owns the blog to be displayed. This property is used when the server control displays a user's blog. To display a blog not associated with a user, leave this property set to 0 (zero) and enter the blog's ID in the BlogID
property.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a Blog ID dynamically. Set to None—Use Default if you want to always display the default blog.
Gets or sets the QueryString parameter to read a user ID dynamically. Set to Use Default if you wish to always display the default user's blog (static).
Sets the height of the blog editor in pixels.
Sets the width of the blog editor in pixels.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Set the maximum number of posts to display. If set to 0 (zero), there is no limit. If set to
-1—all posts for the day are shown
-2—all posts for the month are shown
-3—use the # of Post Visible setting in the Workarea.
The default is -3.
Works like the DynamicParameter
for content blocks. When id
is selected, this server control passes the blog post ID as a URL parameter. The default setting is id.
The number of post links contained in the Recent Posts list. The default is 5.
Specify the .aspx page used to render the RSS for blogs. The default value is WorkArea/blogs/blogrss.aspx
.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The BlogArchive server control displays past months or years that have blog posts. Use this control with the BlogEntries and Calendar controls to let site users scan for older Blog posts.
When a site visitor clicks a month in the archivethe state of content upon reaching its end date. What happens next is determined by your choice at the content's Schedule tab > Action on End Date options field. Choices are * Archive and remove from site (expire) * Archive and remain on site * Add to CMS Refresh Report, the blog posts for that month appear.
Typically this control appears along side other individual Blog server controls.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Select whether the archive appears in month format or year format. The default is month
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Sets the QueryString parameter to read a Blog ID dynamically. Leave blank to always display the default blog.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The BlogEntries server control displays several blog posts or a user’s Journal (personal blog) on a Web form. You can change this server control's appearance without changing the other blog controls. Below is an example of a BlogEntries server control.
To use this server control to dynamically display a blog’s entries, set the following properties:
DynamicParameter
—set this property to the parameter name used to pass a blog ID to the QueryString. The default is blogid. BlogPostParameter
—set this property to the parameter name used to pass a blog post’s ID to the QueryString. The default is id.To use this server control to dynamically display a user’s Journal, set the following properties:
DynamicUserParameter
—Set this property to the parameter name used to pass a user’s ID to the QueryString.BlogPostParameter
—set this property to the parameter name used to pass a blog post’s ID to the QueryString. The default is id.The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron from which blog entries are displayed; for example, 41. This is the default ID that is used when a blog ID is not passed dynamically to the QueryString. To pass a blog ID dynamically, set the DynamicParameter
property. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
Set this property to the parameter name used to pass a blog post’s ID to the QueryString. The default is id. When a parameter is defined, this server control passes the blog post’s ID as a URL parameter. If you do not set this parameter to id, you will not be forwarded to the blog post’s page when you click on any links in the post. The default setting is id.
Set the date range of the Blogs to show. For example, if you want to display blogs for only the past 3 months, set this value to Quarterly.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The date of the last blog entries you want to appear. For example, if you want to display blog entries for January 1, 2012 and before, enter 1/1/2012. Click the drop-down box to access a calendar.
The ID of the user who owns a Journal from which to display journal entries. To display journal entries not associated with a user, leave this property set to 0 (zero) and enter the blog's ID in the BlogID
property.
WARNING! If you define a DefaultUserID, it overrides the BlogID property.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a Blog ID dynamically. Set to “None—Use Default” if you want to always display the default blog. The default is blogid.
NOTE: If an ID for this property is passed on the QueryString and a an ID for the DynamicUserParameter property is passed the control displays blog entries for a user.
Gets or sets the QueryString parameter to read a User ID dynamically. Set to Use Default if you wish to always display the default user's blog (static.)
NOTE: If an ID for this property is passed on the QueryString and a an ID for the DynamicUserParameter property is passed the control displays blog entries for a user.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Set the maximum number of posts to display. The default is -3.
Shows the title and tagline when set to True. The default is True.
Suppresses the output of the span/div tags around the control.
The BlogCalendar server control displays a calendar on a Web page and associates it with a blog. Days with blog posts are highlighted on the calendar. You can use a BlogCalendar server control with a BlogEntries server control to display blog posts for a given day.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The BlogCategories server control displays a blog’s subjects as a clickable list of links on a Web form. When a link is clicked, it displays all subjects associated with the category. See Also: Adding Blog Subjects. Typically this control appears with other Blog server controls.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
The BlogPost server control displays an individual blog post on a page. There are 2 ways that this control displays a blog post.
NOTE: The Enable Comments property in the Workarea must be enabled for comments and the comments form to appear.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of a default blog post that appears where you inserted this server control if no other content block is identified, or is not available. If you don’t know the ID number of the blog post, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this blog post dynamic, select id. When you do, this server control uses the blog post passed as a URL parameter.
Determines whether a message appears after adding a blog comment.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Shows a blog post’s content and its comments or only its comments. The default is Content.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The BlogRecentPosts server control displays a list of recent blog post links on a Web form. When you click a link, you are directed to the blog post. The NumberofPosts
property lets you control how many links appear. Typically, this control appears with other individual Blog server controls.
NOTE: On a PageBuilder page, you can display recent blog posts using the Recent blog posts widget. See Also: Widget Reference
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
Set the date range of the Blogs to show. For example, want to display blogs for the past 3 months, set toQuarterly.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Sets the number of post links to display. The default is 5.
Suppresses the output of the span/div tags around the control.
The BlogRoll server control displays a blog roll on a Web form. A blog roll is a list of links to other blogs. For more information, see Adding Blog Roll Links. Typically, this control appears with other individual Blog server controls.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
The BlogRSS server control displays a blog’s RSS feed icon () on a Web form. When the icon is clicked, the blog's RSS feed appears. Typically this control appears along side other individual Blog server controls.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the blog in Ektron. For example: 41. If you don’t know the ID of the blog, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
The (Micro-messaging) Bookmarklet server control detects the user's browser and modifies the text accordingly. For more information, see Using Ektron's Micro-messaging Bookmarklet.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
Use this field if you want to change the .css class used in the default template’s outermost wrapper (DIV tag). This lets you change the styling and appearance of the server control without having to change the markup.
The path to the page that appears when a user clicks the Micro-messaging bookmarklet link. By default, when a user clicks a link, he is redirected to the siteroot/Workarea/share.aspx
page.
Hides or displays the output of the control in design time and run time.
A unique name you apply to this instance of the control.
Lets you include or exclude the control's default .css file, which provides the "look and feel" of the control on a Web page.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The text that appears on the Micro-messaging bookmarklet link.
To modify the look and feel of this area, edit the ektron.micromessaging.bookmarklet.css file in the siteroot/Workarea/csslib
folder.
To modify the look and feel of this icon, edit the ektron.micromessaging.bookmarklet.css file in the siteroot/Workarea/csslib
folder.
The height of the Micro-messaging bookmarklet link window in pixels.
The width of the Micro-messaging bookmarklet link window in pixels.
The name of the website using this server control. The SiteName value is embedded in the instructions for adding the bookmarklet to the toolbar. See example below.
The (Micro-messaging) Bookmarklet server control is template-based which means you can change the control's appearance without an extensive XSLTExtensible Stylesheet Language Transformations or EkMLEktron Markup Language file.
The JavaScript used to render the Bookmarklet control is loaded into the Href
property of the control's anchor tag.
The following code shows the first Bookmarklet server control in bookmarklet.aspx
.
<li>
<div class="controlWrapper">
<h3>Default</h3>
<CMS:micromessagingbookmarklet ID="bookmarkletDefault" runat="server" />
</div>
</li>
Because Bookmarklet is a templated server control, you can enter any valid markup, and it will be rendered exactly as you entered it. As examples, you can enter the following items within the <div>
tags that surround the control.
<strong>
Your website is made up of Web forms. Each page depends on a form to determine much of its appearance. Forms and pages have a parent > child relationship. That is, a form can be associated with any number of pages. When you define breadcrumb properties, you define them for a form. All pages that use a form inherit its breadcrumb properties.
Assume, for example, that a Web form is used for the Human Resources section of your website. You might use the title Human Resources to identify the form in the BreadCrumb server control. Whenever a page is visited that uses that form, Human Resources appears on the breadcrumb trail -- that is, the form title appears, not the individual page.
For information about how to use the Breadcrumb server control, see Navigating a Website with Breadcrumbs.
BreadCrumb properties are divided into 2 categories:
For each Web form, you can customize the breadcrumb trail. For example, you might want the breadcrumb trail to appear horizontally on one Web form and vertically on another. The following property list determines the breadcrumb trail's appearance.
Use these properties define how any page that uses this form appears within a breadcrumb trail. It does not matter where the trail appears.
Note that you can use text, an image, or both to describe the form within the breadcrumb trail. If you use both, the image appears first, followed by the text. The following property list determines how the Web form appears on a breadcrumb trail.
A breadcrumb trail can appear vertically or horizontally on a Web page with the DisplayStyle parameter. In addition, you can define how many breadcrumbs (MaxItems) are left for site visitors to navigate back. You can also use an image and Alt text instead of, or in addition to, text to display the breadcrumb trail. These variations are illustrated below and described in BreadCrumb Properties.
NOTE: If a site visitor revisits a page that is in the breadcrumb trail already, the breadcrumb trail reverts back to that point in the trail. For example, if you visit the following pages Dev > FAQ > WebForm > PR, and then return to FAQ, the breadcrumb trail looks like this: Dev > FAQ.
To implement sitemap breadcrumb navigation, add a BreadCrumb server control to every Web form in your site. Doing this ensures that a breadcrumb trail may appear on each Web page.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
If desired, enter one or more symbols or characters that identify the current page in the breadcrumb trail. See example below.
These characters appear after the image or title that identifies the current page in the breadcrumb trail.
Gets or Sets the ContentID for the BreadCrumb display title.
Indicate how to display the breadcrumb trail: horizontally or vertically. The default is Horizontal.
Enter text to describe this Web form in the breadcrumb trail. For example, if the Web form’s properties you are defining is used for all Human Resources pages on your site, enter Human Resources.
If you define an image in the IconPath
property below, the image appears in the trail, followed by this text.
IMPORTANT: This property is for code-behind only. It cannot be set in design time.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a content ID dynamically.
Used to hide the breadcrumb trail in design time and run time.
If you define an image in the IconPath
property, enter “Alt” text that should appear when a site visitor hovers the cursor over that image. Here is an example.
If you want the breadcrumb trail to display an image to identify this Web form, enter the path to the image. For example: \CMS400Developer\Workarea\Images\bc_meta_icon.gif
IMPORTANT: The image location must be relative to the Web root.
On the breadcrumb trail, the image precedes any text defined in the DisplayTitle
property.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Use this property to determine whether the last breadcrumb item appears as a hyperlink on this Web form. If this property is set to True, and a user clicks the item, the current page reappears.
Determines the type of window that appears when you click a link in the server control.
Enter the maximum number of items in the breadcrumb trail on this Web form. The default is 5. If you set a value of 1 or greater and the user navigates beyond that number of pages, only the most recent pages appear. The older pages disappear from the trail. 0 (zero) = unlimited.
Specify the name of a Metadata Type that you want to associate with the page.
To associate a Metadata Type with the BreadCrumb server control:
Lets you display the breadcrumb trail as non-hyperlinked, plain text. The default is Normal.
Enter one or more characters to separate breadcrumb trail items on this Web form. The default character is the greater than sign (>).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
NOTE: Do not add a BreadCrumb server control to a Web form that contains a Calendar server control. When both controls appear on a page and a site visitor clicks on different months, the BreadCrumb trail could look like this: Calendar > Calendar > Calendar > Calendar > Calendar. This happens because each time a site visitor clicks on a month, you are in effect opening a new Web form.
To learn about the Breadcrumb server control properties, see BreadCrumb.
Add a BreadCrumb server control to each Web form for which you want to create a breadcrumb trail. To use the BreadCrumb server control:
DisplayTitle
property.By adding a line or 2 of code, the breadcrumb trail can display a content block's title. You can add a line of code to each Web form. Or, if your content is dynamic, add the code once and, each time a new piece of content is called dynamically, a new breadcrumb is created.
You can only use one content block per Web form with the breadcrumb. If a page has multiple content blocks, select one that best describes the page.
DisplayTitle
property.BreadCrumb1.DisplayTitle = ContentBlock1.EkItem.Title
The following example content block shows titles used as breadcrumbs.
The word Title appears in the breadcrumb trail when the DisplayTitle
property is left empty. Even with the added code, if the breadcrumb loads before the content block, the breadcrumb has no information in the DisplayTitle
property and therefore displays the word title by default.
If the word Title appears in the breadcrumb trail, check to make sure the word Title does not appear in the DisplayTitle
property. Next, if Title still appears, add the following line of code to the page load event of the code-behind:
ContentBlock1.Fill()
The code in the page load event should now look like this:
ContentBlock1.Fill() BreadCrumb1.DisplayTitle = ContentBlock1.EkItem.Title
This ensures that the content block information is loaded first.
The BusinessRules server control lets you add a Business Rule created in the Workarea to a Web form. It also lets you add a place holder for a Business Rule. Then, an Ektron administrator can create a business rule at a later date.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The ID of the Ruleset to evaluate. If you don’t know the ID number of the Ruleset, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The Cart server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. lets a customer (site visitor) select products to purchase; an online "shopping basket." Products are added to the cart when the customer selects them. See Also: Using the Cart Server Control
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
Cart.xsl
. This file is located in <siteroot>\Workarea\Xslt\Commerce.
IMPORTANT: If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
ajaxloader_circle_lg.gif
. This file is located in siteroot\Workarea\images\application
.siteroot\Workarea\csslib\Commerce
IMPORTANT: If you want to edit this file, make a copy, change its name and move it outside of the Workarea folder. If you make changes to this file and do not move it out of the Workarea, this file and the changes will be lost when you upgrade.
Suppresses the output of the span/div tags around the control.
If this property is blank, the server control uses the Product’s QuickLink information.
If the template file is located in the same folder as the Web form containing this server control, just enter its name. The path can be relative or absolute.See Also: Displaying an Item’s Information.
See Also: Using the ProductList Server Control or Product Search Server Controls
IMPORTANT: When using the Checkout server control, your website should have an SSL certificate installed. Set its IsSSLRequired
property to True. This protects your customers’ payment information during transmission. Do not use a self-signed SSL certificate—obtain one from a trusted certificate authority.
The Checkout server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. lets a customer navigate through the checkout process. This process includes:
See Also: Using the Checkout Server Control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Reports or selects the current page (or phase) of the checkout control. This lets you customize the flow of the control. For example, if you only offer one shipping option, skip the ShippingInfoEntry phase.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
The ID of the default country that appears in the Billing Address and Shipping Address. Set this to the country from which the majority of your customers make purchases. If a customer is from a different country, he can change it when editing the Billing or Shipping Address.
To find a country’s numeric ID, go to Workarea > Settings > Commerce > Configuration > Countries. The Numeric ID is in the left column of that screen.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
The name of the parameter on the QueryString that identifies desired phase ID.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. By default, the control uses Checkout.xsl
. This file is located in siteroot\Workarea\Xslt\Commerce\Checkout\Standard
IMPORTANT: If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
The message displayed when an unhandled error occurs. Details are sent to the event log.
The default message is “We're sorry, an error occurred while processing your request. Please try again later...”
Set to true if you wish to allow the Guest Checkout feature. See Also: Logging In or Setting Up an Account
Hides or displays the output of the control in design time and run time.
When set to True, switches to an SSL encrypted URL. For the SSL encryption to work, you must have an SSL certificate installed for your site. See Also: Installing Ektron. Information on SSL can be found at the following websites.
NOTE: Ektron, Inc. is not associated with TechFAQ or VeriSign. However, both sites offer good explanations of Secure Sockets Layer.
Installing and using an SSL is one of the most important things you can do to protect your customer’s credit card data.
Set a language for viewing the checkout control. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).
The image to display while the control is fetching data. The default is siteroot\Workarea\images
.
\application\ajax-loader_circle_lg.gif
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
The URL path of the template that contains the Cart server control. The path can be relative or absolute.
When a path is entered, a link appears in the Review Order part of the process that allows a user to navigate to the template containing the Cart server control. See Also: Review Order and Using the eCommerce Server Controls
The URL path of the template that contains the OrderList server control. The path can be relative or absolute. When a path is entered, a link appears at the end of checkout process that allows a user to navigate to the template containing the OrderList server control. See Also: Order Complete and Managing Customer Orders.
The URL path of the template that helps a customer recover a password. The path can be relative or absolute. When a path is entered and a customer has not logged in, a link appears at the beginning of checkout process that lets the customer navigate to a template containing information to recover the password. The Membership server control contains an option for recovering passwords. See Also: Logging In or Setting Up an Account and Membership server control
The URL path of the template that allows the customer to continue shopping. If a path is entered, a link appears at the end of checkout that allows a user to navigate to a template that lets the person continue shopping; for example, the template containing a ProductList or ProductSearch server control. See Also: Order Complete, Using the ProductList Server Control and Product Search Server Controls
IMPORTANT: For release 8.6 and later, the Collection server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version.. It is replaced by the Content templated server control.
The Collection server control displays a collectionA list of Ektron content links for display on a Web page. that you create in the Workarea. The control lets you customize the display of the collection on a Web page.
When added to a template and visited, collections can look like the following illustration, which shows 3 collections on the same page of a sample site. You can modify the display by editing its properties.
NOTE: On a PageBuilder page, you can insert a collection using the Collection widget. See Also: Collection—Displays a collectionA list of Ektron content links for display on a Web page.. You select a Collection ID.See Also: Working with Collections
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Override the control’s default text for the Add Content menu item. For example, If you have a News website, you could change Add Content to Add News Item.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
NOTE: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
Checks the QueryString for this value and replaces the collection with a content block when specified. Leave blank to always display the Collection.
The ID of a collection that appears where you insert this server control if no other collection is identified, or is not available. If you don’t know the ID number of the collection, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
Determines how the information on the page appears.
See Also: Collection (deprecated)
See Also: ecmTeaser Display Example
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this collection dynamic, select coll_id. When you do, this server control uses the collection passed as a URL parameter.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.See the following example.
For example, if a collection has 9 items and the MaxResults
property is set to 4, the screen displays only the first 4 items. When the site visitor clicks [Next], he sees items 5, 6, 7 and 8, and so on.
NOTE: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
Set this property to True if you want the following information for each content in the list. Returns Content View Count, Content Rating, Content Rating Average. Create your own XSLTExtensible Stylesheet Language Transformations styles to display this data. This property only provides reliable data when the Business Analytics Feature is on. Analyzing Websites.
Set to True if you want to retrieve and display content (html body) for all content blocks in the collection. For example, to display content inside a Web server control such as a GridView.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the collection list’s links.
IMPORTANT: This property only works when ecmSummary or ecmTeaser are used in the DisplayXslt
property. If the [$ImageIcon]
variable is used in an EkML file and that file is assigned to the MarkupLanguage
property, this property acts as True.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language.
See Also: collection.ekml
NOTE: If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored. If the EkML file contains the [$ImageIcon]
variable, the IncludeIcons
property acts as True.
Enter the maximum number of items to appear in the initial display of this server control. To set no maximum, enter zero (0). To let site visitors view more than the maximum but limit the amount of space, enter the maximum number of results per page here. Then, set the EnablePaging property to True. If you do and more than the number of MaxResults are available, navigation aids help the site visitor view additional items. See example below.
Set this property to True to hide the drop-down menu next to a content item when a membership user is logged-in.
NOTE: This only affects membership users. Ektron users always see the drop-down menu when they are logged-in.
Set to True if you want to randomly display one collection item. The item changes each time a site visitor views the page.
NOTE: If you use a custom XSLT or EkML file, the type of content displayed can be manipulated. For example, if you use an EkML file that has the [$Html]
variable in it, the actual content appears instead of a link. See Also: Controlling Server Control Output with Ektron Markup Language and [$Html].
Set the ID of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. with which content is associated if a logged-in site visitor uses the Silver Access Point’s Add HTML Content option to add content to a Collection server control.
This property is set to false
because Ajax uses <div>
tags to rewrite the region around the tag. You cannot change the value to true
.
Lets a developer specify a server control’s tag.
The following figure shows a collectionA list of Ektron content links for display on a Web page. being used as a navigation menu.
The following XSL code creates the ecmNavigation Display. You can use this code as the basis to design your own XSLT.
WARNING! If you create a custom file, do not store it in the Workarea folder. If you do, the file will be overwritten when you upgrade.
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <xsl:for-each select="Collection/Content"> <tr> <td> <a> <xsl:attribute name="href"> <xsl:value-of select="QuickLink"/> </xsl:attribute> <xsl:value-of select="Title"/> </a> </td> </tr> </xsl:for-each> </table> </xsl:template> </xsl:stylesheet>
The following example shows a collectionA list of Ektron content links for display on a Web page. using the ecmTeaser display style.
The following XSL code creates the ecmTeaser Display. You can use this code as the basis to design your own XSLT.
WARNING! If you create a custom file, it is strongly recommended to not store the file in the Workarea folder. If you do, the file will be overwritten when you upgrade.
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <xsl:for-each select="Collection/Content"> <tr> <td> <a> <xsl:attribute name="href"> <xsl:value-of select="QuickLink"/> </xsl:attribute> <xsl:value-of select="Title"/> </a>  </td> </tr> <tr> <td> <xsl:value-of select="Teaser" /> </td> </tr> <tr> <td> </td> </tr> </xsl:for-each> </table> </xsl:template></xsl:stylesheet>
The following is an example of using code-behind, and a drag and drop Collection server control to display random content from a collection.
NOTE: In this example, the Random
and GetHtml
properties must be set to True.
Dim str As String str = "<h1>Hello There</h1><br>" str &= Collection1.EkItems(0).Html Collection1.Text = str
Retrieving the XML structure of a collectionA list of Ektron content links for display on a Web page. allows for greater control over developing XSLs. The following is an example of how to do that.
DefaultCollectionID
property.TextMode
property to MultiLine.NOTE: Set the text box width to at least 400px.
Textbox1.Text = Collection1.XmlDoc.InnerXml
For an additional example, see the Collection XML page on the Developer samples page. It is located at:
http://sitroot/CMS400Developer/Developer/Collection/CollectionXML.aspx
siteroot/CMS400Developer/Developer/Collection/CollectionXML.aspx and CollectionXML.aspx.vb
The control displays a list of uploaded content filtered by category. In addition, a logged-in member can manage files, create categories, and decide which users can view the documents. This server control is typically placed on a user’s or a group profile page.
NOTE: When you drag and drop this control on a Web form in Visual Studio, the following message appears in the label of the control: “Workspace for user does not exist”. This happens because no ID is assigned to the control. When you assign an ID, the control’s name and the ID are displayed. If you use the DynamicParameter
property to dynamically pass an ID from the QueryString, the above message appears because an ID is not assigned to the control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default object ID for this control to use when there is no matching dynamic parameter value passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
The height of the dynamic content box in pixels
The Width of the dynamic content box in pixels
The template to use when displaying dynamic content. Leave blank to use the dynamic box.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the navigation list’s links.
Specify the sort order of results. Choices are:
You can specify the direction of the items with the SortDirection
property.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
Enter the maximum number of items to appear in the initial display of this server control. To set no maximum, enter zero (0). To let site visitors view more than the maximum but limit the amount of space, enter the maximum number of results per page here. Then, set the EnablePaging property to True. If you do and more than the number of MaxResults are available, navigation aids help the site visitor view additional items.
The type of object to which this control is assigned. Choices are:
Determines if an integer representing the number of items in a category appears next to the category.
Select the direction of the itemSortOrder
property. Choose Ascending or Descending.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Enter the number of columns in which this taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure./category appear on the page.
Enter the number of columns in which the taxonomy item appears on the page.
Lets a developer specify a server control’s tag.
Part of the Community Platform, this server control lets users create and upload individual user content to the user profile or group content to the group profile. The content can be HTML content or an assetan external file, such as a Microsoft Word document or image, stored in Ektron. It can be managed like native Ektron content., such as a .PDF document or a .jpeg file.
NOTE: You can not delete the top-level folder, Workspace.
WARNING! Deleting a folder permanently deletes the assets and HTML content in the folder, and its subfolders.
Assets are files that are not HTML content, such as an Office document or PDF.
You can move or copy assets and HTML content from one folder to another. To accomplish either action:
The Workspace area allows users to share content with colleagues. Users can share content with the Public, Colleagues, Selected Colleagues or keep the content private.
Users apply sharing options to folders, not individual content items. To share a folder:
Documents in the folder are now available for viewing by the selected viewer type.
Community group members can add folders to the Workspace to help organize items in the Documents area.
NOTE: If you want to later change a folder's share setting, follow the directions in Sharing Workspace Content.
NOTE: You can not delete the top-level folder, Workspace.
WARNING! Deleting a folder permanently deletes all of the assets and HTML content in the folder, as well as its subfolders.
The CommunityGroupBrowser server control allows a user to browse a taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. structure for community groups. As the user browses, community groups at each level appear in a results box.
In addition, a user can click Create Group to create a new group. When the group is created, it is automatically added to the taxonomy you are viewing.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The display height of the avatar in the results box.
The display width of the avatar in the results box.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade. If you enter a valid EkMLEktron Markup Language file at the MarkupLanguage
property, the DisplayXslt
property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Add a link to the group’s profile page. This allows a user to click a link in the community group list and be taken to the group’s profile page. There are 2 variables used within the link that represent the group ID and the group name.
You need to have both variables in the link. The Web form can be relative or absolute. Below is an example.
groupprofilepage.aspx?gid={0}&gn={1}
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
The Maximum number of items to fetch. 0 (zero) = unlimited.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Add a path to another Web form to create links for the tag text. The path can be relative or absolute. By providing the path to CommunitySearch server control, a user viewing the list of groups can click a tag and search for other groups with the same tag. There are 5 parameters that are automatically added to the link’s QueryString that let you pass information about tag.
In addition to these parameters, you can add your own by defining them in the path. If you do, these parameters are appended to yours.
Determines the type of window that appears when you click a link in the server control.
Enter the ID number of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. or category to appear in this server control. If you don’t know the number, click the button and navigate to the taxonomy or category. When you select one, it appears in the center of the Visual Studio window.
Lets a developer specify a server control’s tag.
The CommunityGroupList server control, part of Ektron's Community Platform, displays a list of community groups. It can be configured to sort groups by name, newest, or most popular.
When associated with a user, this control can show
CommunityGroupList server control displays the following information about each community group.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
If the user has permission to create community groups and this property is set to True, the Create Groups link appears in the control.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The display height (in pixels) of the avatar in the results box.
The display width (in pixels) of the avatar in the results box.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default User ID for this control to use if no matching dynamic parameter value is passed.
Select the way this control initially displays community group information. Choices are:
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a user ID dynamically. To use the default user ID, leave blank.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Add a link to the group’s profile page. This allows a user to click a link in the community group list and be taken to the group’s profile page. The link includes these 2 variables.
The link requires both variables. The Web form can be relative or absolute. Below is an example.
groupprofilepage.aspx?gid={0}&gn={1}
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
The Maximum number of items to fetch. 0 (zero) = unlimited.
If this control is associated with a user and this property is set to True, the controls displays the following sorting options:
When set to False, Leave Selected Group is the only option that appears.
Depending on how the DisplayMode
property is set, you may see additional sorting options.
If this control is used to display a general list of community groups and this property is set to True
, the following sorting options appear.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Add a path to another Web form to create links for the tag text. The path can be relative or absolute. By providing the path to CommunitySearch server control, a user viewing the list of groups can click a tag and search for other groups with the same tag. There are 5 parameters that are automatically added to the link’s QueryString that let you pass information about tag.
In addition to these parameters, you can add your own by defining them in the path. When you do, these parameters will be appended to your parameters. See Also: Tagging Content, Library Items, Users, and Groups with Keywords
Determines the type of window that appears when you click a link in the server control.
Lets a developer specify a server control’s tag.
The CommunityGroupMembers server control allows you display a list of members
In addition, if a logged-in user is the community group’s administrator, assigned the Community Group Administrator role, or a site administrator, the user can approve pending members, remove members, and cancel invitations.
The following links appear on the CommunityGroupMembers Server Control when a community group’s administrator or Ektron administrator is logged in and viewing the control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The display height (in pixels) of the avatar in the results box.
The display width (in pixels) of the avatar in the results box.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default community group ID for this control to use if no matching dynamic parameter value is passed.
Select whether this control displays a community group’s current members or their pending members. Choices are:
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a community group ID dynamically. To use the default community group ID, leave blank.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Add a link to the member profile page’s Web form. This allows a user to click a link in the community group members list and be taken to a member’s profile page. Two 2 variables used within the link represent the user’s ID and name.
The link needs both variables. The Web form can be relative or absolute. For example:
userprofilepage.aspx?gid={0}&gn={1}
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
The maximum number of items to fetch. 0 (zero) = unlimited.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The CommunityGroupProfile server control displays the profile of a community group. You can see an example of the CommunityGroupProfile Server Control in the Ektron Tech site > Community > Community Groups > select any group. The profile includes:
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The default community group ID for this control to use when no matching dynamic parameter value is passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a community group ID dynamically. To use the default community group ID, leave blank.
Add a link to the administrator’s profile page. This lets a user click a link in the community group page's profile area and be directed to the administrator’s profile page. Two variables in the link identify the administrator.
Both variables must be in the link. The Web form can be relative or absolute. Below is an example.
adminprofilepage.aspx?aid={0}&an={1}
Determines the type of window that appears when you click a link in the server control.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Add a path to another Web form to create links for the tag text. The path can be relative or absolute. By providing the path to CommunitySearch server control, a user viewing the profile can click a tag and search for other groups with the same tag. Five parameters, which are automatically added to the link’s QueryString, let you pass information about the tag.
You can also add your own parameters by defining them in the path. If you do, these parameters will be appended to yours. See Also: Tagging Content, Library Items, Users, and Groups with Keywords
Determines the type of window that appears when you click a link in the server control.
Lets a developer specify a server control’s tag.
IMPORTANT: The Content Block server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version. as of Release 8.6. You should begin to use the Content Item templated server control, documented in Framework UI >> ektron:ContentView.
The ContentBlock server control displays the following types of content blocks on an Web page.
A static content block displays one identified content block on a Web page. The following image shows a server control that retrieves content block ID=28 and displays it in the browser.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of a content block that appears where you insert this server control. If you don’t know the ID number of the content block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
NOTE: If you identify a content block that displays an Office document which will be published as HTML, make sure the template sets <span>
tags to display the content as a block.
Ignore for a non-XML content block.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Select None - Use Default. This parameter is used for dynamic content blocks.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
IMPORTANT: If you want to let content authors edit this content using Ektron’s Edit in Context feature, this must be set to false.
Lets a developer specify a server control’s tag.
Use a dynamic content block to display a content block whose ID is passed through a URL parameter. You would use this server control with a dynamic template.
The following example uses the ContentBlock server control to pass the id as a URL parameter. When a user clicks a link that passes the content block ID as a URL parameter, that content block appears. If that content block is not available, content block 1 appears
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of a content block that appears where you insert this server control. If you don’t know the ID number of the content block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
NOTE: If you identify a content block that displays an Office document which will be published as HTML, make sure the template sets <span>
tags to display the content as a block.
Ignore for a non-XML content block.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Select id. When you do, this server control uses the content block passed as a URL parameter.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
IMPORTANT: If you want to let content authors edit this content using Ektron’s Edit in Context feature, this must be set to false.
Lets a developer specify a server control’s tag.
Use an XML content block to display an XML content block on an Ektron Web page.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of a content block that appears where you inserted this server control if no other content block is identified, or is not available. If you don’t know the ID number of the content block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. If you do not define the DisplayXslt
property, the OverrideXslt
property specifies an XSLT identified in the Edit Smart Form Configuration screen. See Also: Working with Smart Forms, Ektron KB article "HOW TO:Add acceptable XSLT files to the system"
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this content block dynamic, select id. When you do, this server control uses the content block passed as a URL parameter.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
Retrieving the XML structure of XML content allows for greater control over developing XSLs. The following example shows how to retrieve the XML structure.
IMPORTANT: This does not work with HTML content blocks, as there is no XML structure to output.
TextMode
property to MultiLine.NOTE: On the code-behind page, add the following line.
TextBox1.Text = ContentBlock1.EkItem.Html
The following code displays a content block:
NOTE: Before adding these lines of code, drag and drop a literal box on your Web form.
Dim MyContentBlock As New ContentBlock MyContentBlock.DefaultContentID = 8 MyContentBlock.Page = Page MyContentBlock.Fill() Literal1.Text = MyContentBlock.EkItem.Html
To display a content block with the content block title:
NOTE: Before adding these lines of code, drag and drop a 2 literal boxes on your Web form.
Dim MyContentBlock As New ContentBlock MyContentBlock.DefaultContentID = 8 MyContentBlock.Page = Page MyContentBlock.Fill() Literal1.Text = MyContentBlock.EkItem.Title Literal2.Text = MyContentBlock.EkItem.Html
See Also: Defining Flags for Content
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The default content ID for this control to use when there is no matching dynamic parameter value passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a content ID dynamically. To use the default content ID, leave blank.
Enter a path to an image that overrides the text in the FlagText
property. When the image is clicked, the flag dialog appears.
Text for the link that is shown to allow flagging. For example, you might use “Click here to flag this content.” The FlagImage
property overrides this property. When the text link is clicked, the flag dialog appears.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
IMPORTANT: The ContentList server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version. as of Release 8.6. You should begin to use the Content List templated server control, documented in Framework UI >> ektron:ContentView.
The ContentList server control displays a list of content blocks on a Web page. In contrast to a List Summary, where content must be in a specified folder, the ContentList server control displays content from any Ektron folder. Depending on the setting you choose for DisplayXslt
, you can change information displayed for each content block.
When added to a template and visited, a ContentList Summary looks similar to the following.
DefaultContentID
property. See Also: Server Control ReferenceWhen using this option, an administrator typically sets up the Workarea portion of the process. Then, a developer adds the server control to a Web form and assigns the content block ID and the metadata name to the appropriate properties. Because the content list is assigned to a content’s metadata, you can pass the content ID dynamically in a Web form and display a list for each content block you defined.
ContentIds
property. See Also: Server Control ReferenceUsing the ContentIds
process, a developer adds the ContentList server control to Web form. Then, the developer defines a list of content IDs in the ContentIds
property. If the server control or the list in the ContentIds
property is deleted, it is not available and will have to be created again.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
A comma delimited list of content block IDs. See Also: Server Control Reference
Set content ID value. When set, content IDs are generated from the MetaTag value for this content.
Determines how information appears on the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Uses the QueryString parameter to read a content ID dynamically.
Set this property to True if you want the following information for each content in the list. Returns Content View Count, Content Rating, Content Rating Average. Create your own XSLT styles to display this data.
IMPORTANT: This property only provides reliable data when the Business Analytics Feature is on. Analyzing Websites.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the content list’s links.
IMPORTANT: This property works only when ecmSummary or ecmTeaser are used in the DisplayXslt
property. When the [$ImageIcon]
variable is used in an EkML file and that file is assigned to the MarkupLanguage
property, this property acts as True.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
See Also: contentlist.ekml
NOTE: If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored. If the EkML file contains the [$ImageIcon]
variable, the IncludeIcons
property acts as True.
Specify a Metadata definition whose type is Content Selector. When you do, the associated list of content items will appear where you place the server control.
NOTE: You cannot insert other metadata types.
This works with the DefaultContentID
property. For more information about using metadata to assign a list of related content to a content item, see Creating and Deploying a Related Content Definition.
Determines which direction to sort content determined by the OrderBy
property.
If sorting by date, descending puts the most recent first. When ascending
is selected and the OrderBy
property is set to OrderOfTheIds
, the order of the IDs are preserved. When set to descending, the order is reversed.
Sort the list by one of these values:
ContentIds
propertyNOTE: If you use a custom XSLT or EkML file, the type of content displayed can be manipulated. For example, if you use an EkML file that has the [$Html] variable in it, the actual content appears instead of a link. See Also: Controlling Server Control Output with Ektron Markup Language and [$Html]
This property is set to false
because Ajax uses <div>
tags to rewrite the region around the tag. You cannot change the value to true
.
Lets a developer specify a server control’s tag.
The ContentReview server control lets site visitors rate content on your site. Place this control on a template that displays content items or eCommerce products. For example, you place this control on a Master page and set its DynamicParameter
property to ID. Then, when a Web form containing a content item or product passes its ID to the QueryString, a site visitor can use the control to record a review.
You can use the ContentReview server control as follows:
See Also: User-Ranking of Content
NOTE: On a PageBuilder page, you can insert a ContentReview server control using the Calendar widget. See Also: Widget Reference. The eCommerce Product List server control also can display the star-based scale.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of a content block being rated by this server control. If you don’t know the ID number of the content block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Select the type of review to display, or enter the path to a custom XSLT. For additional information, see Using the DisplayXSLT Property. Choices are:
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
To make this content review control dynamic, select id. When you do, this server control is attached to the content block passed as a URL parameter.
When using this control to retrieve a user’s reviews, set this property to UserId to make the user’s ID dynamic.
Returns a list of reviews for content or a user.
DefaultContentID
property.UserId
property.Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The number of reviews to retrieve if the GetReview
property is set to Content or User. 0 (zero) = unlimited.
Setting this property to True allows Ektron users to moderate reviews. See Also: Moderating Reviews
Sets a minimum number of reviews before displaying the average rating. When set to 0 (zero), the average rating appears as soon as content is rated.
Suppresses the output of the span/div tags around the control.
The user ID for which to get reviews. If left blank, reviews from all users are returned. If a user ID is specified, only reviews for that user are returned.
IMPORTANT: The GetReviews
property must be set to User for the control to use this property.
Lets a developer specify a server control’s tag.
Reviews communicate your site community's feelings about a product or article. They also empower community members by giving them a voice. The ContentReview server control’s DisplayXSLT
property manages the display of reviews on your site. The control can display reviews for specific content or a specific user.
The following list shows an example of each XSLT as it appears on a Web page with a description and the XSL file being used. The files are located in webroot\siteroot\Workarea\Xslt.
WARNING! If you want to edit an existing file, you are strongly urged to make a copy, change its name and move it outside of your site's Workarea folder. If you make changes to this file and do not move it out of the Workarea, this file and the changes will be lost when you upgrade. The files are copies of files built, transformed and used, internally.
rating5star.xsl
—A 5-star rating system utilizing Ajax for display.rating5starComment.xsl
—A 5-star rating system utilizing Ajax for display. When you hover over the stars, a review box pops-up. Visitor comments are submitted via an Ajax call.rating5starinc.xsl
—A 5-star rating system with half-star increments that uses Ajax for display.rating5starAddEdit.xsl
—A 5-star rating system that lets visitors add text reviews of content.rating5starincAddEdit.xsl
—A 5-star rating system with half star increments that allows visitors to add text reviews of content. ratinglist.xsl
—Displays a list of reviews for content or a user.Retrieving the XML structure of XML content allows for greater control over developing XSLs.
DefaultContentID
property.TextMode
property to MultiLine. You should set the width of the text box to at least 400px.Textbox1.Text = ContentReview.XmlDoc.InnerXml
IMPORTANT: This control is for use in design-time only. Nothing is rendered at run-time.
The DesignTimeDiagnostic server control is used to verify the connection to Ektron’s server controls Web service. When added to a Web form, this control provides the following information:
The DesignTimeDiagnostic server control has no definable Ektron properties.
The following example shows the control on a page connected to the Web service.
The following example shows the control on a page not connecting to the Web service. Note that the path is not the correct path. It should be: http://192.168.0.82/siteroot/Workarea/ServerControlWS.asmx
The Directory server control lets you customize the behavior of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. feature. You place this control on a Web form to display a taxonomy. See Also: Organizing Content with Taxonomies
NOTE: To display a taxonomy on a PageBuilder page, use the taxonomy summary widget.
To minimize taxonomy’s impact on the performance of your production server, follow these guidelines.
TaxonomyDepth
property above 1. Changing this value dramatically slows down your production server’s performance. However, you can increase depth on your staging server for testing purposes.The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Define the Ektron folder ID where content is stored when an item is added to the taxonomy via the Add Asset link or the Add Content link. To enable adding content items via the Directory server control, you must use an EkML file with the [$AddAsset]
and [$AddArticle]
variables. See Also: taxonomy.ekml
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
NOTE: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a content ID dynamically.
Set to true to enable Ajax searches. When enabled, the MaxResults
property determines the maximum number of results per page.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen. See example below.
So, for example, if a taxonomy has 9 items and MaxResults
is set to 3, the screen displays only the first 3 items. When the site visitor clicks [Next], he sees items 4, 5 and 6, and so on.
IMPORTANT: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
Set to True if you want a search box (shown below) to appear above this taxonomy display. A site visitor can use the search to find content within a taxonomy/category that includes terms of interest. To suppress the search box, set to False.
Set this property to True if you want the following information for each content in the list. Returns Content View Count, Content Rating, Content Rating Average. Create your own XSLT styles to display this data.
IMPORTANT: This property provides reliable data only when the Business Analytics Feature is enabled. Analyzing Websites.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the taxonomy’s links.
This property only works when ecmSummary or ecmTeaser are used in the DisplayXslt
property. When the [$ImageIcon]
variable is used in an EkML file and that file is assigned to the MarkupLanguage
property, this property acts as True.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
See Also: taxonomy.ekml
NOTE: If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored. If the EkML file contains the [$ImageIcon]
variable, the IncludeIcons
property acts as True.
Enter the maximum number of items to appear in the initial display of this server control. If you set this value to zero (0), the maximum is 50. To let site visitors view more than the maximum but limit the amount of space being occupied, enter the maximum number of results per page here. Then, set the EnablePaging
property to True. If you do and more than the number of MaxResults
are available, navigation aids appear below the last item to help the site visitor view additional items. See following example below.
Specify the sort order of results. Choices are:
Use the the SortDirection
propertyYou can to specify the direction of the items with the SortDirection
property.
Set to true
if this control needs to preserve the URL parameters on the page. For example, if a server control displays a list of content items, the URL parameter passes to the control the template names and id
values that the template expects. Set to false
if the server control does not need to pass the URL parameters to the server control. The default value is false
.
Set to True to include child folders of the parent folder.
When set to True, a check box appears in the Show All check box.
Indicates if the number of taxonomy items appears next to each category when displayed in the website. (See example below.) Default value is false.
Select the direction of the ItemSortOrder
property. Choose Ascending or Descending.
Enter the number of columns in which this taxonomy/category will appear on the page.
Enter the number of taxonomy levels to retrieve below each taxonomy/category if you are accessing a taxonomy’s XML using code-behind. For example, if the taxonomy is Businesses > Restaurants > Pizza, and you set Taxonomy Depth to 2, only Business and Restaurants are available in code-behind. This setting has no effect on the display generated by the Directory server control, which always displays only one level below the current. To retrieve all categories for a taxonomy recursively, enter -1. The default value is 1.
IMPORTANT: For a live site, leave this value at 1. Increasing this value can slow down your live Web server. However, for testing on a staging server, you can increase the depth.
Enter the ID number of the taxonomy or category to appear in this server control. If you don’t know the number, click the button and navigate to the taxonomy or category.
Enter the number of columns in which this taxonomy/category items (articles) will appear on the page.
Lets a developer specify a server control’s tag.
The Favorites server control displays a list of Ektron content and external Web links (URLs) that a user has designated as favorite content. Within the control, Ektron content and URLs appear in separate lists. To view favorite content, click Content. To view a list of external URLs, click Link.
To learn about designating Ektron content as a favorite, see SocialBar.
After a URL is added, it appears on the control's Links list.
You also can add a URL to your Favorites by clicking the Add to Favorites link on the Social Bar server control. See Server Control Reference.
The DisplayMode
property controls whether a user’s Favorites are displayed as a basic list, or if they can be organized in folders. For example, a user groups all content created by a certain author in a folder with that author’s name. If you add a folder to a user’s favorites, content in the folder appear in the Content list; URLs in the folder appear in the Links list.
To move a Favorite to a folder:
DisplayMode
property is set to Directory.WARNING! Deleting a folder also deletes all content links and URL links in the folder. If you want to retain the links, move them out of the folder before deleting it. To remove a link from a folder, click the folder, check the link, and click MoveUp One Level. Deleting a folder also deletes all of its subfolders.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default user ID for this control to use when there is no matching dynamic parameter value passed.
Select the way this control displays community group information. Choices are:
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a user ID dynamically. To use the default user ID, leave blank.
The title shown at the top of the control.
Hides or displays the output of the control in design time and run time.
Enter a link to the content Web page. This allows a user to click a link in the Favorites control and be taken to the content.
The link must have all 3 variables. The Web form can be relative or absolute. Below is an example.
contentpage.aspx?cid={0}&lang={1}&title={2}
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
The Maximum number of items to fetch. 0 (zero) = unlimited.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
IMPORTANT: The Flexible Menu server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version. as of Release 8.6. You should begin to use the Menu templated server control, documented in Framework UI >> ektron:MenuView.
The Flex Menu server control displays a menu on a Web form. A Flex Menu creates XML, so you can modify its behavior using an XSLTExtensible Stylesheet Language Transformations file, and change its appearance using a cascading style sheet (.css) file.
Before you can use this server control, you must create one or more menus in the Workarea. See Also: Creating Menus for Your Website, Creating Menus for Your Website
This section explains some non-intuitive elements of the *.xslt file.
<xsl:when test="/MenuDataResult
/Info/
menuFragment='false'">
A flag that indicates the XML data is not complete. Instead, it’s a fragment that begins deeper than the top level (for example, a submenu fragment).
Because the data is incomplete, the XSLT processes the fragment differently. For example, don’t generate JavaScript startup code.
<xsl:attributename="id"><xsl:value-of
select="$menuConst"/>0_
ekflexmenu</xsl:attribute>
Each menu generates several elements, which the client code (JavaScript) accesses via a unique ID. For example, JavaScript needs to identify the selected submenu or item when a user clicks on an element.
menuConst
is only used is when creating elements without a corresponding XML block, such as when creating a structure to hold the menu.
<xsl:attribute name="href">#
NoScroll </xsl:attribute>
NoScroll
is sent to the href
portion of a link when there is nothing to put there (for example, when the link is supposed to run JavaScript).
NoScroll
prevents the page from refreshing, going to another page, or scrolling when it should not.
<xsl:attribute name="onkeydown">returnekFlexMenu.menuBtnKeyHdlr
(event);</xsl:attribute>
To make the xslt cross-browser compatible, it must support different methods of obtaining/passing the event object. In this example, the global event object is passed to the handling function.
NOTE: event
corresponds to window.event
. window.
is implied.
The Flex Menu server control can select (highlight) options in a Flex menu as site visitors navigate around the website. For example, a site visitor arrives at a Web page through a link in an email. If the QueryString matches the an item in a Flex menu, the item is shown as selected.
Below is the logic the Flex menu uses to decide when a menu item should show as selected. The list is presented in the order in which the code checks to see if an item should be highlighted.
If any menu item is selected, its parent menu is marked selected. If any menu is selected, all ancestor menus are selected. When all tests have been performed and no matches are found, the Flex menu is rendered with no items selected.
NOTE: As soon as one condition is satisfied, the item is shown as selected and the testing stops.
NOTE: Steps 2 through 8 are each repeated recursively throughout the menu data hierarchy until either a match is found or the end is reached. If there are no matches for a test, the control continues with the next one.
ekxmensel
parameter is present with a matching menu node ID. This parameter is used to specify the exact node a user clicked. The node, its parent, and ancestor menus are all marked as selected.ExamplePage.aspx?id=123
, and a menu item links to Content ID 123.ExamplePage.aspx?ekfrm=456
, and a menu item links to Form ID of 456.ExamplePage.aspx
and there is an item on the menu that matches, the menu item is shown as selected.id
, ekfrm
or pageid
parameter. If one is found, the control looks for a folder association between submenus and the folder that contains the object with the given ID. If the association exists, the menu item is shown as selected.ExamplePage.aspx
and there is a button on the menu that matches.id
or ekfrm
parameter and whether a value greater than zero is associated with it. If so, the control checks menu buttons for use of LinkIt.aspx
. If a button is using LinkIt.aspx
and either id
or ekfrm
parameter matches, the menu button is selected.The Flex Menu server control performs a complex sequence of tasks to determine which menu option to select. If you are unsure of a Flex Menu's behavior, you can view a log that lists the reasons for a menu selection. Use the log to troubleshoot issues with a Flex Menu.
Follow these steps to set up the ability to view a log of Flex Menu display information.
site root/web.config
file.system.diagnostics
, set LogLevel
to 4. Save and close web.config.LogInfo
property to true and save the page.<CMS:FlexMenu ID="FlexMenu1" LogInfo="True" runat="server" />
NOTE: It may be helpful to temporarily disable the menu's cache by setting CacheInterval="0"
.
The event message identifies the reason the menu node was selected. Or, if no matches were found, the message indicates that nothing is selected.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of a menu that appears where you insert this server control if no other menu is identified or available. If you don’t know the ID number of the menu, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
NOTE: If you want to change the Default menu's Starting menu, use the StartMenuID property.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. If nothing is specified, the menu is output as raw XML. Flex menus are designed to use the xsl file to control the menu’s behavior, and the .css file to control its display. Ektron provides several sample menus, and each has an xslt file. If this is a new menu, you may find it easier to copy and edit an xslt file provided with a sample menu. See Also: SampleMenu
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Set to True to enable Ajax, which only downloads sub-menus as needed.
Lets you prevent submenus from opening by default. Under some circumstances, such submenus look cluttered.
Only use this property if you are setting up a master/slave menu relationship, and this menu is the slave. If both are true, enter the ID of the master menu.
To let site visitors browse through all menu levels, enter zero (0). To restrict site visitors to a menu level, enter the number of the lowest level. In the following example, if you set this property to 1, a site visitor can browse through the About Us menu options but would not see the level 2 options (Company Profile and Careers).
If you set to True, when the menu first appears, all submenus are closed.
Enter a number to indicate the level at which you want this menu to display when it first appears. To begin the menu display at the root level, enter zero (0). In the following example, the Home folder is level 0. The others are level 1.
A site visitor can click a menu option to navigate to folders below the displayed level.
NOTE: If you set a StartMenuID, the StartLevel property is ignored.
Use this property to have the default menu begin somewhere other than its root. That is, at any submenu under the default menu. For example, menu ID 46 (Products) is the default menu. However when that menu displays, you only want to show its submenus, beginning with Products Support (ID 58). In this case, enter 46 into the DefaultMenuID
property and 58 into the StartMenuID
property.
NOTE: If you set a StartMenuID, the StartLevel property is ignored.
Enter the style sheet that will determine the appearance of the menus. Flex menus use an .xsl file to control their behavior, and a .css file to control their display. Ektron provides several sample menus, and each has a .css file. If this is a new menu, you may find it easier to copy and edit a .css file provided with a sample menu. See Also: SampleMenu
When set to True, suppress the Add and Edit buttons on the menu when a user is logged in to Ektron. The default is False.
This property is set to false
because Ajax uses <div>
tags to rewrite the region around the tag. You cannot change the value to true
.
Lets a developer specify a server control’s tag.
Use a FolderBreadcrumb server control to display Sitemap breadcrumbs. This trail typically consists of the current content’s folder path. For example, the FolderBreadcrumb below matches the content’s folder structure.
The FolderBreadcrumb server control does not read your folder structure and display its path. Instead, administrators define a folder’s breadcrumb trail on the Folder properties > Breadcrumb tab.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
When set to true, the content title is added to the end of the breadcrumb path, as shown below.
Home > Content > Content_Title
By default, the value is set to false. In that case, the breadcrumb path looks like this.
Home > Content
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
Display the breadcrumb trail for the folder in which the given content ID resides. To use this property, breadcrumb information for a folder must be defined in the Workarea > [Specified Folder] > Folder properties > Breadcrumb tab.
The folder ID for which you want the breadcrumb trail to display. If a DefaultContentID is given, it overrides this property. To use this property, breadcrumb information for a folder must be defined in the Workarea > [Specified Folder] > Folder properties > Breadcrumb tab.
Indicate how to display the breadcrumb trail: horizontally or vertically. The default is Horizontal.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a content ID dynamically.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Lets you make the breadcrumb trail appear as non-hyperlinked plain text.
Enter one or more characters to separate the items in a breadcrumb trail on this Web form. The default character is the greater than sign (>).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
Add the Folder Breadcrumb server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. to each Web form for which you want to create a breadcrumb site map.
Follow these steps to use a Folder Breadcrumb server control.
DefaultContentID
or DefaultFolderID
property. If you use DefaultContentID
, make sure the content is in a folder for which breadcrumb information is defined. If you use DefaultFolderID
, make sure breadcrumb information is defined for that folder.The FormBlock server control displays a content block associated with a form. When added to a template and visited, the form content block might look like the following example. You can change the display to suit your needs by modifying its properties. See Also: Working with HTML Forms
IMPORTANT: If you create a template for an existing form content block, you must manually change its quicklink to point to the new template. This change does not occur automatically. This procedure is described in Adding a Quicklink or Form to Content.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
The AddValidation property is obsolete and ignored. It has no effect. It is always true.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of a FormBlock that appears where you inserted this server control if no other form block is identified. If you don’t know the ID number of the form block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this form block dynamic, select id. When you do, this server control uses the form block passed as a URL parameter.
Displays a list of fields that are defined in the form. These fields are read only. This is an excellent way of displaying the field names used on the form. With this list of names, you can create events using the fields without having to enter the Workarea to see the names.
Hides or displays the output of the control in design time and run time.
Determines if tags are generated automatically of manually.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
After creating at least one hierarchy of discussion board elements, place a Forum server control on a Web page. The Forum server control displays a discussion board on a Web page. You should add text below the Login server control to remind the site visitor to enter an email address at the User field. For example, “At the User field, enter your email address.” See Also: Working with Discussion Boards
If you want to require site visitors to authenticate, the Web page that hosts the forum should also contain
IMPORTANT: After placing a Forum server control on a page, follow the procedure described in Updating the Page Command. Otherwise, the user may get an error when posting a reply.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Set to True to allow site visitors the option of posting anonymously to the forum. When true, a Post Anonymous checkbox appears above the text editor used to create a post.
If a site visitor adds a check mark to this box, the word Anonymous appears where the Display Name normally appears. The default is True.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the discussion board to display on this page if one is not defined in a query string parameter. If you don’t know the ID, click Ellipses (), then sign in and select a discussion board.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Provide a property’s Friendly Name to order search results by that property. For example, if you define DocAuthor, results will be sorted by the document’s author. Results can be ascending or descending based on OrderDirection
. If you enter an invalid property, no search results are returned. If you specify both CustomOrderBy
and OrderBy
, the OrderBy
property is ignored.
The Static ID of a community group.
Gets or sets the QueryString parameter to read a forum ID dynamically. The default is “f”. Note that a Forum resides one level below a discussion board.
Gets or sets the QueryString parameter to read a group’s ID dynamically. The default is “g”.
Dynamic Parameter for the community group id. Default is “id”.
Gets or sets the QueryString parameter to read a discussion board’s ID dynamically. Set to None - Use Default—if you want to always display the default discussion board. Note that a discussion board is one level above a Forum.
Gets or sets the QueryString parameter to read an individual thread’s ID dynamically. The default is “t”. Note that a Thread resides 2 levels below a discussion board and one level below a Forum.
Set the style sheet for the Editor when a site visitor creates or edits a post. By default, this property is blank. When a style sheet is not supplied, the style sheet defined in the Theme property is used.
Enter a comma separated list of items that you want to appear on the Editor’s toolbar. The default is StyleMenu, FontMenu, ParagraphMenu, TextFormatMenu, LinkMenu, ClipBoardMenu, SymbolsMenu, EmoticonSelect, WMV, Table. See Also: Adding and Removing Toolbar Items From the Editor.
If you set this property to true
, a drop-down list of all forums appears below the topic list. The site visitor can click a forum and jump immediately to it.
If you set this property to true
, a ContentReview server control appears on any topic screen run by this server control. The site visitor can use the control to rate the topic thread. An average rating for the thread appears next to each topic on the forum screen.
Enter a comma-separated list of custom user properties to exclude from the Forum’s profile page. For example, to suppress the Subscriptions field value, enter subscriptions.
Enter the path to an XSLTExtensible Stylesheet Language Transformations file used to filter forum content, such as, HTML Attributes, Tags and unwanted words in a user’s forum post. The path can be relative or absolute. The user’s post is filtered when the user clicks Submit. By default, this property points to <webroot>/siteroot/Workarea/Xslt/ForumFilter.xslt
. This file removes hrefs with javascript:, vbscript: and “on” events in the link. You can modify this file or create a new one.
WARNING! If you want to edit this file, make a copy, change its name and move it outside of your website’s Workarea folder. If you make changes to this file and do not move it out of the Workarea folder, this file and the changes will be lost when you upgrade.
For additional sample code used to create a filter XSLTExtensible Stylesheet Language Transformations, see the following KB article: XSLT: Gallery of Templates
Hides or displays the output of the control in design time and run time.
The default is True. An administrator can view a profile regardless of how this property is set.
On the other hand, if the Private Profile is set to Private for any user, the profile information is not visible, regardless of this setting. If Private Profile is set to Colleagues, only colleagues can see profile information. When the profile is visible, only properties and their values not listed in the ExcludeList
property (above) appear.
Set the height in pixels for the eWebEdit400 editor. The default is 400. The minimum height is 300.
Set the width in pixels for the eWebEdit400 editor. The default is 625. The minimum width is 500.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Set property to -1 if you want the Forum server control to display topics from all available languages.
Describes the type of forum displayed by this server control.
The order of search results. For example, you want to sort search results by last modified date.
NOTE: The OrderDirection field determines the direction of the search results. For example, if you sort by ID and OrderDirection is set to Descending, the results sort by ContentID number with the highest number at the top of the list.
IMPORTANT: Specifying a CustomOrderBy
property overrides this property.
The direction in which search results are sorted. The default is Ascending.
Enter a link to the user’s social networking profile page, a part of Ektron’s community platform. This allows a user to click another user’s name link or avatar and be taken to the user’s profile page. The link has 2 variables that represent the user’s ID and display name.
You need to have both variables in the link. The Web form can be relative or absolute. For example:
userprofilepage.aspx?uid={0}&dn={1}
The default for this property is ?g=profileu={0}.
When the default for this property is used, users are forwarded to a user’s profile page that is included with the forum control.
Determines the type of window that appears when you click a link in the server control.
If set to True, when this server control appears, the user see a Filter by Category option. This option helps a site visitor zero in on relevant content. If False, the Filter by Category option does not appear.
Suppresses the output of the span/div tags around the control.
Use this property to determine the number of columns on the Taxonomy screen available from this discussion board. In the illustration below, taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. categories are arranged in 3 columns (the default value).
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
Enter the custom theme’s folder name. The theme can be relative to the site root or located in the current folder. For example:
Theme=”/workarea/csslib/themes/winter”
Theme=”mytheme”
If you do not specify a theme, the property uses the location defined by the discussion board’s CSS theme property in the Workarea. See Also: Using a Custom Theme
Lets a developer specify a server control’s tag.
To prevent an error from appearing when a user posts a reply to the Web page that hosts the Forum server control:
@ Page
.<%@ PageLanguage="VB"AutoEventWireup="false" CodeFile="Default2.aspx.vb"Inherits="Default2" %>
validaterequest=false
.This property lets you specify a custom location for your themes. By doing so, you prevent them from being overwritten when you upgrade.
If you do not specify a theme in the server control, Ektron uses what is defined in the discussion board’s properties CSS Theme field.
To create a custom theme:
<web root>/<your site>/Workarea/csslib/winter.
/Workarea/Threadeddisc/themes
folder to the winter
folder.IMPORTANT: Make sure the CSS theme property in the Workarea is pointing to the proper CSS file.
IMPORTANT: You cannot create new buttons and add them to the Forum Editor. You can only add and remove existing buttons.
IMPORTANT: This section is only applicable if you are using the eWebEdit400 editor. See Also: Using the eWebEdit400 Editor
You can add and remove toolbar items on the Forum Editor by editing the EditorToolbar property. This property contains a series of string values that represent each item, listed below.
Part of the Community Platform, the Friends server control typically appears on your profile page and displays your colleagues. If you browse to another user's profile, you see that user's colleagues. See Also: Using the Friends Server Control
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The display height in pixels of the avatar in the results box. 0 (zero) = unlimited.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default user ID for this control if no matching dynamic parameter value is passed.
Select the way this control displays colleagues. Choices are:
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a user ID dynamically. To use the default user ID, leave blank.
Set the singular text to be used as a title for the Friends server control. The default value is Colleague.
Set the plural text to be used as a title for the Friends server control. The default value is Colleagues.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Enter a link to the user profile page template. The path can be relative or absolute. This value is referenced when a user clicks another user in the Friends control. Upon clicking the link, the selected user’s profile page appears. The link requires these variables.
For example: userprofilepage.aspx?uid={0}&dn={1}
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
The maximum number of colleagues to display in the control. 0 (zero) = unlimited.
Lets you determine whether or not to generate output. If you do not, CSS and JS are not registered.
Determines if sorting options appear on the control. If set to True, the following options appear:
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The ImageControl server control, when viewed on a Web form, displays an image stored within the Ektron Document Management feature. If you log in and have permission to edit the image, you can right click the image and select Edit. This action displays a dialog box with which the user can update the image.
IMPORTANT: Images are stored as assets using the Document Management feature. This control does not use the Ektron Library.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The image asset’s content ID you want to display. If you don’t know the ID number of the asset, use the CMS Explorer to browse to it.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read an image asset’s ID dynamically. To have the default image ID used, leave blank.
The ID of the folder where images are added. If you don’t know the ID number of the folder, use the CMS Explorer to browse to it.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
The ID of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. to which assets are added.
Set the image’s alt/title text. By default, the image file name is used.
Lets a developer specify a server control’s tag.
The Invite server control lets a site visitor invite people to join a site or become a colleague. The control displays a dialog box that prompts for several email addresses. The dialog includes an optional message, which appears in the body of the email. The site visitor can edit or delete the message.
NOTE: Messages are defined in the Workarea. For more information, see Generating email Invitations for Community Management.
Invitations have a single "from" email address. Its default value is invitations@example.com
. Your site administrator should change it to one that is appropriate for your organization. To change the "from" email address for invitations, open your site’s web.config
file and change the value of following key.
<add key="ek_InvitationFromEmail" value="invitations@example.com"/>
WARNING! The default From email address used to send all invitations is invitation@example.com. Ektron, Inc. strongly recommends changing this address.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
The ID of the message to send in the link section of a FriendInvitation type email. This message is defined in the Workarea > Settings > Community Management > Messages. See Also: Generating email Invitations for Community Management. If set to 0 (zero), the server control uses the default message.
Hides or displays the output of the control in design time and run time.
The ID of the message to send in the link section of a GroupInvitation or FriendInvitation email. This message is defined in the Workarea > Settings > Community Management > Messages. See Also: Generating email Invitations for Community Management. If set to 0 (zero), the server control uses the default message.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The body text of the email message. The text appears in the Invite server control’s dialog box and can be edited by site visitors when they use the Invite control.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The LanguageAPI server control lets a developer force a particular language for a website. You can do this by dropping the server control on the page and setting a language in the SiteLanguage
property box. You can also override site language logic by programmatically using the LanguageAPI server control to detect the browser’s language, and display the site in that language.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Sets the site language. Runs through the IsValid function to verify that the language is an active language in the system.
Numeric value of the site language. This is the property you will use if you are using code-behind to set the sites language ID.
Example: 1036 = French
For a list of supported languages, go to Workarea > Settings > Configuration > Language Settings.
The following is a list can only be used programmatically.
Read only. Returns the current language.
Read only. Returns the current language ID.
Read only. What the default language of the site is set to. For example, the demo site is “English (Standard)”.
Read only. Returns the value that is the default language ID of the site. For example, the demo site is “1033” for English.
This method returns a string. Pass in a valid language ID and it will return the language name.
This method returns an integer. Pass in a valid language name and it will return the language ID.
This method returns a boolean. You can pass in a language ID or a string and it will tell you if the system is supporting it.
Read only. Lists all the language IDs that are activated in Ektron. For information on how to enable languages, see Determining Which Languages are Available.
Read only. Lists all the languages that are activated in Ektron.
Read only. Tells if the site supports multi-language mode.
This example uses a logo that is not managed through Ektron. It retrieves the current language from the LanguageAPI control, and uses that information to choose the logo version to display. The code-behind looks like this.
Select Case LanguageAPI1.CurrentLanguageID Case 1031 Image1.ImageUrl = "germanlogo.png" Case 1033 Image1.ImageUrl = "englishlogo.png" Case 1036 Image1.ImageUrl = "frenchlogo.png" End Select
The LanguageSelect server control displays a language selection drop-down list on an Ektron Web page. The control lets a site visitor select a language in which to view the site. Here is what the control looks like when published on a Web page.
It lists all languages selected on the Settings > Configuration > Language settings screen. (For more information, see Working with Multi-Language Content.)
You can place this control in any location of any page on your site.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Lets you define the label next to the language select drop-down box.
Set a language for the Language Select Box. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
IMPORTANT: For release 8.6 and later, the ListSummary server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version.. It is replaced by the ContentView templated server control.
The ListSummary server control displays a list of content in a selected folder on a Web page. Optionally, the display can include content in all subfolders of the selected folder. When added to a template and visited, a List Summary looks like this.
It displays each content block’s title and summary information. You can modify the display to suit your needs by modifying its properties.
NOTE: To display a List Summary on a PageBuilder page, use the ListSummary widget.
NOTE: In contrast to a List Summary, a ContentList server control displays selected content items from any Ektron folder. See Also: ContentList (deprecated)
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Override the control’s default text for the Add Content menu item.
For example, you have a News website. You could change Add Content to Add News Item.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
NOTE: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
Checks the QueryString for this value and replaces the list summary with a content block when specified. Leave blank to always display the list summary.
Determines the type of content that appears in the list summary. The default is Content. Choices are:
Determines how information on the page appears
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
NOTE: If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.
See example below.
So, for example, if a List Summary has 9 items and the MaxResults
property is set to 3, the screen displays only the first 3 items. When the site visitor clicks [Next], he sees items 4, 5 and 6, and so on.
NOTE: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
The folder that contains the items which appear in the list summary. See Also: Browsing Your Ektron Site Using CMS Explorer. The Recursive
property determines whether content blocks in this folder’s child folders also appear.
Set to True to display the HTML body for all content in the list summary. For example, to display content inside a Web server control such as a GridView.
Set this property to True if you want the following information for each content in the list. Returns Content View Count, Content Rating, Content Rating Average. Create your own XSLT styles to display this data.
IMPORTANT: This property only provides reliable data when the Business Analytics Feature is on. Analyzing Websites.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the list summary’s links.
IMPORTANT: This property works only when ecmSummary or ecmTeaser are used in the DisplayXslt
property. When the [$ImageIcon]
variable is used in an EkML file and that file is assigned to the MarkupLanguage
property, this property acts as True. See Also: Controlling Server Control Output with Ektron Markup Language
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
See Also: listsummary.ekml
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored. If the EkML file contains the [$ImageIcon]
variable, the IncludeIcons
property acts as True.
Enter the maximum number of items to appear in the initial display of this server control.
If you enter no value or 0 (zero), the maximum is 50. This is done for performance reasons.
To let site visitors view more than the maximum but limit the amount of space being occupied, enter the maximum number of results per page here. Then, set the EnablePaging
property to True.
If you do and more than the number of MaxResults
are available, navigation aids appear below the last item to help the site visitor view additional items. See example below.
How to order the hyperlinks on the list. The sort field is determined by the OrderKey
property.
If sorting by date, descending puts the most recent first.
NOTE: For releases 8.0.1 and later the OrderKey property has been deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version.. It has been replaced by this OrderBy property.
Sort the list by one of the values.
Random (Boolean)
Set to True if you want to randomly display one content block in the specified folder. The content changes each time a user views the page.
If you use a custom XSLT or EkML file, the type of content displayed can be manipulated. For example, if you use an EkML file that has the [$Html] variable in it, the actual content appears instead of a link. See Also: Controlling Server Control Output with Ektron Markup Language and [$Html]
Determines if the display includes content in child folders of the selected folder.
Set the ID of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. that content will be associated with when a logged in site visitor uses the Silver Access Point’s Add HTML Content to add content to a list summary server control.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
Retrieving the XML structure of XML content allows for greater control over developing XSLs. The following example shows how to retrieve the XML structure.
FolderID
property.TextMode
property to MultiLine.NOTE: You should set the width of the text box to at least 400px.
Textbox1.Text = ListSummary1.XmlDoc.InnerXml
The Login server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. paints a login button on the template when displayed in a browser. The Login server control displays the following buttons on a Web page. See Also: Getting Started with Ektron
—When user is not logged in, this button appears. Clicking the button opens the login window, where a user can enter a username and password. Upon authentication, the user is logged in to the Ektron website.
—After a user logs in, this button replaces the login button to let the user log out.
—When logged in, this button appears under the logout button, allowing the user to access the Workarea.
—Lets the user preview the entire website as if all checked-in content were published.
—Turns off site preview mode.
—Launches online help for Ektron.
You can add any number of login buttons to a template. You can insert a login button on each template, or set up a special Web page, called login.aspx, from which users can log into the Ektron site without the public being able to access the page.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
When using Single Signon, the Login Server Control can be used to add users to Ektron. In this scenario, when a user signs on with Active Directory credentials, that user is created within the Ektron database. Use this property to define the type of user that is automatically added to Ektron. See Also: Single Sign On
If this property is set to true and Active Directory Integration is enabled, users are automatically logged in using Active Directory authentication. They do not need to enter a username or password. See Also: Single Sign On
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for the Login server control. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).
Allows only membership users to log in. This property prevent users from logging as an Ektron user and accessing the Workarea. If an Ektron user tries to log in using this control, this message appears: “Only members are allowed to login here.” The default is False.
When set to False, the logout process omits the Logout window (shown below).
Hides the Help button that appears below the Login button when set to true.
If you are editing this server control from a text file and want to suppress the Help button, add the following code to the login tag source:
<CMS:Login ID="Login1" runat="server" SuppressHelpButton="True" />
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The Map server control displays a map that flags locations of interest. Each location is an Ektron content item to which map information was added. For example, if your site hosts a school district, each location could represent one school. See Also: Using the Map Server Control
Within Visual Studio, you cannot see the map in design mode. However, you can right mouse click the mouse and select View in Browser to see the effect of changing the properties.
You cannot place more than one map server control on a form.
Troubleshooting
web.config
element as follows: <add key="VirtualEarthMap" value="https://dev.virtualearth.net/mapcontrol/ mapcontrol.ashx?v=6.1&s=1" />
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
To set a default map center, enter its address. The address appears in the Search field when the map first displays. If you only enter a zip code, the map centers on its post office. If you enter an address, the latitude
and longitude
properties are ignored.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
Use this field in conjunction with the EnableSearchResult field to limit the map to a single content item. Here, you identify the content item to be mapped. Content must have latitude and longitude values to appear on a map.
Use this field if you want the Category popup box to display an icon to the left of each category, as shown below.
Prerequisite
To use this value, open the webroot/Workarea/images/application/maps/tree
folder. In that folder, create a new folder whose name is the same as the Taxonomy category assigned to the Map server control at the MapCategory
property. (In the sample site, this Taxonomy’s name is MapCategory
.) Then, place the icons in that folder by category title name with a .png extension. Use an underscore (_) to separate taxonomy levels. For example, the image for the category Restaurant > American must be named Restaurant_American.png
.
Set to True to assign a date to content. This feature is helpful for date-related content, such as concerts, meetings, or sporting events. You can filter what appears on the map by date. If you set this property to true, assign a date to date-related content using the MapDate standard metadata field. Then, publish the content. When you click a map’s Display on Map button, the popup screen includes date criteria, as shown below. You can select map items by a single date or a range of dates.
If you want to display a box of information about each map item to the right of a map, enter True. To suppress the text box, enter False.
Enter the map's units of distance. Choices are miles and kilometers. The default value is miles.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Use to determine if the Map server control accesses the Ektron search to return results. True is the default value. You would change it to False if you want to display a map with only one content item, that is, a single location. Specify this item at the ContentID
property. In this case, the map does not find other Ektron content whose longitude and latitude are within the map’s boundaries. Site visitors viewing the map can still use the Search and Directions tabs to get directions to the location. For example, your site features homes for sale, and you want a map to show a featured home of the week. To do so, set this property to False, and enter the content that describes that home in the ContentID field.
Enter the ID number of the folder whose content is searched on this map. If the recursive
property is true, folders below this folder are also searched.
When set to true, this property causes the map to only show content associated with the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. category defined in the MapCategory
property. When set to false, the map shows all content within the map’s boundaries. For example, if 5 content blocks appear on a map and 3 are assigned to a taxonomy, set this property to True and the MapCategory
property to the ID of the taxonomy. When a user views the map, it displays the 3 content items associated with the taxonomy.
If you want to see a search box with tabs above a map, enter True. To suppress the text box, enter False. See Also: Server Control Reference
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
To set a default map center via latitude and longitude (as opposed to an address), enter the latitude here.
To set a default map center via latitude and longitude (as opposed to an address), enter the longitude here.
Enter the ID number of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. whose categories appear when up click this map’s Display on Map button. When a map first appears, all eligible content appears. If you click Display on Map, you can choose categories and limit the map to items assigned to them. For example, you could view restaurants only. As another example, a map could initially display all campuses in your state college system. Use the Display on Map pop-up window to limit the map to community colleges.
While an OR relationship among categories is the most intuitive and common, you can set up an AND or NOT logical relationship among selected categories.
Select the service that provides the map, either Google or Bing Maps for Enterprise. See Also: Configuring Google Maps
Enter the map’s display mode: Road, Satellite or Hybrid. This setting only affects Bing Maps for Enterprise maps.
Enter the template markup file that controls the map page display. For example, mymapmarkup.ekml
. If you enter no EkML file, the default one at Workarea\Template\map\map.ekml
is used. If the *.ekml file is located in the \workarea\template\map
folder, just enter its name. If the file is in another folder, enter the path relative to site root. For example, \workarea\customfiles\markup\mymapmarkup.ekml
See Also: Controlling Server Control Output with Ektron Markup Language and map.ekml
If you want to set a map zoom level below which map locations will not appear, enter that value. The default value is 4. Possible values are between 1 (most detailed) and 19.
Enter the number of locations that can appear on one page of the text box after a search is executed. See Also: Server Control Reference. If more than this number of locations are available, use [First] [Previous] [Next] [Last] at the bottom of the page to view additional locations.
In the FolderID
property, you specify a folder whose content is searched on this map. To extend the search to all folders below this folder, set this property to true.
Use this property to determine the logical relationship among several categories on the Display on Map tab. (See Server Control Reference). There are 3 choices: OR, AND, and NOT.
By default, an OR relationship exists among your selections. So, for example, if all 3 Restaurant categories are checked, then any restaurant that is defined as American, Chinese or Pizza appears on the map. If you change this property’s value to AND, only content to which all selected categories apply appear on the map. In the above example, only restaurants defined as American and Chinese and Pizza appear on the map.
Alternatively, you can set the property’s value to NOT. In this case, only content to which the selected categories are not applied appear on the map. To continue the above example, if you select Chinese, only restaurants that are not assigned the Chinese category appear on the map.
Enter the zoom level at which the map initially appears. See Also: Server Control Reference. Zoom level 1 is the least detailed, showing the entire world. Zoom level 19 is the most detailed, showing the smallest streets. By default, maps in the sample site have a zoom level of 12, which shows an area of about 10 miles (16 kilometers). A site visitor can adjust the level using the zoom control (circled below).
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Sets a QueryString parameter for the ID of users that are returned in the search results. This parameter is passed to the template page defined in the TemplateUserProfile
property when a user clicks the Location (map) icon associated with a user.
The URL path of the user profile template. The path can be relative or absolute.
If this map uses Bing Maps for Enterprise maps, this property enables or disables the zoom/direction/type control (highlighted below). It lets you zoom the map in and out, move the center in any direction, and change the display style (Road or Aerial).
If this map uses Google Earth maps, this property enables or disables the type control (highlighted below). It lets you change the display style (Map, Satellite, or Hybrid). Use the ZoomControl
property to display or suppress Google Earth’s zoom and direction controls.
Lets a developer specify a server control’s tag.
Use this property to display or suppress the Google map zoom control (highlighted below). For Bing Maps for Enterprise maps, the TypeControl
property determines the zoom control display.
The Membership server control has a tabbed form that lets a site visitor create or update a profile. The control also can present new membership users with terms and conditions for using Discussion Boards when needed. Membership Users and Groups
NOTE: You can view the Membership server control on the OnTrek starter site when you edit your profile.
You can specify the following information in the Membership server control tabs.
Fields with a red asterisk (*) are required fields.
Changing the Default File Size
To change the file size limit, edit Siteroot\Workarea\Upload.aspx.vb
. In this file, change the line below to the maximum file size you want to allow.
If (numFileSize > 200) Then
For example, to allow 500 kb files, change 200 to 500.
NOTE: Remember, this number is in kilobytes.
Changing the Default Height and Width
To change the default height and width, edit YourSite\App_Code\VBCode\Utilities.vb
. In this file, change the following lines to the size you wish to allow.
Dim Width As Integer = 125
Dim Height As Integer = 125
For example, to set avatar's height and width to 166 pixels, change 125 to 166 in both lines.
Fields with a red asterisk (*) are required fields.
By default, all activity is checked to display in the Activity Stream widget. By checking the boxes, you can select criteria for the types of content you want to see when colleagues or community groups create the content. You can also select (publish) the types of content that you want colleagues to see under the My Activities category. See Also: Sending Notifications to a Community
The Category tab lets you select from a list of taxonomy categories with which you want to be associated. You determine which taxonomy appears on the tab by setting the TaxonomyID
property.
IMPORTANT: The Category tab appears only when an ID is assigned to the TaxonomyID
property.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
When set to Active, Click to upload your avatar appears on the General tab. This allows site visitors to upload an avatar when registering for the site. When set to Disable, the link is hidden. To force site visitors to choose from a gallery of avatars, enter a path to the template containing them. The predefined gallery appears in a pop-up window. To adjust this window's properties, edit the siteroot\workarea\java\
membershiptabs.js
file.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The ID of the Discussion Board for which to show the Terms and Conditions. If you don’t know the ID, click Ellipses, then sign in, browse to and select the Discussion Board.
Lets a developer decide what type of membership form is added to the Web form. The following describes possible settings.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this control dynamic, select id. When you do, this server control is attached to the user passed as a URL parameter.
Use to add Captcha interface for more security. It looks like this.
If this property is set to true, Captcha appears while the control is in User Registration, Account Activate, or Reset Password mode. See www.captcha.net for more information about Captcha.
Hides or displays the output of the control in design time and run time.
Set a language for the server control. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).
The URL to which a membership user is sent if the registration fails.
The URL to which a membership user is sent when the registration succeeds.
Lets you replace text on the register button with an image. Enter a path to the image. For example:
http://www.example.com/buttons/registerbutton.gif
If the image is located in the site root, enter only the subfolder path and image name. For example: /buttons/registerbutton.gif
Text that appears on the Register button. The default is Register. If you use a register button image, you do not see this text.
Lets you replace text on the reset button with an image. Enter a path to the image. For example:
http://www.example.com/buttons/resetbutton.gif
If the image is located in the site root, enter only the subfolder path and image name. For example: /buttons/resetbutton.gif
Text that appears on the reset button. The default is Reset. If you use a reset button image, you do not see this text.
Lets you replace text on the Save button with an image. Enter a path to the image. For example:
http://www.example.com/buttons/savebutton.gif
If the image is located in the site root, enter only the subfolder path and image name. For example: /buttons/savebutton.gif
Text that appears on the save button. The default is Save. If you use a save button image, you do not see this text.
Decide if the Custom User Properties Tab is available when using this control. The default setting is True.
Terms and Conditions are defined for the Discussion Forum specified in the Membership server control's BoardID
property. If you set the ShowTerms
property to True
, the Terms and Conditions for the forum identified in the control's BoardID
property appear near the bottom of the Membership Server Control. A membership user must check the box to complete a registration.
If Terms and Conditions are defined for the specified Discussion Board and ShowTerms
property is set to False
, you must accept the Terms and Conditions the first time you create a post or a reply.
Suppresses the output of the span/div tags around the control.
The ID of a taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. available to users. A user editing or creating a profile can select which categories from this taxonomy to associate with their profiles.
The message that appears when a membership user already exists. The default message is: Username(email) already exists!
The message that appears when a membership user successfully registers. The default message is: You have registered successfully. You can also use this property to set the message that appears when users successfully unsubscribe or reset their password. To do this, enter the success message in this property and set the DisplayMode
property to the proper usage.
The message that appears when a membership user successfully updates their information. The default message is: You have successfully updated your information.
Lets a developer specify a server control’s tag.
IMPORTANT: The Menu server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version. as of Release 8.6. You should begin to use the Menu templated server control, documented in Framework UI >> ektron:MenuView.
The Menu server control calls a menu to be displayed on a page. Using the Menu server control, you can manipulate a menu by using the DisplayXslt
property. Below is a menu display with the SampleMenu XSLT.
Before you can use the Menu server control, you must create a menu in the Workarea. See Also: Creating Menus for Your Website
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The ID of a menu that appears where you insert this server control if no other menu is identified or available. If you don’t know the ID number of the menu, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The XSLT to use to render the menu.
For more information on using the SampleMenu and TreeMenu DisplayXslt, see Using DisplayXslt Samples.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Select menu_id. When you do, this server control uses the menu passed as a URL parameter.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
For more information, see Creating a Menu in Another Language.
Specify the location and style sheet for the menu. For example: \Workarea\csslib\mytest.css.
Leave blank to use the default. global.css
is the default style sheet. It is located in \webroot\siteroot\Workarea\csslib
.
The default is False.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
Two DisplayXslt samples are provided with the Menu server control, SampleMenu and TreeMenu. This section explains how to use them.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
The SampleMenu DisplayXslt lets you display an Ektron menu as a bulleted item list. See below for an example.
When you are logged in to your Ektron site, 2 menu items are added to each section of the menu: Add and Edit Menu. The user can use these to add a new menu item or edit an existing one. See example below.
For information on a adding or editing a menu item, see Adding a Menu Item .
For an example of the XSL code used in the SampleMenu, click the following link and choose the appropriate version.
The TreeMenu DisplayXslt lets you display an Ektron menu as a clickable folder list. You can expand and collapse the menu by clicking on the folder icons.
When you are logged in to your Ektron site, 2 menu items are added to each section of the menu: Add and Edit Menu. The user can use these to add a new menu item, or edit an existing menu item. See example below.
For information on a adding or editing a menu item, see Adding a Menu Item .
NOTE: When using the TreeMenu server control with Visual Studio and Windows 2003, the folder images do not display during design-time. They do, however, display correctly during run-time.
For an example of the XSL code used in the MenuTree, click the following link and choose the appropriate version.
Retrieving a menu's XML structure provides greater control over developing XSLs. The following is an example of how to retrieve the XML structure:
DefaultMenuID
properties.TextMode
property to MultiLine.Textbox1.Text = Menu1.XmlDoc.InnerXml
The Message Board server control allows a user to submit comments on a Web page about a
Comments are presented in a “wall” type format, which means that the newest one appears at the top, and older comments are pushed down as new ones arrive.
Other users can reply to comments. Replying to Message Board comments facilitates community building by allowing members to share information and, thereby, feel they have a personal stake in the discussion.
Comments are posted to the Message Board immediately unless the board is moderated. See Also: Moderating a Message Board
On a PageBuilder page, you can insert a Message Board using the Message Board widget.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Defines the location of the comment box. By default, bottom is selected. Choices are:
The default object ID for this control to use when there is no matching dynamic parameter value passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
Enter the maximum number of items to appear in the initial display of this server control. To set no maximum, enter zero (0). To let site visitors view more than the maximum but limit the amount of space, enter the maximum number of results per page here. Then, set the EnablePaging property to True. If you do and more than the number of MaxResults are available, navigation aids help the site visitor view additional items.
Set to True
to force moderation of the Message Board. If set to false
, moderation is controlled by the user or community group with which the Message Board is associated. See Also: Moderating a Message Board
The type of object to which the Message Board is assigned. Choices are:
The parameter name to pass in the QueryString to the TemplateUserProfile page, if you want it to be anything other than id. For example, you may prefer userid
, because it is more descriptive, as shown in the following example.
The maximum number of characters to display in the comment. If the number of characters in a comment exceeds this, a ... more >> link appears. Users click the link to see the full text.
Assigns a spam filter to the Message Board. Ektron provides 3 spam filters, and the ability to define your own. Spam control is turned off by default. Filter choices are:
SpamTimeSpan
property.SpamTimeSpan
property.The number of seconds for which the SameUserTimeDelay
or SameMessageTimeDelay
spam filters delay a user from posting a second time. See Also: Filtering Spam
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
The URL path to a page that contains a UserProfile server control. The path can be relative or absolute. If you enter a path, a user can click any user’s name or avatar from the Message Board server control and be forwarded to that profile page. See illustration below.
Note that user templates can be defined in the Workarea > Settings > Community Management > Templates screen. However, if you assign a template in this field, this setting takes precedence over the setting on the Workarea Template screen.
Lets a developer specify a server control’s tag.
The Messaging server control lets a site user send and receive messages. You can limit message recipients to a user’s colleagues or expand it to all Ektron users. The Messages control can appear on a site or also in the Workarea. Typical messaging functions apply, such as compose ( in the Workarea), reply ( in the Workarea), forward ( in the Workarea), print ( in the Workarea), delete ( in a sample site, in the Workarea).
You can populate a message's To: field with user names by setting the RecipientParamName
property to a QueryString parameter. This feature lets you create a link on a page, such as Send a Message to this user or Send a message to all users in this group. For example, you create a Web page link to a template containing the Messaging server control, pass a user’s ID in the QueryString as UID, and populate the RecipientParamName
property with UID. As a result, the server control reads the user’s ID and completes the To: field with the user’s name.
Here is how the link might look: messaging.aspx?g=pmessage&uid=1
You can pass multiple user IDs. For example: messaging.aspx?g=pmessage&uid=1&uid=20&uid=12&uid=18
IMPORTANT: You must include the g=pmessage
parameter in the QueryString to open the Messaging server control to its editor. Otherwise, the server control opens to the Inbox.
The VB example below creates a dynamic hyperlink that populates a message's To: field with a logged in user’s colleagues. For this example to work, add a Literal control to a Web form and name it Lit1. Notes are included as comment text.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim frnds As New Ektron.Cms.API.Community.Friends() Dim apicontent As New Ektron.Cms.ContentAPI Dim dirUsrData() As Ektron.Cms.DirectoryUserData If (apicontent.UserId > 0) Then dirUsrData = frnds.GetFriends(apicontent.UserId) If ((Not IsNothing(dirUsrData)) AndAlso (dirUsrData.Length > 0)) Then Dim idx As Integer Dim friendsList As String = String.Empty For idx = 0 To dirUsrData.Length - 1 'friendsList += "&uid=" + dirUsrData(idx).Id.ToString() friendsList = friendsList + "&uid=" + dirUsrData(idx).Id.ToString() Next Lit1.Text = "<a href=""MsgSample.aspx?g=pmessage" + friendsList + """>Send a message to my friends</a>" ' 'Replace MsgSample.aspx with the Web form that contains 'the messaging server control. 'Set the RecipientParamName property to "uid" for this example. ' Else Lit1.Text = "The logged in user currently has no friends" End If Else Lit1.Text = "You must be logged in to run this demo" End If apicontent = Nothing frnds = Nothing End Sub
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
When set to True, all users are pre-loaded and displayed in the search results when browsing for users (an empty string search). If the FriendsOnly
property is set to True, only colleagues are pre-loaded and displayed.
When set to True, users can only send messages to their colleagues.
Enter the QueryString parameter used to pass the ID of a community group. The default is gid. Use this property to email all members of a group.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The QueryString parameter used to pass the ID of a user to a profile page or location template when a user name is clicked in the Browse User screen. The default is ID. The parameter defined in this property is appended to the QueryString of the path defined in the ProfileUrl
property. The default is ID.
IMPORTANT: This parameter must match the parameter set in the UserProfile server control’s DynamicParameter
property on the page defined in the ProfileUrl
property.
The URL of the profile page template. This page opens in a new window when a user clicks a display name on the Browse Users screen. This provides additional profile information about the potential message recipient.
Enter the QueryString parameter used to pass a user ID. For example, if the QueryString is ?uid=1
, enter uid
in this property. To pass several users, enter a comma -separated list of user IDs. For example: ?uid=1,20,12,18
. This property is typically used when you want to populate a message's To: field. See Also: Populating the To: Field of a Message
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkMLEktron Markup Language file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
The XSLT used to display the user search control inside the Messaging server control. The default is MsgUserSelect.xsl
.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
Lets a developer specify a server control’s tag.
The Metadata server control lets you add the metadata from content blocks to a Web page. This lets developers add metadata quickly without having to type it in. You can add metadata from a single content block, multiple content blocks, or dynamically pass a content ID from a URL.
In contrast, the MetaDataList server control lets you create a list of content blocks to display on your site, based on metadata assigned to the content. See Also: MetadataList (deprecated).
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Enter the ID of the content block whose metadata is added to the page. If you don’t know the ID number of the content block, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer. If you want to add metadata from several content blocks, set this property to 0 (zero) and use the DefaultItemList
property to identify them.
A bracket-separated list of content block IDs whose metadata added to the page. This list is used only if the DefaultContentID
property is set to 0 (zero). For example:
In the ID list, you can specify metadata definitions to exclude for each content block. To exclude a metadata definition, insert a semicolon after the ID and enter the metadata definition. For example,
In the above example, the control will:
Title
metadata definition for content block 10Title
and Description
metadata definitions for content block 23Note the following criteria for metadata definitions that may be excluded:
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a content ID dynamically.
When enabled, this property automatically creates 7 of the Simple Dublin Core metadata fields from standard Ektron system properties. The default is false.
The 7 fields and how they are associated with the Ektron properties is explained in Applying Simple Dublin Core Metadata
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
<cms:MetaData id="MetaData1" runat="server" DefaultContentID="12"></cms:MetaData>
Or, if you are using multiple content block IDs in the DefaultItemList
, the following HTML is created.
<cms:metadata id="MetaData1" runat="server" DefaultItemList="[12,7,4]"> </cms:metadata>
<body>
tag to the <head>
tag.<head>
tag, you see meta tags from the content block added to the page, as shown in the following image.IMPORTANT: For release 8.6 and later, the MetadataList server control is deprecatedfunctionality that is being phased out and may become invalid or obsolete in future versions; migrate to the current and recommended version.. It is replaced by MetadataFilters of the Content templated server control. See Also: Framework UI >> ektron:ContentView
Use the MetadataList server control to create lists based on Keyword Names and Keyword Values contained within content metadata. The list can display the information as a list of hyperlinks. You can choose, based on properties you set, to display the summary and how to order the display. See Also: Working with Metadata
NOTE: On a PageBuilder page, you can insert a metadata list using the MetaDataList widget. See Also: Widget Reference
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
IMPORTANT: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
Select a type of content for this control. Choices are:
Determines how the information on the page appears
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen. See example below.
So, for example, if specified metadata is found in 9 items and the MaxResults
property is set to 3, the screen displays only the first 3 items. When the site visitor clicks [Next], the visitor sees items 4, 5 and 6, and so on.
NOTE: If the EnablePaging
property is set to True, the CacheInterval
property is disabled.
Determines whether the KeyWordValue needs to match the metadata value exactly. For example, if “site” is the KeyWordValue, the title of a content block is “Welcome to the site” and ExactPhrase is set to True, you would not see the content block in the metadata list. This is because “site” does not equal “Welcome to the site”.
The folder ID from which content is retrieved. At the Recursive
property, you determine if content in this folder’s subfolders are also retrieved.
Set this property to True if you want the following information for each content in the list. Returns Content View Count, Content Rating, Content Rating Average. Create your own XSLT styles to display this data. This property only provides reliable data when the Business Analytics Feature is on. Analyzing Websites.
Set to True if you want to display the content (html body) for all content to appear on this metadata list. For example, you want to display content inside a Web server control such as a GridView.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the metadata list’s links.
NOTE: This property only works when ecmSummary or ecmTeaser are used in the DisplayXslt
property. When the [$ImageIcon]
variable is used in an EkML file and that file is assigned to the MarkupLanguage
property, this property acts as True.
KeyWordName represents a metadata definition, that is, the container for the KeyWordValues. Examples of a KeyWordName are Keywords and Title. If you are authenticated, you can click the ellipsis button and select from a list of existing metadata definitions. For information on creating metadata definitions, see Adding a Metadata Definition.
Enter the values associated with the KeyWordName. Only content whose metadata (defined at the KeyWordName
property) matches this value appears on the metadata list. Examples of a KeyWordValue are “home; page; company.” To view an illustration of the relationship between KeyWordName and KeyWordValues, see MetadataList (deprecated).
NOTE: The character that separates multiple items is defined at the KeyWordValueSeparator
property. At the KeyWordValueMatchAll
property, you determine if all metadata definition values must match or any one of them.
This property is only used if you enter more than one keyword value. If you do, and only want content to appear on the metadata list if all values entered at the KeyWordValue field match its metadata values, enter True. If metadata can appear on the list as long as any value defined at the KeyWordValue field matches the selected metadata value for a content item, enter False.
Example:
KeyWordValue for Title (assigned for this server control): home; page; company. Metadata values for a content item’s Title metadata definition field: software; ektron; company.
KeyWordValueMatchAll =true
, content does not appear on metadata list because some items do not match.KeyWordValueMatchAll = false
, content item appears on metadata list because one item (company) matches.Enter the character used to separate the list of keyword values. An example is a semicolon(;).
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
See Also: metadatalist.ekml
NOTE: If you enter a valid EkML file at the MarkupLanguage property, the Displayxslt property value is ignored. If the EkML file contains the [$ImageIcon]
variable, the IncludeIcons
property acts as True.
Enter the maximum number of items to appear in the initial display of this server control. To set no maximum, enter zero (0). To let site visitors view more than the maximum but limit the amount of space being occupied, enter the maximum number of results per page here. Then, set the EnablePaging
property to true.
If you do and more than the number of MaxResults
are available, navigation aids appear below the last item to help the site visitor view additional items. See example below.
The order of the list to be returned.
Whether to search sub-folders of the identified root folder. The starting folder is identified in the FolderID
property.
Choose the order direction of the list, Ascending or Descending.
This property is set to false
because Ajax uses <div>
tags to rewrite the region around the tag. You cannot change the value to true
.
Lets a developer specify a server control’s tag.
Retrieving the XML structure of XML content allows for greater control over developing XSLs. The following is an example of how to retrieve the XML structure:
KeyWordName
and KeyWordValue
properties.TextMode
property to MultiLine.NOTE: You should set the width of the text box to at least 400px.
Textbox1.Text = Metadata1.XmlDoc.InnerXml
The Micro-messaging server control lets users post brief messages. It resembles micro-blogging services like Twitter. See Also: Using the Micro-messaging Server Control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default object ID for this control to use when there is no matching dynamic parameter value passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank. For example, if you are passing the ID value of a user, you might enter ‘uid’ for this property. So, if you passedhttp://~yoursite~/UPpage.aspx?uid=21
on the QueryStrings to a page containing this control, you would see the list of Micro-messages for the user with an ID of 21.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Enter the maximum number of items to appear in the initial display of this server control. To set no maximum, enter zero (0). To let site visitors view more than the maximum but limit the amount of space, enter the maximum number of results per page here. Then, set the EnablePaging property to True. If you do and more than the number of MaxResults are available, navigation aids help the site visitor view additional items.
The maximum number of messages to return when performing a micro-message search.
0 (zero) = unlimited.
Specify the type of micro-messages you want to display. Choices are:
See Also: Server Control Reference
The parameter name to pass in the QueryString to the TemplateUserProfile page, if you want it to be anything other than id. For example, you may prefer messageid
, because it is more descriptive.
Assigns a spam filter to the micro-messages. The control supplies 3 predefined spam filters, and the ability to define your own. Spam control is turned off by default. Filter choices are:
SpamTimeSpan
property.SpamTimeSpan
property.See Also: Server Control Reference
Sets the amount of time, in seconds, for which the SameUserTimeDelay
or SameMessageTimeDelay
spam filter delays a user from posting. These values can be selected in the SpamControlType
property.See Also: Server Control Reference
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
The URL path to a page that contains another Micro-messaging server control. When this property contains such a path, and the destination page has a Micro-messaging control whose Mode
property is set to Message
, a user can click a micro-message’s time span on the first page to open a second page that contains just that message.See Also: Server Control Reference
The URL path to the page that contains the UserProfile server control. The path can be relative or absolute. If you enter a path, a user can click any user’s name or avatar from the Micro-message server control and be forwarded to that profile page.
Note that user templates can be defined in the Workarea > Settings > Community Management > Templates screen. However, if you assign a template in this field, this setting takes precedence over the setting on the Workarea Template screen.
Lets a developer specify a server control’s tag.
The MyAccount server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. lets logged-in customers (site visitors) view and edit their Personal Information, Billing Address and Shipping Address. See Also: Using the MyAccount Server Control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
An ID or comma separated list of IDs for a Custom User Property (or properties) to expose in the UI. These properties are used to define information about a user beyond the standard Ektron user properties; such as Username, First Name, Password and email Address. See Also: Editing Personal Information.
IDs for these properties can be found in the Workarea > Settings > Configuration > Custom Properties screen. See Also: Creating Custom User Properties.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
The ID of the default country that appears in the Billing Address and Shipping Address. Set this ID to the country from which the majority of your customers will be making purchases. If the customer is from a different country, the customer can it change when editing the Billing or Shipping Address.
NOTE: If a customer enters information in the Billing Address area, the Billing Country seeds the Shipping Country when adding a new Shipping Address.
To find a country’s numeric ID, sign into the Workarea. Then go to Settings > Commerce > Configuration > Countries. The Numeric ID is in the left column of that screen.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. By default, the control uses MyAccount.xsl
. This file is located in siteroot\Workarea\Xslt\Commerce
IMPORTANT: If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The image to display while the control is fetching data. The default is siteroot\Workarea\images\application\ajax-loader_circle_lg.gif
.
Enter the path of a template that contains the Login server control. When a customer arrives at this control and is not logged in, the control checks this property for a path to template containing a Login server control. If one exists, the customer is sent to that template. When the customer logs in, the template containing the MyAccount server control appears. If no path exists, the control checks the web.config
file’s <addkey=”ek_RedirectToLoginURL”value=””/> value for a path.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
The OrderList server control lets customers view a list of processed orders. Customers typically reach this server control by clicking a link on your site, such as the View Order History link.
For information about how to use the OrderList server control, see Using the OrderList Server Control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
The default ID of the user for which to display a list of orders.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. By default, the control uses OrderList.xsl
. This file is located in siteroot\Workarea\Xslt\Commerce
IMPORTANT: If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
The QueryString parameter name which is used to pass the product ID to the product details page. For example, if your QueryString parameter for products is ID, enter that in this property. Then, when customers click a product in their order list, this parameter is passed with the product’s ID to the product details page.
Sets the QueryString parameter name which is used to pass an order ID dynamically. By default, this parameter is OID.
Set to true to allow guest account visitors to view their orders. If you do, a visitor can go to the View Orders screen, enter an order number and an email address, then view all submitted orders. See Also: Server Control Reference
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Specify the number of orders to show per page when a customer views their order history. If the number of orders exceeds the quantity defined in this property, the list is paged and the customer uses the paging navigation to move through the list.
The maximum number of orders to show per page.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
The URL path of the template that allows a customer to view the details of a product in an order. When a path is entered, the product’s title becomes a link that lets customers navigate to the template containing details of the product; for example, the template containing a Product server control.
The PhotoGallery server control helps users and community groups track and manage images.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default object ID for this control to use when there is no matching dynamic parameter value passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
The height of the dynamic content box in pixels.
The Width of the dynamic content box in pixels.
The template to use when displaying dynamic content. Leave blank to use the dynamic box.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank.
This property, in conjunction with the MaxNumber property, lets site visitors view an unlimited number of items while controlling the amount of screen space. The MaxNumber property limits the number of items displayed. If you set this property to True, and the number of items exceeds MaxNumber, navigation aids appear below the last item, allowing the visitor to go to the next screen.
Hides or displays the output of the control in design time and run time.
Choose whether to display icons next to the navigation list’s links.
Specify the sort order of results. Choices are:
To specify the direction of the items, use the SortDirection
property.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup Language
Enter the maximum number of items to appear in the initial display of this server control. To set no maximum, enter zero (0). To let site visitors view more than the maximum but limit the amount of space, enter the maximum number of results per page here. Then, set the EnablePaging property to True. If you do and more than the number of MaxResults are available, navigation aids help the site visitor view additional items.
The type of object to which this control is assigned. Choices are:
Indicates if an integer representing the number of taxonomy items in the category appears next to each category when displayed on the website. The default is False.
Select the direction of the itemSortOrder
property. Choose Ascending or Descending.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Enter the number of columns in which this taxonomy/category appear on the page.
Enter the number of columns in which the taxonomy items appear on the page.
Lets a developer specify a server control’s tag.
The Poll server control displays a poll or survey created from an Ektron form on a Web page. When added to a template and visited, the poll might look like this. You can change a poll's appearance by modifying its properties.
You should display a poll or survey with a Poll server control, because it provides great flexibility with the poll's appearance. Typically, developers want a poll or survey in a small section of a Web page, not the main content. By using the EnableAjax
property, you can display the results in the same area as the poll or survey without refreshing the entire page.
However, if you want the form/poll/survey’s response to be either Redirect to a file or page or Redirect form data to an action page, you must use a Form Block server control to display the form on a Web page. See Also: FormBlock Server Control
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
The ID of the poll that appears where you inserted this server control. If you don’t know the ID number of the pol, use the CMS Explorer to browse to it.See Also: Browsing Your Ektron Site Using CMS Explorer
The AddValidation property is obsolete and ignored. It has no effect. It is always true.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this form block dynamic, select ekfrm. When you do, this server control uses the form block passed as a URL parameter.
Can display the poll or results using an iFrame in the area of the page that contains the poll. As a result, the surrounding contents are not disturbed. The default is true.
Displays a list of fields that are defined in the form. These fields are read only. This is an excellent way of displaying the field names used on the form. With this list of names, you can create events using the fields without having to enter the Workarea to see the names.
Hides or displays the output of the control in design time and run time.
Determines if tags are generated automatically or manually.
IncludeTags
property to True.IncludeTags
property to False. Here is the default .NET generated form tag:<form id="Form1" method="post" runat="server">
Modify the form tag as indicated in red:
<form id="Form1" method="post" runat="server"
OnSubmit=”return EkFmValidate(this);”>
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The PostHistory server control displays a list of forum posts for a given user. The posts are displayed in order, by date, and contain the following:
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged in to the CMS Explorer and can use it to browse to Content, collectionA list of Ektron content links for display on a Web page.s, and so on.
The ID of the discussion board from which to get a user's posts. If you don’t know the ID, click Ellipses (), then sign in, browse to and select the discussion board.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The maximum number of posts listed. The default is 10.
Suppresses the output of the span/div tags around the control.
The URL path to the page that hosts the Forum server control.
The ID of the user for whom to get the post history.
Lets a developer specify a server control’s tag.
The Product server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. lets customers view the details of a product and add it to their cart. To display a product on a Web page, drag and drop a Product server control on a template and enter a product ID in the DefaultProductID
property. You could also dynamically pass a product’s ID to the control by setting DynamicProductParameter
property to the QueryString parameter used for product IDs.
See Also: Using the Product Server Control
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
Enter a default product’s ID. This is the default product that’s displayed when the template containing this control is viewed by a customer and a product ID is not dynamically passed. To make this server control dynamic, enter zero (0) for this property and set the DynamicProductParameter
to the QueryString parameter used to pass the product ID.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. By default, the control uses product.xsl
. This file is located in siteroot\Workarea\Xslt\Commerce.
See Also: Using the eCommerce Server Controls.
IMPORTANT: If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
The QueryString parameter name, which is used to read the product ID. For example, if your QueryString parameter for products is ID, enter that. Then, when customers view a product’s details, the product’s ID is passed to this control.
This property gets EntryData for a product and can be called only during the PreProcessXml or PostProcessXml event. If used outside of these events, it returns empty values for the entry data.
Hides or displays the output of the control in design time and run time.
Determine if the image gallery appears along with a product’s information. Images that appear in the gallery are set in the product’s Media tab when creating or editing a product. The Gallery Display property for each image on the Media tab must be set to Yes. Choices:
In the Image Gallery, images are displayed at their smallest size. If a customer clicks an image, a full size version appears.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Specifies an XSLT identified in the Edit Product Type Configuration screen.
Set to true if you want to the Add to Cart button to appear. The default is True. Setting this property to false lets you show details of a product, but not offer it for sale. For example, a product is no longer for sale, but you want to allow people who purchased it to view details. Also, by using code-behind to dynamically set the property, you could create code that checks your inventory system and hides the button if a product is out of stock. You could also accomplish this for a product by removing the check from the Buyable property when creating or editing a product in the Workarea.
Suppresses the output of the span/div tags around the control.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Enter the URL path of the template that contains the Cart server control. The path can be relative or absolute.See Also: Using the eCommerce Server Controls and Using the Add to Cart Button with Aliasing
The DisplayXslt
property is optional. If used, it specifies an external XSLTExtensible Stylesheet Language Transformations file. If the DisplayXslt
property is not defined, the OverrideXslt
property specifies an XSLT identified in the Edit Product Type screen. The following list provides more information about these properties.
NOTE: In this example, the XSLT Packaged option is the default XSLT, since it is selected. XSLT Packaged is the XSLT from the Edit Smart Form Configuration screen (that is, the XSLT created in the Data Designer).
sample.xslt
. No value is required for OverrideXslt. If an XSLT value exists, OverrideXSLT is ignored.The ProductList server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. displays a list of products on a Web page.
NOTE: Private catalog entries appear in the display of the Product List server control only if the user is logged in and has at least Read-Only permissions for its catalog folder. See Also: Making Content Private
See Also: Using the ProductList Server Control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. By default, the control uses ProductList.xsl
. This file is located in siteroot\Workarea\Xslt\Commerce
IMPORTANT: If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Sets the QueryString parameter to read a source’s ID dynamically. For example, if your QueryString parameter for a source ID is SID, enter that.
This property gets EntryData for a product and can be called only during the PreProcessXml or PostProcessXml event. If used outside of these events, it returns empty values for the entry data.
Set to true
if you want the average rating for this product to appear with the product display, as shown below.
Below the rating, a number indicates how many customers have rated the product. For more information on letting customers rate your products, see User-Ranking of Content.
IMPORTANT: This property only provides reliable data when the Business Analytics Feature is on. Running Ektron Business Analytics
Hides or displays the output of the control in design time and run time.
Enter a comma-separated list of IDs if the SourceType
property is set to IdList, TaxonomyList or CatalogList.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
The image to display while the Product List is loading.
The default is siteroot\Workarea\images\application\ajaxloader_circle_lg.gif.
(SortMode property must be set to None)
For further definition of the values shown here, see the entryPropertyenumeration in the API documentation.
SourceType
property = Collection)SourceType
property = Taxonomy)Specify the number of items to show per page when a customer views the product list. If the number of items exceeds the quantity defined in this property, the list is paged and the customer can use the paging navigation system to move through the list.
The number of pages to show before and after the current page. Enter zero to show all pages. For example, if you set this property to 2 and you are on page four of the product list, you see:
Select the default way the product list is sorted when a customer first views the page. When the page is loaded, a customer can change the sort via a drop-down list. Choices are:
See Also: Sorting the Product List
The ID of the catalog, collectionA list of Ektron content links for display on a Web page. or taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. that is being used as a product list. This property is used when the SourceType
property is set to Catalog, Collection or Taxonomy.
The type of source being used to create the list. Choices are:
SourceId
property to specify the ID of a single catalog when this source type is selected.IdList
property to specify a list of catalog IDs when this source type is selected.SourceId
property to specify the ID of the single taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. when this source type is selected.IdList
property to specify a list of taxonomy IDs when this type is selected.IdList
property to specify a list of product IDs when this source type is selected.SourceId
property to specify the ID of a collectionA list of Ektron content links for display on a Web page. when this source type is selected.Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
Enter the number of taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. levels to retrieve below each taxonomy/category. Only the top level appears in the control. The rest of the levels are available through XML in Code-behind. For example, if the taxonomy is DVDs > Movies > Comedies, and you set Taxonomy Depth to 2, only DVDs and Movies are available in Code-behind.
To retrieve all categories for a taxonomy recursively, enter -1. A depth greater than 1 or using -1 is only useful if you create a custom output using the Taxonomy’s XML. The default value is 1.
For a live site, Ektron strongly recommends leaving this value at 1. Increasing this value can slow down your live Web server. However, for testing on a staging server, you can increase the depth.
Specify the URL that contains the Product server control. This allows a customer to see the details of the product when the product link is clicked.
Use the Product Search server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.s to let site visitors search your website.
See Also: Using the Search Server Controls and Inserting Search Server Controls
To provide search capabilities to your website content, insert all 3 controls onto an .aspx template. Because the search functions are managed by separate controls, you can place a search field and button in a one section of a page, and the results in another.
Also, unless you want to use the default paging properties (which show only 10 results), insert an EktronUI Pager control on the page to manage the paging of the search results.
Prerequisite
Search server controls were added to the Visual Studio Toolbox. See Adding Search Server Controls to Visual Studio.
If you drag and drop controls from the Visual Studio Toolbox, the necessary register
statements are copied from the web.config
file and added to the page.
<add tagPrefix="ektron" namespace="Ektron.Cms.Framework.UI.Controls" assembly="Ektron.Cms.Framework.UI.Controls, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" /> <add tagPrefix="ektronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" assembly="Ektron.Cms.Framework.UI.Controls.EktronUI, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" />
If you copy and paste the sample code, add the following register
statement for templated controls:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
For Ektron UI controls, use this register
statement:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI"
namespace="Ektron.Cms.Framework.UI.Controls.EktronUI"
tagprefix="ektronUI" %>
The tag prefix can be anything as long as it matches the control's prefix.
Here is a basic template showing the 3 controls.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplatedControl.aspx.cs" Inherits="TemplatedControl" ValidateRequest="false" %><%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" tagprefix="ektronUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ektron:ProductSearchInputView ID="ProductSearchInputView1" ControllerID="ProductSearchController1" runat="server"> </ektron:ProductSearchInputView> <ektron:ProductSearchController ID="ProductSearchController1" runat="server" /> <ektron:ProductSearchResultsView ControllerID="ProductSearchController1" ID="ProductSearchResultsView1" runat="server"> </ektron:ProductSearchResultsView> <ektronUI:Pager ID="pager1" runat="server" PageableControlID="ProductSearchController1" ResultsPerPage="10"> </ektronUI:Pager> </div> </form> </body> </html>
Use the ProductSearchInputView server control to search eCommerce Products. It provides a Basic and an Advanced search. The query string from the ProductSearchInputView control is passed to the ProductSearchController, which sends results to the ProductSearchResultsView.
You can place the ProductSearchInputView server control anywhere on a page, and it can be separated from the results display.
More than one ProductSearchInputView server control can reside on a page.
The following image shows the default template for this control.
Click the Advanced link to show these product search filters.
ControllerID—the ID of the ProductSearchController that provides the data.
<CMS:ProductSearchInputView ID="ProductSearchView1" ControllerID="ProductSearchController1" runat="server"> </CMS:ProductSearchInputView> <CMS:ProductSearchController ID="ProductSearchController1" runat="server" />
This process is the same as Customizing the SiteSearchInputView Control. Refer to ProductSearch Model Properties to learn which properties may be referenced.
The ProductSearchController server control takes input from a ProductSearchInputView control, and returns results to a ProductSearchResultsView control. It provides an interface to the search API, thereby giving SearchView controls access to search data.
You can modify Ektron's ProductSearchController or write your own.
The ProductSearchController executes a search using a query string from the ProductSearchInputView control's Text
property, as specified in the code-behind's Onclick
event.
Unlike the other search controls, ProductSearchController has no UI functionality. So, there is no corresponding .ascx file.
Use only one ProductSearchController per page.
Properties
<ektron:SiteSearchController ID="SiteSearchController1" runat="server" />
Use the SearchResultsView server control to show search results sent from a ProductSearchController.
The ProductSearchResultsView is tied to the ProductSearchController by setting the property ControllerID.
The following image shows the ProductSearchView's search field and button and search results using the ProductSearchResultsView server control's default template.
ControllerID—the ID of the UserSearchController that provides the data.
<CMS:ProductSearchResultsView ID="ProductSearchView1" ControllerID="ProductSearchController1" runat="server"> </CMS:ProductSearchResultsView> <CMS:ProductSearchController ID="ProductSearchController1" runat="server" />
To learn about displaying search results, see Displaying Search Results. To see an example of displaying user search results, see [siteroot]\workarea\FrameworkUI\Templates\Search\ProductSearchResultsView.ascx.
This information is provided for each product returned with search results.
IMPORTANT: The result count is only an estimate. The count becomes more accurate you get closer to the final page.
Prerequisite
Cross sell or upsell products are already assigned to a catalog entry.
The Recommendation server control lets you cross-sell or up-sell products to a customer based on another product’s ID. After you create a product in the Workarea, you can define a list of other products that you want to associate with the new product.While viewing a product in the Workarea, choose View > Cross Sell or Up sell. Then, by adding the Recommendation server control to a Web form that contains a Product server control, the customer sees the recommendations when viewing the product details.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
Lets you inject custom XML into the generated XML before being processed by the XSLTExtensible Stylesheet Language Transformations. Enter a string of XML that you want to make available to the XSLT as follows:
<root><customXml>custom-xml-inserted-here</customXml></root>
See Also: Displaying Custom XML in Ektron’s Server Controls.
Enter a default product ID that contains either cross sell or up sell products. To make the server control dynamic, enter zero (0) in this property and set the DynamicProductParameter
to QueryString parameter used to pass the product’s ID.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page. By default, the control uses Recommendation.xsl
. This file is located in siteroot\Workarea\Xslt\Commerce
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
The QueryString parameter name which is used to pass the product ID to the Cart server control. For example, if your QueryString parameter for products is Product, enter that in this property. Then, when customers click Add to Cart, this parameter is passed with the product’s ID Web form containing the Cart server control. See Also: Using the eCommerce Server Controls
The QueryString parameter name which is used to pass the product ID to the product details page. For example, if your QueryString parameter for products is ID, enter that in this property. Then, when customers click a product’s title, this parameter is passed with the product’s ID to the product details page.
Hides or displays the output of the control in design time and run time.
If the template on which this server control resides includes a language selection control, and you want to let the customer select the language, enter zero (0). Otherwise, click the field, then the ellipsis button () and a popup box appears. Select a language from the list. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).
Specify the number of items to show per page when a customer views recommendations. If the number of items exceeds the quantity defined in this property, the list is paged and the customer can use the paging navigation system to move through the list.
The type of recommendation to show. Choices are:
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet. For example: Workarea\csslib\mytest.css
.
Suppresses the output of the span/div tags around the control.
The URL to navigate to when a customer clicks Add to Cart. The path can be relative or absolute. When a path is entered, the Add to Cart button appears next to the product and allows a customer to add the product directly to their cart. See Also: Enabling the Add to Cart Button and Using the eCommerce Server Controls.
Specify the URL that contains the Product server control. This allows a customer to see the details of the product when the product link is clicked. The path can be relative or absolute.
An RSS aggregator consumes an RSS feed and displays its information in a readable format. The RssAggregator server control lets you do the same by processing and displaying an RSS feed from any website. This lets you create an information Web page for news, stories, images, lists of music, and so on.
You can create a multi-level information Web page by placing several RssAggregator server controls on a page. For example, create a world news Web page by adding RSSRich Site Summary; regularly changing content, such as news sites and blogs link and send content to subscribers. feeds from the NY Times, BBC, and AFP (Agence France-Presse). To add an RSS Aggregator to your website:
URL
property to point at the RSS feed. For example, http://msdn.example.com/rss.xml
When a site visitor views the Web form, the RSS feed displays properly. If the visitor refreshes the page, information updated by the RSS feed provider appears.
To change an RSS feed's appearance, create a custom XSLTExtensible Stylesheet Language Transformations.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
Determines how the information on the page appears.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Hides or displays the output of the control in design time and run time.
Set a language for viewing the RssAggregator. This property shows results in design-time (in Visual Studio) and at run-time (in a browser).
Determines the type of window that appears when you click a link in the server control.
The Maximum number of items from an RSS feed that are returned. 0 (zero) = unlimited.
Suppresses the output of the span/div tags around the control.
The RSS feed path for the server control. For example: http://msdn.example.com/rss.xml
Lets a developer specify a server control’s tag.
Retrieving the XML structure of XML content allows for greater control over developing XSLs. To retrieve the XML structure:
URL
property.TextMode
property to MultiLine.NOTE: You should set the text box width to at least 400px.
Textbox1.Text—RssAggregator1.XmlDoc.InnerXml
The SEOSearch Engine Optimization - improving the visibility of search results server control analyzes your website for W3C compliance, what information Google has about the page, Alexa rankings, image alt text, keyword density, and metadata. SEO lets you know how (and if) you’ve set these values.
The Search Engine Optimization (SEO) control appears as an image on any template or master page on which you drop it.
You also can access the SEO report by clicking the Web Site Content menu then choosing View Page Activity.
When you are logged in and click the image, you see a detailed report of how search engines evaluate the page. For example, the report runs the page through a W3C validation site, or displays how search engines evaluate the page's text.
seo_w3c.ascx
) onto an area of the page.Only logged-in Ektron or Membership users can see the SEO control.The following list summarizes the information on the SEO Report.
The Sitemap server control utilizes the folder breadcrumb information in the Workarea to display a sitemap of your site. By choosing the starting point of the sitemap, the max levels to display and applying a style class, you can customize the sitemap. The sitemap appears as indented list when viewed on a Web page.
The contents of the sitemap are defined on the Breadcrumb tab, located in the Workarea folder properties. See Also: Navigating a Website with Breadcrumbs
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The style sheet class name used to format the HTML. Leave blank to use the default. To use a new class, add it to the following file:
webroot\siteroot\Workarea\csslib\sitemap.css
Then, add the class name to the property.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
When set to True, include site nodes from the parent folder but not their items. Set to False to include all nodes and items.
The folder ID for the starting point of the site map. To choose the root folder, enter 0 (zero).
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Set the maximum amount of levels to show. 0 (zero) = unlimited.
Set to the starting level of the site map. If set to 0 (zero), starts from the root.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
NOTE: Make sure you have added the sitemap information to your folders’ Breadcrumb tab in the Workarea.
To use the Sitemap server control:
FolderID
property. Retrieving the XML structure of XML content allows for greater control over developing XSLs. The following is an example of how to retrieve the XML structure:
FolderID
property.TextMode
property to MultiLine.NOTE: It is also recommended that you set the width of the text box to at least 400px.
Textbox1.Text = SiteMap1.XmlDoc.InnerXml
Use the Site Search server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.s to let site visitors search your website.
See Also: Using the Search Server Controls
To provide search capabilities to your website content, insert all 3 controls onto an .aspx template. Because the search functions are managed by separate controls, you can place a search field and button in a one section of a page, and the results in another.
Also, unless you want to use the default paging properties (which show only 10 results), insert an EktronUI Pager control on the page to manage the paging of the search results.
Prerequisite
Search server controls were added to the Visual Studio Toolbox. See Adding Search Server Controls to Visual Studio.
If you drag and drop controls from the Visual Studio Toolbox, the necessary register
statements are copied from the web.config
file and added to the page.
<add tagPrefix="ektron" namespace="Ektron.Cms.Framework.UI.Controls" assembly="Ektron.Cms.Framework.UI.Controls, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" /> <add tagPrefix="ektronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" assembly="Ektron.Cms.Framework.UI.Controls.EktronUI, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" />
If you copy and paste the sample code, add the following register
statement for templated controls:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
For Ektron UI controls, use this register
statement:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI"
namespace="Ektron.Cms.Framework.UI.Controls.EktronUI"
tagprefix="ektronUI" %>
The tag prefix can be anything as long as it matches the control's prefix.
Here is a basic template showing the 3 controls.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplatedControl.aspx.cs" Inherits="TemplatedControl" ValidateRequest="false" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ektron:SiteSearchInputView ID="SiteSearchInputView1" ControllerID="SiteSearchController1" runat="server"> </ektron:SiteSearchInputView> <ektron:SiteSearchController ID="SiteSearchController1" runat="server" /> <ektron:SiteSearchResultsView ControllerID="SiteSearchController1" ID="SiteSearchResultsView1" runat="server"> </ektron:SiteSearchResultsView> <ektronUI:Pager ID="pager1" runat="server" PageableControlID="SiteSearchController1" ResultsPerPage="10"></ektronUI:Pager> </div> </form> </body> </html>
The SiteSearchInputView server control provides a text box and submit button, which visitors use to search content. The control contains no business logic. It merely accepts a search term and passes it to the SiteSearchController, which retrieves and sends results to the SiteSearchResultsView control.
The SiteSearchInputView control's main purpose is a placeholder for markup, which you use to modify its appearance. The control's default markup is very simple: it inserts a text box, a Search button, and an Advanced Search link.
Prerequisite
You added search server controls to the Visual Studio Toolbox. See Server Control Reference.
To place a SiteSearchInputView control on a page:
You can place the SiteSearchInputView control anywhere on a page -- it does not need to be next to the results.
Also, you can place several SiteSearchInputView controls on a page.
To enable search functionality, connect a SiteSearchController to a SiteSearchInputView control. Use the control's controllerID
property to do this.
As a value
for the ControllerID property, enter the ID of the SiteSearchController that you place within the <form>
tags. For example:
<ektron:SiteSearchInputView ID="SiteSearchInputView1" ControllerID="SiteSearchController1" runat="server"> </ektron:SiteSearchInputView>
See Also: Server Control Reference
<ItemTemplate>
tags between the SiteSearchInputView control's opening and closing tags. Then, insert an asp text box or an EktronUI:TextField
to accept the user's input. Here is an example.<ektron:SiteSearchInputView ID="SiteSearchInputView1" ControllerID="SiteSearchController1" runat="server"> <ItemTemplate> <ektronUI:TextField ID="queryText" Text='<%# Eval("QueryText") %>' runat="server"></ektronUI:TextField> </ItemTemplate> </ektron:SiteSearchInputView>
NOTE: As an alternative, you can copy the line that inserts a text box from siteroot\Workarea\FrameworkUI\Templates\Search\SiteSearchInputview.ascx
.
Note that the Eval statement (<%# Eval("QueryText") %>
) databinds the search term to the textbox. As a result, the term remains in the box after the user clicks the search button.
EktronUI:Button
, like this.<ektron:SiteSearchInputView ID="SiteSearchInputView1" ControllerID="SiteSearchController1" runat="server"> <ItemTemplate> <ektronUI:TextField ID="queryText" Text='<%# Eval("QueryText") %>' runat="server"></ektronUI:TextField> <ektronUI:Button ID="Button1" DisplayMode="button" Text="Button 1" runat="server" OnClick="Button1_Click"> </ektronUI:Button> </ItemTemplate> </ektron:SiteSearchInputView>
NOTE: As an alternative, you can copy the line that inserts a search button from siteroot\Workarea\FrameworkUI\Templates\Search\SiteSearchInputview.ascx
.
onclick
event that executes a search. To accomplish this, open the page’s code-behind file and add the following code.protected void searchButton_Click(object sender, EventArgs e) { SiteSearchController1.Search (queryText.Text); }
Now you can customize the control's markup as needed.
See Also: MSDN Button class, MSDN Textbox class
You can place the search field and button on different parts of the page. To do that, insert 2 SiteSearchInputView controls. In one control, place the search field, like this.
<ektron:SiteSearchInputView ID="SiteSearchInputView1" ControllerID="Scontroller" Visible="true" runat="server"> <ItemTemplate> <ektronUI:TextField ID="queryText" Text='<%# Eval("QueryText") %>' runat="server"></ektronUI:TextField> </ItemTemplate> </ektron:SiteSearchInputView>
In the second control, in another section of the page, place the button, like this.
<ektron:SiteSearchInputView ID="SiteSearchInputView2" ControllerID="Scontroller" Visible="true" runat="server"> <ItemTemplate> <ektronUI:Button ID="Button1" DisplayMode="button" Text="Button 1" runat="server" OnClick="Button1_Click"> </ektronUI:Button> </ItemTemplate> </ektron:SiteSearchInputView>
Then, assign an onclick event to the button that executes a search. To accomplish this, open the page’s code-behind file and add the following code.
protected void searchButton_Click(object sender, EventArgs e) { SiteSearchController1.Search (queryText.Text);
The SiteSearchController server control takes input from a SiteSearchInputView control, and returns results to a SiteSearchResultsView control. It provides an interface to the search API, thereby giving SearchView controls access to search data.
You can modify Ektron's SiteSearchController or write your own.
The SiteSearchController executes a search using a query string from the SiteSearchInputView control's Text
property, as specified in the code-behind's Onclick
event.
Unlike the other search controls, SiteSearchController has no UI functionality. So, there is no corresponding .ascx file.
Use only one SiteSearchController per page.
Properties
<ektron:SiteSearchController ID="SiteSearchController1" runat="server" />
The SiteSearchResultsView Control receives search results from the SiteSearchController and displays them on a page. By default, the control's display looks like this.
NOTE: To manage the paging display at the bottom of the page, use an EktronUI:Pagercontrol
.
To enable search functionality, connect a SiteSearchController to a SiteSearchResultsView control. Use the control's controllerID
property to do this. See Also: Server Control Reference
For the controllerID property value, enter the ID of the SiteSearchController that takes input from SiteSearchInputView control and returns search results to this control. For example:
<ektron:SiteSearchResultsView ID="SiteSearchResultsView1" ControllerID="SiteSearchController1" runat="server"> </ektron:SiteSearchResultsView>
To customize the SiteSearchResultsView Control, first add a set of <ItemTemplate>
tags between the SiteSearchResultsView control's opening and closing tags (as explained in Modifying Templated Server Controls). Then, modify the search results in the following ways.
NOTE: As an alternative, you can copy the line that inserts a text box from siteroot\Workarea\FrameworkUI\Templates\Search\SiteSearchResultsView.ascx
.
Use <%# Eval("QueryText") %>
to databind the search term to the SiteSearchResultsView control. This code sample below displays an example of this Search Phrase: followed by the search term.
<ektron:SiteSearchResultsView ID="SiteSearchInputView1" ControllerID="SiteSearchController1" runat="server"> <ItemTemplate> <p>Search Phrase:<%# Eval("QueryText") %> </p> </ItemTemplate> </ektron:SiteSearchResultsView>
Use a ListView control to display search results from a SiteSearchController.
<%# Eval("Results") %>
statement to databind search results to the ListView control.<asp:ListView ID="aspResults" runat="server" DataSource='<%# Eval("Results") %>' ItemPlaceholderID="aspPlaceholder">
<asp:ListView ID="aspResults" runat="server" DataSource='<%# Eval("Results") %>' ItemPlaceholderID="aspPlaceholder"> <layouttemplate> <ul class="results"> <asp:PlaceHolder ID="aspPlaceholder" runat="server"> </asp:PlaceHolder> </ul> </layouttemplate>
<itemtemplate> <li> <h3><a href="<%# Eval("Url") %>"><%# Eval("Title") %></a></h3> <p><%# Eval("Summary") %></p> <p><%# Eval("Url") %> <%# Eval("Date") %></p> </li> </itemtemplate>
Here is the entire sample.
<itemtemplate> <asp:ListView ID="aspResults" runat="server" DataSource='<%# Eval("Results") %>' ItemPlaceholderID="aspPlaceholder"> <layouttemplate> <ul class="results"> <asp:PlaceHolder ID="aspPlaceholder" runat="server"> </asp:PlaceHolder></ul> </layouttemplate> <itemtemplate> <li> <h3><a href="<%# Eval("Url") %>"><%# Eval("Title") %></a></h3> <p><%# Eval("Summary") %></p> <p><%# Eval("Url") %> <%# Eval("Date") %></p> </li> </itemtemplate> </asp:ListView> </itemTemplate>
You can use an asp:Gridview
control to make search results look like the following.
To modify the UI for SearchResultsView:
<ektron:SearchResultsView>
tags, insert <ItemTemplate></ItemTemplate>
.<ItemTemplate>
tags, insert the following code, shown in bold.<ektron:SearchResultsView ControllerID="SiteSearchController1" runat="server"> <ItemTemplate> <h2>Search results for: <%# Eval("QueryText") %></h2> <asp:Gridview ID="Gridview1" DataSource='<%# Eval("Results") %>' runat="server"> </asp:Gridview> </ItemTemplate> </ektron:SearchResultsView>
You can use the properties with Eval
statements to display aspects of content search results. For example, <%# Eval("Summary") %>
displays the summary for content being returned by the search. See Also: Displaying Search Results, Server Control Reference
IMPORTANT: The result count is only an estimate. The count
becomes more accurate you get closer to the final page.
SiteSearchResultType
into the Object Browser.siteroot\workarea\FrameworkUI\Templates
\Search\SiteSearchResultsView.ascx
and find Eval("SuggestedSpellings")
.The SocialBar server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. lets users of a community website bookmark colleagues, community groups, and content. See Also: Using the SocialBar Server Control.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default object ID for this control to use when there is no matching dynamic parameter value passed. If you set this property set to 0 (zero) and leave the DynamicObjectParameter blank, the social bar can be used to add Web pages to your favorites.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a object ID dynamically. To use the default object ID, leave blank.
Hides or displays the output of the control in design time and run time.
Select whether icons are displayed next to each item.
The URL to the Invite server control’s Web page. Two variables used within the URL.
The link must have both variables. The Web form can be relative or absolute. Below is an example.
invitepage.aspx?id={0}&type={1}
A comma-separated list of items that you want to appear on the Social Bar.
IMPORTANT: For the Invite item to be active, you must enter a link to the page hosting the Invite control into the InviteURL
property.
Digg.com
, a social bookmarking service.del.icio.us
, a social bookmarking service.Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
The Web page that hosts the Messaging server control. This property is used when either PrivateMessageUser
or PrivateMessageAdmin
appears in the Items property.
If a value appears in the ek_RedirectFromLoginKeyName
key in the web.config
file, the user is returned to the original URL after sending the message. By default, this value is RedirectUrl
. If you remove this value and do not add another, the person sending a message sees a note stating “Your message has been sent.”
The type of object to which this control is assigned. Choices are:
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
WARNING! If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The TagCloud server control shows a weighted list of taga keyword that you assign to a user, group, content, or library item to give it additional identification.s assigned to users, community groups, content, or library items. Tag sizes are proportional to the number of times they are assigned. For example, there are 2 tags, Software and Programming. If the Software tag is used 5 times and the Programming tag is used 2 times, the Software tag is approximately twice as large.
Use the TagType
property to determine which types of tags appear in the cloud. For example, set TagType
to User
to display user tags.
You can set a maximum number of tags to display via the MaxTagsDisplayed
property. This property makes sense if the Orderby
property is set to Taggedcount
. In this case, the cloud only displays items with the highest number of tags.
Use the OrderBy
property to sort tags within a cloud. Your choices are alphabetical
or by Taggedcount
(the number of times an item is tagged). Then, use the OrderByDirection
property to determine if items are sorted in ascending or descending order.
Within a tag cloud, you can link tags to their source items. If you do, site visitors can click a tag to launch a search of all users, community groups, content, or library items to which the tag is assigned. For example, if someone views a user-based tag cloud and clicks Motorcycles, the community search page appears, showing all users tagged with Motorcycles.
To make a tag cloud’s items searchable, add a path to the Web form containing the Search server control in the TagTemplate
property.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
By default, the TagTemplate
property passes a TagId
parameter, whose value is the tag that a site visitor clicked in the tag cloud. Use this property to manually override that parameter and set the TagID value by hand.
Hides or displays the output of the control in design time and run time.
Identify the template markup file that controls the display of the server control. For example, mymarkup.ekml
. If the EkMLEktron Markup Language file is located in the same folder as the Web form containing the server control, just enter its name. Otherwise, the path to the file can be relative or absolute. See also: Controlling Server Control Output with Ektron Markup LanguageControlling Server Control Output with Ektron Markup Language
The maximum number of tags to display. 0 (zero) = unlimited. If you set a maximum, and more than that number of tags are applied, then only the most frequently-used tags appear. For example, if you enter ten, the ten tags applied the most number of times appear.
The criteria by which tags are ordered in the tag cloud. Choices are:
Select the direction of the OrderBy
property. Choose Ascending or Descending.
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
NOTE: If you enter a valid EkML file at the MarkupLanguage
property, the Stylesheet
property is ignored.
Suppresses the output of the span/div tags around the control.
If you want a tag cloud’s items to link to a page that shows all items with that tag, add a path to a Web form page that hosts the appropriate search control. The path can be relative or absolute.
TagType
is User
or Community Group
, enter a page hosting a Community Search server control. TagType
is Content
or Library
, enter a page hosting a templated search server control.For example, in the Ektron Intranet starter site’s tagcloud.aspx
page, the first 2 TagCloud controls link to users and community groups. So, this property is set to CommunitySearch.aspx
, a Web form that hosts the CommunitySearch server control.
When a site visitor clicks a tag cloud item, the Community Search page displays, populated with search results for the clicked tag. The visitor can click any result to see more about it.
The following 5 parameters are added to the link’s QueryString, and pass tag information to the destination Web form. Its search server control uses the parameters to populate the search.
TagType
property (described below).In addition to these parameters, you can add your own by defining them in the path. If you do, the above 5 parameters are appended to yours.
Determines the type of window that appears when you click a link in the server control.
Select the type of tags that appear in the tag cloud. Choices are:
Lets a developer specify a server control’s tag.
A user’s profile page is the person's home on the website. The UserProfile control displays following information about a user.
Logged-in users can edit their profile by clicking Edit Profile in the top right corner. This dialog box is the same dialog that a membership user uses to create an account on the site. See Membership Users and Groups for a description of this dialog. To automatically create a friendly URL for a user profile, you can use Community Aliasing for Users. See Also: Creating User-Friendly URLs with Aliasing
You can see a sample profile on the eIntranet My Profile page's top left corner.
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Indicates if you are logged into the CMS Explorer and can use it to browse to content, collections, and so on. See Also: Browsing Your Ektron Site Using CMS Explorer.
The display height in pixels of the avatar in the profile area.
The display width in pixels of the avatar in the profile area.
The number of seconds that a server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.’s data is cached. The default is 0 (zero). For example, if you want to cache the data for 5 minutes, set to 300. See Also: Caching with Server Controls.
The default user ID for this control to use when there is no matching dynamic parameter value passed.
If desired, enter a relative or absolute path to an Xslt that determines the display of the page.
WARNING! If you specify an external file, do not store this file in the Workarea folder. If you store this file in the Workarea folder, the file will be lost when you upgrade.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
Gets or sets the QueryString parameter to read a user ID dynamically. To use the default object ID, leave blank.
Set to True to display a user’s email address in the profile. If a user’s Private Profile setting is set to Private, the profile information is not visible, regardless of this property’s setting. If Private Profile is set to Colleagues, only a user’s colleagues can see email information.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Specify the path to a style sheet for use with this server control. The location can be relative or absolute. Leave blank to use the default style sheet.
Suppresses the output of the span/div tags around the control.
The Web page template that contains the CommunitySearch server control. This allows users to search for others users with the same tags. If a template is entered, Personal Tags in the Profile appear as links. Clicking a tag forwards the user to a User Search page that displays search results for the matching tag.
Determines the type of window that appears when you click a link in the server control.
The numeric ID of the taxonomya content-level categorization system that uses one-to-many relationships (such as Ronald Reagan is to Actor, Governor, and President) to create a scalable organization of content. A taxonomy lets your site visitors navigate content independent of the folder structure. that is available to users. A user editing a profile can select which categories to associate with their profiles. See Also: Organizing Content with Taxonomies
Lets a developer specify a server control’s tag.
Use UserSearch server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.s to let site visitors search for users and membership users of your website.
See Also: Using the Search Server Controls
To provide search capabilities to your website content, insert all 3 controls onto an .aspx template. Because the search functions are managed by separate controls, you can place a search field and button in a one section of a page, and the results in another.
Also, unless you want to use the default paging properties (which show only 10 results), insert an EktronUI Pager control on the page to manage the paging of the search results.
Prerequisite
Search server controls were added to the Visual Studio Toolbox. See Adding Search Server Controls to Visual Studio.
If you drag and drop controls from the Visual Studio Toolbox, the necessary register
statements are copied from the web.config
file and added to the page.
<add tagPrefix="ektron" namespace="Ektron.Cms.Framework.UI.Controls" assembly="Ektron.Cms.Framework.UI.Controls, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" /> <add tagPrefix="ektronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" assembly="Ektron.Cms.Framework.UI.Controls.EktronUI, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" />
If you copy and paste the sample code, add the following register
statement for templated controls:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
For Ektron UI controls, use this register
statement:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI"
namespace="Ektron.Cms.Framework.UI.Controls.EktronUI"
tagprefix="ektronUI" %>
The tag prefix can be anything as long as it matches the control's prefix.
Here is a basic template showing the 3 controls.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplatedControl.aspx.cs" Inherits="TemplatedControl" ValidateRequest="false" %><%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" tagprefix="ektronUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ektron:UserSearchInputView ID="UserSearchInputView1" ControllerID="SearchController1" runat="server"> </ektron:UserSearchInputView> <ektron:UserSearchController ID="SearchController1" runat="server" /> <ektron:UserSearchResultsView ControllerID="SearchController1" ID="UserSearchResultsView1" runat="server"> </ektron:UserSearchResultsView> <ektronUI:Pager ID="pager1" runat="server" PageableControlID="SiteSearchController1" ResultsPerPage="10"> </ektronUI:Pager> </div> </form> </body> </html>
The UserSearchInputView server control lets site visitors search for Ektron users and members. See Also: Membership Users and Groups and Managing Users and User Groups
Site visitors can find users using any of these properties:
Site visitors can use the wildcard character (*) to find all users that fit a certain pattern. For example, to find all users with any property that begins with adm, enter adm*.
The following image shows the default template's search options.
A site visitor's query string is collected by the UserSearchInputView server control and passed to the XMLSearchController which, in turn, sends results to the UserSearchResultsView.
You can place the UserSearchInputView server control anywhere on a page—it does not need to be next to its results control. Also, you can place more than one UserSearchInputView control on a page.
ControllerID—the ID of the SearchController that provides the data.
<ektron:Serena ID="UserSearchInputView1" ControllerID="SearchController1" runat="server"> </ektron:UserSearchInputView>
This process is the same as Customizing the SiteSearchInputView Control. Refer to UserSearch Model Properties to learn which properties may be referenced.
The UserSearchController server control takes input from a UserSearchInputView control, and returns results to a UserSearchResultsView control. It provides an interface to the search API, thereby giving SearchView controls access to search data.
You can modify Ektron's UserSearchController or write your own.
The UserSearchController executes a search using a query string from the UserSearchInputView control's Text
property, as specified in the code-behind's Onclick
event.
Unlike the other search controls, UserSearchController has no UI functionality. So, there is no corresponding .ascx file.
Use only one UserSearchController per page.
Properties
<ektron:SiteSearchController ID="SiteSearchController1" runat="server" />
The UserSearchResultsView server control displays the results of a user and member search. The control gets its results from a XMLSearchController.
The following image shows the UserSearchInputView control's filters, as well as search results that use the UserSearchResultsView control's default template.
To enable the display of user search results, use the UserSearchResultsView control's controllerID
property to connect it to a SearchController. See Also: XMLSearchController
For the controllerID property value, enter the ID of the UserSearchController that takes input from UserSearchInputView control and returns results to this control. For example:
<CMS:UserSearchResultsView ID="UserSearchView1" ControllerID="UserSearchController1" runat="server"> </CMS:UserSearchResultsView> <CMS:UserSearchController ID="UserSearchController1" runat="server" />
To learn about displaying search results, see Displaying Search Results. To see an example of displaying user search results, see siteroot\workarea\FrameworkUI\Templates\Search\UserSearchResultsView.ascx.
IMPORTANT: The result count is only an estimate. The count becomes more accurate you get closer to the final page.
The WebCalendar server control displays Ektron calendars. See Also: Working with Calendars
NOTE: On a PageBuilder page, use the Calendar widget to insert a calendar.
The following code example shows the WebCalendar server control.
< cms : WebCalendar ID="webcalendar" runat ="server" DynamicParameter="calendar_id" DisplayType ="Day"> < DataSource > <cms:CalendarDataSource defaultId="724"sourceType="SystemCalendar"/> </DataSource> </cms:WebCalendar>
The following are Ektron-specific server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified. properties. You can find information about native .NET properties such as font, height, width and border style in Visual Studio® help.
Determines whether users can add or edit calendar events. Default is True.
Specify the default calendar display. The default is Month, which means that the month view appears on the Web page. The site visitor can change the view.
Specify the path to the code that controls how events are displayed. Default is blank. See Also: Customizing the Web Calendar Tooltip
Determines which time periods appear on the calendar. Choices are All, Day, Month, Week. Default is All.
By default, Fill occurs during the Page_Init event. Set to false if you want to postpone the fill-action until later. In this case, Fill is automatically called during the Page Render event. You might do this if you need to set or change a property on the control in code-behind and have it render with your changes shown.
To make this calendar dynamic, select calendar_id. When you do, this server control uses the calendar passed as a URL parameter. To exclude this function, choose None- Use Default. Only Calendars with sourcetype=SystemCalendar
may be used in the querystring for this value. For example, where DyanamicParameter=”calendar_id”
, the URL may read http://mysite.com/calendar.aspx?calendar_id=”55”
. In this case, calendar 55 must be of the SystemCalendar type.
Hides or displays the output of the control in design time and run time.
Set a language for viewing content; shows results in design-time (in Visual Studio) and at run-time (in a browser).
Suppresses the output of the span/div tags around the control.
Lets a developer specify a server control’s tag.
The following list shows properties set inside the <DataSource> <CalendarDataSource>
tag.
The background color of the calendar event. If you set this value to AutoSelect
, the next available color in the list is chosen automatically.
The Id of the SystemCalendar, GroupCalendar or UserCalendar to display on the Web page. For more information about using this property, see Combining Web Calendars (Mashups).
The parameter that may be in the query string to mash-up additional calendars. This can be any Calendar SourceType. For example, if the value is set to uid, then the querystring can be:
.../calendar.aspx?calendar_id=”55”&uid=”440”
For more information about using this property, see Combining Web Calendars (Mashups).
Choices are SystemCalendar, GroupCalendar, UserCalendar. See Also: Combining Web Calendars (Mashups)
NOTE: The CategoryID property set inside the <DataSource> <CategoryID>
tag is used to identify taxonomy categories to filter calendar events. See Also: Server Control Reference
XMLSearch server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified.s display a Smart Form's fields on a search page. A site visitor can use the fields to search for Smart Forman Ektron-defined Web page that contains XML (hidden from the end user) to display content, and receive, verify, and save user input. content. See Also: Using the Search Server Controls
IMPORTANT: Only fields marked Indexed appear on the form (see image below).
Also, you cannot search a Smart Form field if its entire xpath exceeds 64 characters. See Also: Specifying Which XML Elements are Indexed
To provide search capabilities to your website content, insert all 3 controls onto an .aspx template. Because the search functions are managed by separate controls, you can place a search field and button in a one section of a page, and the results in another.
Also, unless you want to use the default paging properties (which show only 10 results), insert an EktronUI Pager control on the page to manage the paging of the search results.
Prerequisite
Search server controls were added to the Visual Studio Toolbox. See Adding Search Server Controls to Visual Studio.
If you drag and drop controls from the Visual Studio Toolbox, the necessary register
statements are copied from the web.config
file and added to the page.
<add tagPrefix="ektron" namespace="Ektron.Cms.Framework.UI.Controls" assembly="Ektron.Cms.Framework.UI.Controls, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" /> <add tagPrefix="ektronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" assembly="Ektron.Cms.Framework.UI.Controls.EktronUI, Version=8.5.0.356, Culture=neutral, PublicKeyToken=559a2c4fa21e63be" />
If you copy and paste the sample code, add the following register
statement for templated controls:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
For Ektron UI controls, use this register
statement:
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI"
namespace="Ektron.Cms.Framework.UI.Controls.EktronUI"
tagprefix="ektronUI" %>
The tag prefix can be anything as long as it matches the control's prefix.
Here is a basic template showing the 3 controls.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplatedControl.aspx.cs" Inherits="TemplatedControl" ValidateRequest="false" %><%@ Register assembly="Ektron.Cms.Framework.UI.Controls" namespace="Ektron.Cms.Framework.UI.Controls" tagprefix="ektron" %>
<%@ Register assembly="Ektron.Cms.Framework.UI.Controls.EktronUI" namespace="Ektron.Cms.Framework.UI.Controls.EktronUI" tagprefix="ektronUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <ektron:XmlSearchInputView ID="XmlSearchInputView1" ControllerID="XmlSearchController1" XmlConfigId="9" runat="server"> </ektron:XmlSearchInputView> <ektron:XmlSearchController ID="XmlSearchController1" runat="server" /> <ektron:XmlSearchResultsView ControllerID="XmlSearchController1" ID="XmlSearchResultsView1" runat="server"> </ektron:XmlSearchResultsView> <ektronUI:Pager ID="pager1" runat="server" PageableControlID="XmlSearchController1" ResultsPerPage="10"> </ektronUI:Pager> </div> </form> </body> </html>
The XMLSearchController server control takes input from a XMLSearchInputView control, and returns results to a XMLSearchResultsView control. It provides an interface to the search API, thereby giving SearchView controls access to search data.
You can modify Ektron's XMLSearchController or write your own.
The XMLSearchController executes a search using a query string from the XMLSearchInputView control's Text
property, as specified in the code-behind's Onclick
event.
Unlike the other search controls, XMLSearchController has no UI functionality. So, there is no corresponding .ascx file.
Use only one XMLSearchController per page.
Properties
<ektron:SiteSearchController ID="SiteSearchController1" runat="server" />
The XMLSearchInputView server control displays a Smart Form's fields and lets users search on them.
IMPORTANT: Only fields marked Indexed appear on the form (see image below).
Also, you cannot search a Smart Form field if its entire xpath exceeds 64 characters. See Also: Specifying Which XML Elements are Indexed
Because XML fields have a type (for example, string, date, choice, integer, boolean), the template is dynamic and connected to a Smart Form’s data structure.
The Search Model gets bound to (that is, determines) the view. When viewing the Search Model in the object browser, you see a property named Fields, which is a list of each XML Smart Form field.
To view the Search Model for XML Smart Forms, insert XMLField into the Object Browser. The class consists of a...
XML Smart Form search controls use these fields to retrieve and display Smart Form content.
As explained in Using Data Field Types, there are many types of Smart Form fields. Each type has a subclass, which has a corresponding user control, an .ascx template file. User controls are located in C:\Program Files(x86)\Ektron\CMS400vversion\workarea\FrameworkUI\Templates\Search\Fields
. As explained in Modifying the Default Markup, to change a control's default markup, modify its template.
Smart Form field controls receive an XML field and cast it into the specified field type. For example, the Object Browser shows that the ChoiceField template (ChoiceField.ascx
) contains a
The ChoiceField template receives an XML field and casts it into a choice field.
Prerequisite
You have an understanding of the structure of XML field types, as explained in The Search Model for XML Smart Forms .
<ektron:XmlSearchInputView ID=”xmlSearchView” runat=”server” ControllerID=”SearchController” XMLConfigId=”10”> <ItemTemplate> <asp:ListView ID=”fields” DataSource=’<%# Eval(“Fields”) %>’ runat=”server”>
NOTE: The DataSource is the field's array returned from the SearchModel.
<ItemTemplate>
tags. <ektron:XmlSearchInputView ID=”xmlSearchView” runat=”server” ControllerID=”SearchController” XMLConfigId=”10”> <ItemTemplate> <asp:ListView ID=”fields” DataSource=’<%# Eval(“Fields”) %>’ runat=”server”> </ItemTemplate>
The XMLSearchField control has a Field
property, which maps the control to the correct template in the \workarea\FrameworkUI\Templates\Search\Fields
folder. For example, a boolean Smart Form field is mapped to booleanfield.ascx
.
<ektron:XmlSearchInputView ID=”xmlSearchView” runat=”server” ControllerID=”SearchController” XMLConfigId=”10”> <ItemTemplate> <asp:ListView ID=”fields” DataSource=’<%# Eval(“Fields”) %>’ runat=”server”> </ItemTemplate> <ItemTemplate> <ektron:XmlSearchField ID="uxField" runat="server" Field='<%# Container.DataItem %>'> </ektron:XmlSearchField> </ItemTemplate>
The XMLSearchField control lets you manage the display of XML Smart Form fields displayed in the ListView. So, you can modify the search input form with effects like the <ItemSeparatorTemplate>
, which lets you place text, images, and so on, between each field.
You can customize the behavior of an XML Smart Form field on the input form.
This is a complex procedure because, when a user clicks Search, your template must retrieve the modified fields, pass that data to the containing template which, in turn, passes the modified fields to the Search APIApplication Programming Interface. Use 2-way data binding to perform this procedure.
Prerequisite
You followed the steps in Creating your own XML Search Template.
Field='<%# Container.DataItem %>'>
.<TextTemplate>
tags. Whatever you enter between the tags replaces the text template on the Smart Form input form.For example, to replace a text template field with a text box, use the following syntax.
<TextTemplate> <asp:TextBox ID="aspValue" Text='<%# Bind("Value") %>' runat="server" </asp:TextBox></TextTemplate>
Notice that this example uses Bind
, which is a two-way statement. If the user changes the value in the text box, then posts back, the Bind command pushes the data into the template. The child template then takes the modified data from the template and pushes it back to the data object.