Ektron CMS400.Net Reference

>>Building PageBuilder Pages > Advanced PageBuilder Topics > Customizing the PageBuilder Menu Control

Customizing the PageBuilder Menu Control

This section explains how to customize the PageBuilder Menu user control’s behavior.

Determining the Ektron CMS400.NET Folder to Which Pages are Saved

How a Page’s Default Folder is Set

By default, when a site user creates a new PageBuilder page from an existing one, it is saved to the same Ektron CMS400.NET folder. For example, consider this folder/content structure.

Root (folder id 0)

Products (folder id 20)

PageLayout: “Omaha Mailorder Steaks” (content id 35)

Services (folder id 30)

If you are viewing content id 35 and click New Page or Copy/Save as, the new page is saved to that content’s folder (Products, folder id= 20).

Note: When you create a new page layout from the Workarea, you first select a folder then begin creating the page layout.

Overriding the Default Folder

Use the PageBuilder control’s FolderID property to override the default and specify an Ektron CMS400.NET folder to which new pages are saved. Here is an example of that property:

<ucPageBuilder:PageHost ID="ucPageHost1" FolderID="25" runat="server" />

When a user is working on a page that hosts this PageBuilder control, and he saves a new page, it is saved to folder id 25.

Changing the Page’s Cache Interval

Use the CacheInterval property to cache a page and its Widgets that represent Ektron CMS400.NET server controls, such as a Collection Widget.

This property sets the amount of time, in seconds, that data is cached. The default is 0 (zero).

<ucPageBuilder:PageHost ID="ucPageHost1" CacheInterval="25" runat="server" />

(continued in Customizing the Dropzone User Control)


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.