Home

Ektron CMS400.NET Developer Reference Manual

image

Contents

1. Value Description Web Page View DateModified Displays the date the content was tastmoaniea RC Sportster The RC Sportster s design nid level RC racer currently on the market rferdoce 9 27 2002 2 44 44 PM growing host the 3rd bamar RC conference in Atlz DateCreated Displays the date when the comentwas Uist Genet i level RC racer currently on the mark st the 3rd a RC nr in A Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 140 ListSummary Server Control Value Description Web Page View LastEditorFname Displays the first name of the user who last edited the content block nid level RC racer currenth host the 3rd annual RC cc LastEditorLnames Displays the last name of the user who last edited the content block cl KU Sportster ine KL gt p d mid level RC racer currentl st growiecougas in the R zonfere to host the 3rd annual RC ct List Summary Example Below is an example of the ListSummary server control properties E Ektron Authenticated False ContentParameter ContentType Content Direction Ascending DisplayXslt ecmNavigation FolderID 14 H GetHtml False Hide False Language 0 MaxResults 0 OrderKey Title Random False Recursive False WrapTag Span The example has the following properties e Content Type The results are a list of content blocks e Direction The results are displayed in a
2. QueryString Call Return value Request QueryString id 1 Request QueryString LangType 1036 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 420 Content Block Function XML Content Block Here is an example of displaying an XML content block Note that you specify a content block and an XSLT which determines how the content block is displayed lt tr gt lt td gt lt ecmContentBlockEx 13 1 gt lt td gt lt tr gt This example displays the content block ID 13 using XSLT1 as the display XSLT The Function s Arguments The ecmContentBlockEx takes three arguments The first argument identifies the content block to display The second one is optional and if used specifies an external XSLT file Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 421 Content Block Function If the second argument does not exist the third argument specifies an XSLT identified in the Edit Smart Form screen The following table provides additional detail about the second and third arguments To use this display XSLT Enter this for Enter this for argument 2 argument 3 The default XSLT specified in the Edit Smart Form screen none illustrated below Note that in this example the XSLT Packaged option is the default XSLT since it is selected Edit Smart Form Configuration Ektron Medical Book St Title n
3. td inactiveDay The days with no associated blog posts Affects the Blog and BlogCalendar server controls The following example shows the days with no associated blog posts in red May 2006 Sun Mon Tue Wed Thu Fri Sat td activeDay The days with an associated blog post Affects the Blog and BlogCalendar server controls The following example shows the days with an associated blog post in red May 2006 Sun Mon Tue Wed Thu Fri Sat 1 2 2 4 53 amp J 8 amp 8 2 WU RD B 14 15 16 17 18 19 2 28 29 30 31 Blogroll Styles Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 613 Style Class Description div blogSidebar h4 The title area for the Blogroll Affects the Blog and BlogRoll server controls The following example shows the title area for the Blogroll in red Bill s Blog Note Changing this class changes the title area for Categories and Recent Posts div blogRoll ul The link area for the Blogroll Affects the Blog and BlogRoll server controls The following example shows the link area for the Blogroll in red Blogroll blogrolllink The Blogroll link Affects the Blog and Blogroll server controls The following example shows the Blogroll link in red Blogroll Bill s Blog Blog Categories Styles div blogSidebar h4 The title area for the blog s Categories Affects the Blog and BlogCategories server co
4. gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 494 DHTML Menus DHTML Menus Ektron CMS400 NET s Menu feature lets users create and maintain a dropdown menu system for your Web site The Menu feature lets you display menu options that link to content blocks library assets external hyperlinks and submenus To learn more about menus please refer to the Menu Feature chapter of the Ektron CMS400 NET User Manual Additional Documentation in Ektron Knowledge Base This chapter explains how to implement standard menus that ship with Ektron CMS400 NET Ektron s Web site also provides Knowledge Base articles that explain how to extend the standard menu features Displaying a Menu on a Web Page GenerateMenu and DropMenu IMPORTANT The menu functions described below are only one example of how to implement menus The scripts reside in the Application API file You can implement your own menu system using JavaScript Use the GenerateNextGenMenu and DropNextGenMenu custom functions to display a DHTML menu on a Web page Place GenerateNextGenMenu once on the page to provide an infrastructure for DropNext GenMenu Then place DropNextGenMenu as needed to implement individual menus Follow these steps to display a menu on a Web template 1 Place the following code directly after the page s lt body gt tag lt ecmDHTML_GenerateNextGenMenu menu id number
5. Display Xslt Determines how the information on the page is String displayed None databind only ecmNavigation lists the title of every RSS feed item See Also Example of ecmNavigation Display on page 85 ecmTeaser lists a title and a description of every RSS feed item See Also Example of ecmTeaser Display on page 85 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page Hide Used to hide an RSS Aggregator server control in boolean design time and run time True Hide Metadata server control False Show Metadata server control Language Set a language for viewing the RssAggregator The Integer language property shows results in design time in Visual Studio and at run time in a browser MaxResults The Maximum number of items from an RSS feed that Integer are returned O unlimited URL The RSS feed path for the server control String For example http msdn microsoft com rss xml WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 180 RssAggregator Server Control Using the RssAggregator
6. he 3 Drag a server control and drop it into the desired location on the page 4 As desired modify the control s properties using the Properties area of Visual Studio 2005 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 13 g Solution Explorer Class View al Search Properties A x FormBlock1 ServerControlLibrary FormBlock gt J4 E CssClass Font ForeColor L E Behavior Accesskey Enabled True EnableViewState True TabIndex 0 ToolTip visible True E Data DataBindings E Ektron Authenticated False DefaultFormID 0 v DefaultFormID The default ID of the Form Block to be displayed For a description of server control properties see List of Server Controls on page 39 ServerControlWS asmx Best Practice For improved security Ektron recommends renaming or removing the Web services file when you move it to your production server After installation this file is named ServerControlWS asmx and resides in the cms400demo Workarea folder in your Web root ServerControlWS asmx is the Web service that lets the server controls talk to Ektron CMS400 NET The path is coded in the web config file This is how it appears lt Web Service URL for Server Controls design time gt lt add key WSPath value http localhost CMS400Demo Workarea ServerControlWS asmx gt You will need to edit this lin
7. 4 Save the Web form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 66 BreadCrumb Server Control 5 Repeat steps one through four for all Web forms to be included in the breadcrumb trail 6 Open a browser View a Web page with a BreadCrumb server control in it Navigate to the rest of the Web pages that contain BreadCrumb server controls 9 As you move around the pages are added to the breadcrumb trail CMS400 Navigation Microsoft Internet Explore Bf File Edit View Favorites Tools Help id Address g http flocalhost CMS400Example Dev aspx x PR gt FAQ gt Search gt Meta gt Dev CMs4Q00 net nash 2 2h Fiz PAs 42m aa Making a Content Block s Title Appear in the Breadcrumb Trail By adding a line or two of code the breadcrumb trail can display the title of a content block 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 Only one content block per Web form can be used with the breadcrumb If you have multiple content blocks on a page select the one that describes the overall page best Steps to Use a Content Block s Title as a Breadcrumb Drag and drop a ContentBlock server control on a Web form Choose a DefaultContentID for the content block Drag and drop a BreadCrumb server conirol on the same form Remov
8. Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 20 J Private Sub Page Load ByVal sender As System Object ByVal e Dim MyColl As New Collection MyColl DefaultCollectionID 1 MyColl Random True MyColl des a End Sub tase DefaultCollectionID End Class Public Property DefaultCollectionID As Integer Dispose eS DynamicParameter eS Enabled eS EnableViewState w eS Error Fill FindControl eS Font ES Forecolor The intellisense box displays all properties that can be applied For a description of Ektron s standard server control properties see List of Server Controls on page 39 To learn about native VS 2005 properties see its documentation The property s tooltip text indicates its type In the above example you can see that the DefaultCollection D s type is integer For more information about accessing Ektron CMS400 NET object properties see Customizing the Server Control in the Code Behind on page 30 Mutual Server Control Properties in Code Behind NOTE There are several read only properties that can be called in the code behind and used by every server control The list below explains these properties The properties do not display values within Visual Studio NET during design time Instead they only display values at run time which are dependent on the user s login status Property Value Data Type Is
9. EndDate Metalnfo gt This function is basically the same as the Add Content function in ASP See Add Content on page 424 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below Add Content Example The following is an example of the add content function in a template lt tr gt lt td gt lt CFModule template request ecm AppPath ecmAddContent cfm AddContent UserName admin Password admin Domain content_title Content Title content_comment Comment ContentHTML This is the lt b gt body lt b gt of the content SummaryHTML This is the lt i gt summary lt i gt for the content ContentLanguage 1033 FolderID 0 GoLive EndDate MetaInfo gt lt td gt EA Random Content Function The random content function is used to randomly display the content of a content block that belongs to a specified collection Below is the format for the random content function lt CFMODULE template request ecm AppPath ecmShowRandomContent cfm Ip XSLT Override This function is basically the same as the Random Content function in ASP See Random Content on page 476 for details Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 505 Random Summary Function Slmilar to the random content function the random summary function c
10. Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 283 5 Click insert A Blog Post icon appears and indicates the Blog Post s location on the template _ s2 Code La Design Gf Tile Untitled Page z lt body gt lt form id formi runat server gt lt cms BlogPost id BlogPost1 DefaultContentID 370 runat server gt lt cms BlogPost gt lt form gt Shown below is an example of the code that is inserted Platform Code View NET lt cms BlogPost id BlogPost1 DefaultContentID 370 runat server gt lt cms BlogPost gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extensi
11. Used to hide a calendar in design time and run time Checked Hide calendar C Unchecked Show calendar Note If Hide and Visible are both checked the property is hidden Visible Used in ASP NET only Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Used in ASP NET only Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Used in ASP NET only Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 301 5 When completed click insert A graphic defines where the calendar appears on your template Platform Code View Shown below is an example of the code that is inserted NET lt cms Calendar id Calendarl DefaultCalendarID 1 runat server gt lt cms Calendar gt ASP lt EvtCalendar 1 gt ColdFusion lt cfmodule Calendar_id 1 template req
12. Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 115 DesignTimeDiagnostic Server Control DesignTimeDiagnostic Server Control Properties The DesignTimeDiagnostic server control has no definable ektron properties Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 116 FormBlock Server Control FormBlock Server Control The FormBlock server control displays a content block associated with a form 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 the Ektron CMS400 NET Administrator manual Managing Library Assets gt Updating Default Template for Multiple Quicklinks When added to a template and visited the form content block might look like this You can change the display to suit your needs by modifying its properties Absence Request Form Name E mail Address Position Department Select Department gt Reason For C Floating Holiday Absence Vacation Sick Leave C FMLA Other f ad mm ddiyyyy to mmiddiyyyy Total Days Absent With Pay C Without Pay Comments a This subsection contains the following topics e FormBlock Server Control Properties on page 118 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 117
13. IncludeContentInfo If true this will include the information about the content Boolean in fields posted with a form post This fields are defined in the Introduction of this section Set the value to false if the page will maintain these values or the page is just using the editor to edit general formatted text If the information must be posted but not shown to the end user then define the class ControIName _TitleLabel as having no display or set the ShowTitle property to false Language Specifies the ID of the language to use for the content to Integer load This value must match a value that exists in the CMS database ShowCMS Toolbar Controls whether the CMS toolbar is displayed in the Boolean editor s toolbar If this value is true then commands containing the CMS functionality are displayed in the editor s toolbar The commands are for check in publish and edit cancellation See Also ShowCMSToolbar on page 127 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 126 HTMLEditor Server Control Property Value Data Type StyleSheet Assigns a single sheet to the edited content String Test The HTML text being edited String ToolbarLevel This specifies the level of the toolbar feature set offered String to the user This defines the amount of functionality offered to the user See Also ToolbarLevel on page 128 ToolbarResetCall Thi
14. Title Contact Ektron English U S Content Summary Metadata Schedule Comment Required fields 500 max Separator Character Contact Ektron 486 characters left 500 max Separator Character l email support questions ektron contact The list can display the information as a list of hyperlinks You can choose based on properties you set if you would like to have a summary displayed You can also choose how to order the display For information on adding Metadata to a content block see the Users Manual gt Adding or Editing Metadata This subsection contains the following topics e MetaData Server Control vs MetaDataList Server Control on page 171 e MetaDataList Server Control Properties on page 171 e Retrieving the XML Structure of a MetadataList on page 175 MetaData Server Control vs MetaDataList Server Control With the MetaData server control you add metadata from content blocks to your Web page With the MetaDataList server control you create a list of content blocks to display on your site based on the Metadata in each content block For Information on the MetaData server control see MetaData Server Control on page 167 MetaDataList Server Control Properties The MetaDataList server control properties are described in this table Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 171 Meta
15. lt ecmContentBlockEX ID XSLT Override gt NOTE As an alternative you can use the multipurpose function which can display either a content block or a content block associated with a form For more information see MultiPurpose Function on page 487 The table below explains the attributes of the ecmContentBlock function Attribute Description Required ID ID number assigned of the content block that will appear Yes The table below explains the attributes of the ecmContentBlockEX function Attribute Description Required ID ID number assigned of the content block that will appear Yes XSLT File name and path to a valid XSLT to transform the XML No content See Also The Function s Arguments on page 421 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 416 Content Block Function Attribute Description Required Override If no XSLT is specified then enter 1 to use XSLT1 2 for XSLT2 No or 3 for XSLT3 See Also The Function s Arguments on page 421 In normal view these tags retrieve the content block from the database and displays it in the template Welcome to RC International Microsoft Internet Explorer File Edit View Favorites Tools Om O A BG pan Seem Gum OE a m ICTR Address http 127 0 0 1 cmssamplefindex asp RG international Home Products Support News Careers
16. Author s First Name Tem Last Name Neito First Name Harvey Last Name Deitel Price 87 40 Paperback Pub date Saturday December 01 2001 Description Visual Basic NET How to Program Second Edition is an awesome resource for the beginning VB NET developer who is serious about the craft of programming In 1 500 pages this book covers an incredible amount of territory from the evolution of programming languages and web development all the way to advanced data structures and web services Authors Harvey and Paul Deitel have long been world class programming trainers they ve taught at IBM Sun NASA Lucent and Compaq to name just a few famous clients In their seminars and books they ve evolved what they call the Live Code approach to programming instruction Sounds high falutin but all it means is this they introduce new concepts in the context of real working code and they don t just explain what the code does they also show you with a full color screen capture There s no shortage of code to illustrate in Visual Basic NET How to Program some 21 000 lines in nearly 200 programs all fully color coded and provided on CD ROM Turn Off Caching In Netscape Navigator and Mozilla Firefox When using Netscape Navigator or Mozilla Firefox to perform an index search some parameters become cached To prevent caching in Netscape Navigator and Mozilla Firefox add the following line to the Page Load Event in code b
17. Collection Function on page 465 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below the ecmNavigation Display Function The following is an example of a collection function being used as a navigation menu in the Ektron CMS400 NET sample Web site lt CFMODULE id 1 displayFunction ecmNavigation template request ecm AppPath ecmCollection cfm gt lt cfparam name Attributes lt cfparam name Attributes lt cfparam name Attributes lt cfparam name Attributes endStyle default gt lt cfparam name Attributes lt cfset LocalError gt lt cfobject class CMS400 NETContentBrv2 CMS400 NETContent Action Create name cmsObj gt lt cfset cNavs As stated earlier the format of the collection on the Web page depends on the displayFunction that is used Below is the source code for the display function ecmNavigation nId default gt href default gt target default gt startStyle default gt cmsObj GetEcmCollectionItems request ecm AppConfStr Attributes nId 0 request ecm cmsPreview r equest ecm user_id request ecm site_id LocalError gt lt cfif cNavs Count gt lt cfset nString gt lt cfloop collection cNavs Item nav gt lt cfset nString nString amp lt a href gt lt cfif len Attributes href gt lt cfif FindNoCase Attributes hrefs gt
18. DateTime DisplayXslt Specify an external XSLT file See Also The OverrideXslt and DisplayXslt Properties on page 96 String Hide Used to hide language select dropdown box and label in design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Boolean Language Set a language for the Language Select Box The language property shows results in design time in Visual Studio and at run time in a browser Integer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 47 Blog Server Controls Property Value Data Type MaxResults The maximum number of entries displayed 0 zero Integer the default set in the Workarea blog property Post Visible The default value is 0 zero ShowHeader Shows the title and tagline when set to True Boolean The default is True True show title and tagline False do not show header and tagline SuppressWrapperTags Suppresses the output of the span div tags around the Boolean control The default is False True Suppress wrap tags False Allow wrap tags BlogPost Server Control The BlogPost server control allows you to display an individual blog post on a page There are two ways this server control displays a blog post First if a user is logged in as a CMS400 NET user or a Membership user the control displays th
19. Dim MyColl as New Collection MyColl DefaultCollectionID 4 MyColl Page Page MyColl Random True This line sets the Random property to true See Also Random on page 139 Step 4 Call the Fill Method Because there is no render event when using objects as components not as controls use the Fill method to fill an object s properties on the page An example is below Dim MyColl as New Collection MyColl DefaultCollectionID 4 MyColl Page Page MyColl Random True MyColl Fill Step 5 Use text Property to Display the Control Finally use the text property to determine what appears on the Web page For example to display the first item in a collection use this syntax NOTE Before adding this line you need to drag and drop a label on your Web form Dim MyColl as New Collection MyColl DefaultCollectionID 4 MyColl Page Page MyColl Random True MyColl Fill Labell Text myColl EkItems 0 Title To display all items in a collection use this syntax Dim myColl As New Ektron Cms Controls Collection Dim ekitem As New Ektron Cms Common ContentBase myColl DefaultCollectionID 2 myColl Page Page myColl Fill Labell Text lt ul gt For Each ekitem In myColl EkItems Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 19 Labell Text amp lt li gt lt a href amp ekitem QuickLink amp n gt n ekitem Title amp lt a gt Next Labell Text
20. Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 581 Syndicating via NET has optional parameters that let you send the RSS to a stream other than HttpResponse You can add code to serialize a different object such as an RSS 1 0 data class or to run an XSLT on the serialized XML document before returning it as the HTTP response Example Dim objRSSConverter As New CollectionToRSS20 Request Response Dim objRSS20 As rss RSS20 rss objRSSConverter ConvertToRSS objResult objResult CollectionTitle objResult CollectionDescription objRSS20 channel language en us objRSSConverter Serialize Creating Your Own aspx List Summary Page To create your own list summary page copy a list summary object to an RSS 2 0 object and serialize it To accomplish this use these methods ConvertToRSS ByVal result As CMS400WS ListSummaryResult ByVal title As String ByVal description As String As RSS20 rss Serialize Optional ByVal stream As System I0O Stream Nothing Optional ByVal o As Object Nothing Example Dim objRSSConverter As New ListSummaryToRSS20 Request Response objRSSConverter ConvertToRSS objResult News The latest news objRSSConverter Serialize Remarks The ConvertToRSS method returns the RSS 2 0 object so that you can fill in or modify additional fields as desired before calling Serialize The Serialize method has optional parameters that let you send the RSS to a stream oth
21. Hyperlinks Search Text All the words O Any of the words Exact Phrase C Match Partial Words You can add a legend to the fieldset to describe its content For example by adding Content Types to the ContentFieldsetLegend property you create a legend for the fieldset around the different types of content Content Types Content V Forms V DMS Assets MImages M Files Hyperlinks Search Text All the words O Any of the words O Exact Phrase CI Match Partial Words Retrieving the XML Structure of a Search Retrieving the XML structure of XML content provides greater control over developing XSLs The following is an example of how to retrieve the XML structure Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 213 Search Server Control Open a new Web form Drag and drop a Search server control onto it 1 2 3 Set the FolderlD property 4 Drag and drop a Textbox on the Web form 5 Set the TextMode property to MultiLine NOTE It is also recommended that you set the width of the text box to at least 400px 6 On the code behind page add the following line Textboxl Text Search1l XmlDoc InnerxXml 7 Build the project 8 View the Web form in a browser 9 Search for something 10 When the search returns any items the XML structure of those items appear in the textbox Displaying Search Results on a Separate Page The follow
22. Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type SiteLanguage Sets the site language Runs through the IsValid String function to verify that the language is an active language in the system SiteLanguagelD Numeric value of the site language This is the property Integer you will use if you are using code behind to set the sites language ID Example 1036 French For a list of supported languages see The Administrator Manual gt Appendix A List of Supported Languages Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 130 LanguageAP Server Control Code Behind Only Properties The following is a list of LanguageAPI specific properties that can only be used programmatically Property Value Data Type DefaultLanguage Read only What the default language of the site is set String to For example the demo site is English Standard DefaultLanguagelD Read only Returns the value that is the default Integer GetLanguage 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 Integer Argument GetLanguagelD This method returns an integer
23. String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 148 Membership Server Control Property Value Data Type ResetButtonlmg Lets you add an image in place of the text on the String reset button Enter a path to the image For example http www ektron com buttons resetbutton gif If the image is located in the site root you do not need to enter the full path Only enter the subfolder path and image name For example buttons resetbutton gif ResetButtonText Text that appears on the reset button The default String is Reset If you use a reset button image you do not see this text ShowExtended Decide if the Custom User Properties are available String when using this control The default setting is True True Show Custom User Properties False Hide Custom User Properties Note For more information on Custom User Properties see the Administration Manual section Custom User Properties UserExistsMessage The message that appears when a membership String user already exists The default message is Username email already exists UserSuccessMessage The message that appears when a membership String user successfully registers The default message is You have registered successfully UserUpdateSucessMessage The message that appears when a membership String user successfully updates their information The default message is You have successf
24. Used to display a content block summary 4 Use the following table to assist you with inserting a single summary tag Field Description Content ID e Working Offline Enter a valid content ID into the Content ID textbox e Working Online The top drop down list will be filled with a list of content fold ers that you have privileges to After choosing a content folder the bottom drop down box will be filled with a list of all the content block titles within that category When a title is selected the content ID textbox will be filled with that content block s id number Show Summary If checked content summaries will be displayed Style Info Insert any inline style information which will be applied to the generated text hyperlink here Show Info Select the type of information that will be displayed next to the generated hyperlinks Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 390 5 When completed click insert A graphic to define where the single summary tag will appear on your template is inserted ST TI common Layour Test Tables Frames Forms Templates Characters Media RE3 BH BB ess SHR Q of 4 Title we c 28 lt tr gt 29 lt td gt nbsp cecm_singlesummary gt 30 lt ecmSingleSummary 1 1 DateModified gt S1 lt ecn_singlesummary gt lt td gt 32 lt tr gt 33 lt table gt RBA rrahla mi
25. _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting Dynamic Content Parameter Used in ASP NET only Checks the QueryString for this value and replaces the collection with a content block when specified Leave blank to always display the collection Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 304 Field Description Dynamic Collection Parameter Used in ASP NET only To make this collection dynamic select coll_id When you do the function uses the collection passed as a URL parameter Random Output Used in ASP NET only Displays random content within a collection None Displays all content in collection Random Teaser Displays a random content block s teaser Random Body Displays a random content block s body of seconds Cachelnterval Used in ASP NET only Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used in ASP NET onl
26. lt cms BlogRecentPosts id BlogRecentPostsi BlogID 41 lt form gt lt p gt amp nbsp lt p gt astern centPosts Shown below is an example of the code that is inserted Platform Code View NET lt cms BlogRecentPosts id BlogRecentPosts1 BlogID 41 runat server gt lt cms BlogRecentPosts gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog Roll For a description of the Blog Roll function see BlogRoll Server Control on page 54 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog Roll function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Roll Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 287 3 The Insert Ektron CMS400 NET Blog Roll box appears Ektron CMS400 BlogRoll Select the folder or fill it in above of seconds CachelInterval Hide L Visible Positioning info GridLayout Style Wrap tag Span 4
27. lt html gt lt head gt lt php ecmMetadata 1 2 Title Content Type gt rest of head Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 537 lt head gt lt body gt rest of web page document lt body gt lt html gt In the above example the ecmMetadata call is contained in the lt head gt of the HTML document since all HTML metadata is required to exist there Once the Web page is viewed the Web page source will contain the following information lt html gt lt head gt lt Title gt Welcome to Our Home Page lt Title gt lt meta name Keywords content Home page company Welcome Announce product widget gt lt meta http equiv Content Type content text html charset iso 8859 1 gt rest of head lt head gt lt body gt rest of web page document lt body gt lt html gt lt PHP ecmMetaData 1 2 gt fj metadata 1 Notepad 5 x File Edit Format Help lt Title gt cMs200 Sample web site cMs200 Login Information lt Tit le gt lt meta name Keywords content CmMs200 content Management solution business users developers benefits Ektron login gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 538 lt PHP ecmMetaData 1l title 2 keywords gt j metadata 1 Notepad File Edit Format Help lt DOCTYPE HTML PUBLIC _ w3C DTD HTML 4 0 Transit
28. Blog Server Controls Property Value Data Type WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag BlogCalendar Server Control The BlogCalendar server control allows a user to display a calendar on a Web page and associate it with a blog When a Blog calendar is associated with a blog the days that have blog posts are highlighted on the calendar You can use a BlogCalendar server control with a BlogEntries server control This gives site visitors a way to display blog posts for a given day For an example of using the BlogCalendar and BlogEntries server controls together see Using the BlogCalendar and BlogEntries Server Controls Together on page 51 BlogCalendar Server Control Properties The following table explains the properties of the BlogCalendar control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See
29. In the example above the function retrieves the content block with an id of 329 from the database to the browser Our Company Home Microsoft Internet Explorer provided by Ektron Inc File Edit View Favorites Tools Help Om O DAG Dae orm OL aL http localhost CMS400Example IntranetBasic index aspx id 329 Links 4 EktronNet Welcome Ektron Inc CMS400 Example lt Welcome to RC International Address Our Company Intrane Enhanced Dreamweaver pP y Extension Ektron Announces At the heart of Acme is our commitment to our customers Enhanced Macromedia to finding a better way to conduct business effectively and Dreamweaver Extension mission is to develop best of breed solutions that encompa to Streamline Content flexibility and ease of use without losing focus of being aff Management Strategies Jupiter Content nee In 1998 William Acme foundec Management Conference ter based an the philosophy that Dynamic Content Block The following example shows the content block tag where the id is being passed as a URL parameter Use this format with dynamic template lt tr gt lt td gt lt ecmContentBlock request QueryString id gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 419 Content Block Function When a user accesses this page it adds the content block ID number to the tag s template and
30. LIST Summary FUNCOM siccisceictninsssesnincadnenteananesesessinianniannsads 442 List S mmary Example cass css cece asec ce cece cece taecctecies 444 List Summary AtTIDUTES iicciisesscicccisaceedccsssacnnccnsutercesnnceteretixes 445 Stating PONG siaina aaa 445 FRECUISIVG siasccczedecacaseipitetcedeniinifeteccesds Sedaseeesaabenns A 445 SNOW SUMMA Y casina aaa 446 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xvi S oo ILO RE Rec er RE A E E E A rerrrser ener rs rer E 446 Order BY samen errr ere tenner ert rrecrer E tener terercerrecn rer ere errr errs 447 ASCENGING DESCONGING sessin 447 ORON I Oe cteneccseoteaen cence ceneasceannciauaaecretccausacgcatccaaentaacacananate macenanatte 448 Max INUMMDG reinii a 449 XML List Summary Function ccsseeeeeeeeeeeseeeeeeeeeeeneees 450 Archive List Summary Function ccccsssseseeeeeeeeeeeeees 455 Single Summary FUNCTION ccssesseeessecereesseesoeseensceeees 456 Single Summary Example qciac c2ccccc0cicesencecencesesonscncteseccntnetsnse 456 Single Summary Attributes ccccccesseeeeeeeeeseeeeeeeeeeeeeneeeees 457 OMEN ID nascann aa sacadzaaceisarcatacants 457 NOW SUMINA cecesccete actesincate avtsccicataactes aiae te actnrevacccanesencdececteeayiess 457 SMEM Oosa satasvictedssteceectedataues 458 SOW a OAA A E T AAA N A N tcadarnatsteeadersi uit 458 SPa Tasna a 459 RSS Summary FUNCTION o nccscccsescsecscscccncesnsnansncacsa
31. Positioning info GridLayout Style leave blank if none EmptyResultMsg Search returned zer MaxCharacters 50 TextBoxSize 0 If 0 ignore EnableAdvancedLink V EnableArchived C EnableArchivedBtn L EnableLibHyperiinks V EnableLibHyperiinksBin Y EnableLibFiles X EnableLibFilesBtn Y EnableLibImages Y EnableLibImages8tn Y EnableDMSAssets Y EnableDMSAssetsBtn V EnableForms Y EnableFormsBin Y EnableContent Y _ EnableContentBin Y EnableContentFieldset L EnableFieldset L showSearchOptions L Targettist ShowExtendedSearch Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 377 IMPORTANT When inserting a list summary using ASP CF JSP or PHP a slightly different dialog box appears Ektron CMS400 Search Tag Inserts a search mechanism on the template Insert Pans Insert Select the folder or fil itin above Recursive O Target Page Text Box Size Text Box Max Char Button Image Source Button Text Font Face Font Color Font Size Display Horizontally 4 Use the following table to assist you with inserting a search Field Description Ajax Set to true to enable Ajax searches When enabled the MaxResults property determines the maximum number of results per page and the ResultTagId property becomes active Checked Enable Ajax Sea
32. Search Calendar Welcome to RC International RC International is dedicated to the RC racing enthusiasts We eat work play and live R years RC International has become one of the leading manufactures of RC racing and flyin to the sport and the enthusiasts who play it has endeared our products to the RC comp striving to improve our affordable products and hope you will become an RC International NEW FEATURE Trinity In Line Pipe NEW PRODUCT Introducing t Trinitys new pipe and manifold are for rear exhaust RC International is proud to intri engines and are now used in both the Sportster and This new addition to the RC Inte the cheetah Both the manifold and pipe are made from new options to our customers high quality aluminum This new pipe is more durable wings and a wing span of 71 tl and will withstand a bad crash has to be seen Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 417 Content Block Function If a user is logged into Ektron CMS400 NET the content block tag displays a border around the content block and when they right click on the content a menu is provided for managing it Our Company Intranet At the heart of Acme is our commitment to our customers and our dedication to finding a better way to conduct business effectively and efficiently Our mission is to develop best of breed solutions that encompass scalability flexibility and ease of use without losing focus of bein
33. The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 337 5 When completed click Insert A graphic defines where the Folder Bread Crumb appears on your template 4 Design Title Untitled Page lol p It lt body gt gt Code A lt form id formi runat server gt lt cms FolderBreadcrumb id FolderBreadcrumb1 DefaultContentID 65 runat server gt lt cms FolderBreadcrumb gt CMS400 Folder BreadCrumb Shown below is an example of the code that is inserted Platform Code View NET lt cms FolderBreadcrumb id FolderBreadcrumb1 DefaultContentID 65 runat server gt lt cms FolderBreadcrumb gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Form For a description of the Form function see FormBlock Server Control on page 117 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a form 1 Mov
34. To pass in a standard content block pass the id value in the url parameter as illustrated below http localhost cms400demo index asp id 2 To pass in a Form content block pass the ekfrm value in the url parameter as illustrated below http localhost cms400demo index asp ekfrm 2 NOTE For more information about passing the id value as a url parameter see Dynamic Content Block on page 525 If the id value or ekfrm value does not exist a blank template appears If the url parameter is not passed in or recognized the function calls ecmContentBlock and passes the DefaultID value as the id argument If the DefaultID value is zero 0 ecemContentBlock is not called Metadata Function The metadata function is used to display the metadata for one or more content blocks in the Ektron CMS400 NET Web site Inserting this custom function allows you to generate the list of metadata that is edited by the authors and insert it in the source of the Web page Shown below is an example of what the metadata custom function looks like lt php ecmMetaData ItemList Sparel gt This function is basically the same as the Metadata function in ASP See Metadata Function on page 488 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP examples are below To include both content blocks metadata in the web page an ecmMetadata call would look like this
35. cell weekend in red sc Anti Sunday Monday Tucocey zE EERDERE May Jung gt gt Thursday frdey Sada dry Viedne rasy Bis Bis EEE hogar Game TE Bis Awe Bau BAv win BVA FEY hie BA Bw BAw Wha Ba TE Sia wala BA 3 Dw As Gis Gia Bie Sa e font weight bold e font size 9pt e background C5DAEF e border left c9bda5 1px solid e border bottom c9bda5 1px solid e font family arial mv_DateCellToday The cells where today s numerical day appears The following example shows the date cell today in red April Max gt gt Sunday Monday Tuesday Wednesday Thursday trey Satar day IWA a A a Als ETE EE SAn an wE 12 WI was E 81 A a2 Sls WA BAe Bale 7d Slag 6 B14 Sd Bas a Blas Fan 6 Alar d Daz Ala Yaz Ia Sl yE e background FFE354 e border left b38b3b 1px solid e border bottom b38b3b 1px solid e font family Arial e font size 9pt e font weight bold Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 626 Style Class Description Attributes and Default Settings mv_DateCellEmptyWeekend Note These cells appear empty when you are not logged in to Ektron CMS400 NET The weekend cells that hold the Add Event and View Event buttons The following example shows the date cell empty weekend in red seat May dag gt gt Munar Monday Tuesday Wedreadey Thuredsy frictey Sar
36. contact the sales department by sending an e mail to sales ektron com Information For general information about Ektron and its products you may send an e mail to info ektron com Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 647 Ektron Inc 5 Northern Blvd Suite 6 Amherst NH 03031 Email sales ektron com Tel 1 603 594 0249 Fax 1 603 594 0258 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 648
37. e DhtmIMenu Before caching individual content you must make sure the ek_CacheControls value 1 one This is the default This setting is found in the Web config file and allows you to control whether each server control can utilize caching Once caching is turned on use the CacheInterval property in the server control to set the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred WARNING If you change ek_CacheControls value to 0 zero you will not be able cache individual content This also causes the CacheInterval property of each server control to be set to 0 zero the next time that server control is called on your site This is done so you can globally reset caching of Web site pages to 0 zero For example if your site has five hundred Web pages and half of them use caching you can set the ek_CacheControls to 0 zero and then none of them will have caching To set up caching of individual content for any Web page follow these steps 1 Make sure the ek_CacheControls value 1 inthe Web config file 2 Add a server control that supports caching of individual content to a Web form 3 Set the CacheInterval property in the server control to the length of time for the data to be cached Page
38. er BZ impeoomei Be gt e e Custom Allows a site user to define the toolbars that appear by right clicking on the toolbar area of the screen aye Aee aAA AAA Times NewRoman T 3 i Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 129 LanguageAP Server Control LanguageAPI Server Control The LanguageAPI server control lets a developer force a particular language for a Web site You can do this simply by dropping the server control on the page and then choosing 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 This subsection contains the following topics e LanguageSelect Server Control vs LanguageAPI Server Control on page 130 e LanguageAPI Server Control Properties on page 130 e Code Behind Only Properties on page 131 LanguageSelect Server Control vs LanguageAPI Server Control The LanguageSelect server control lets users view your site in the language they choose The LanguageAPI server control on the other hand forces users to view a site in a particular language For information on LanguageSelect see LanguageSelect Server Control on page 133 LanguageAPI Server Control Properties The LanguageAPI server control properties are described in this table
39. html html html html html html lt tr gt lt td gt lt a href S info gt Item ContentLinks wn ams Sinfo gt Item ContentTitle lt a gt amp nbsp date m d Y g i s A Sinfo gt Item DateModified n lt td gt lt tr gt lt tr gt lt td gt info gt Item ContentTeaser lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt html S html lt table gt return html As you can see the ecmTeaser function is a simple ASP function that creates a table of the links that belong to the collection specified The ecmTeaser function also displays the e Content Title e Date Modified e Content Teaser Collection Variables See Collection Attributes on page 468 DisplayFunction As explained earlier the display function is a function that you create that will define how the collection data will be displayed on the Web page By using simple PHP scripting you can create your own display functions or use the three included functions XML Collection Function The XML collection function wraps XML around the parameters of a list of content that s created as a collection in the Ektron CMS400 NET Workarea Once created you can use the XML to display the collection information The ecmCollectionXML function allows you to easily define how the collection data appears on the Web page Shown here is the format of the ecmCollection function lt
40. 44 15 16 17 18 19 20 21 2 23 24 25 26 27 23 Manchester Monarchs take on 29 win the Portland Pirates 2004 2005 2006 e background eeeeee e font family Arial e font weight Bold e font size 10pt e text align center Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 638 Style Class Description Attributes and Default Settings smup_monthHeaderPrev The previous button on the month header The following example shows the month header previous back ground in red Wo May 2005 tun gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA si 2is ielslelz 8 10 11 12 13 44 15 16 17 18 19 20 21 26 27 2 Manchester Monarchs take on the Portland Pirates 2 23 24 25 29 30 31 2004 2005 2006 e background eeeeee e font family Arial e font weight Bold e font size 8pt e text align center mup_monthHeaderNext mup_eventDispBkg Note mup_eventDispBkg deals with the background layer of the event display mup_eventDisplay deals with the layer the event is displayed on The next button on the month header The following example shows the month header next background in red lt lt Apr May 2005 WE 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA mm 2ilis e elisle E 8 10 11 12 13 44 15 16 17 18 19 lolz 22 23 24 25
41. A graphic to define where the Random Content tag will appear on your template is inserted lt ecm_showrandomcontent gt lt ShowRandomContent 4 0 gt lt ecm_showrandomcontent gt Shown below is the code that will be inserted according to the platform that has been specified in the setup Platform Code View NET This function is not available as an Ektron Dreamweaver Extension for NET ASP lt ShowRandomContent 3 0 gt ColdFusion lt cfmodule id 3 displayFunction 0 template request ecm AppPath ecmShowRandomContent cfm gt JSP lt ShowRandomContent 3 0 gt PHP lt php ShowRandomContent 3 0 gt Random Summary For a description of the Random Summary function see Random Summary page 477 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function To insert a Random Summary function 1 Move the blinking cursor to the area that you want to place it on 2 From the list of Ektron CMS400 NET Content functions click on Random Summary Tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 371 3 The Insert Ektron CMS400 NET Random Summary Tag box is displayed Ektron CMS400 Random summary Tag Random summary of an item in a collection colector Select the collection to insert into the page 4 Use the following table to assis
42. Affects the Blog and BlogEntries server controls The following example shows the footer information for blog entries in red Welcome to ektron Medical I just want to take a moment out of my hectic schedule to say Thanks for visiting Dr E Posted by Application Administrator at 03 01 2006 03 48 58 PM Comments 1 Calendar Styles Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 610 Style Class Description table calendarTable The table area containing the calendar Affects the Blog and BlogCalendar server controls The following example shows the table area in red May 2006 CAA E 2 s 9 o ul 2 pis as as 7 as 19 20 aTa 2 THE Ea 2 23 24 rs 2 total tr monthRow The row that contains month information in the calendar Affects the Blog and BlogCalendar server controls The following example shows the month row in red May 2006 Sun Mon Tue Wed Thu Fri Sat 1 2 2 4 3 6 amp J 8j 2 WU RB B 14 15 16 17 18 19 20 2 2 283 4 235 2 2 28 29 30 31 td prevMonth td nextMonth The area of the calendar for the previous and next month Affects the Blog and BlogCalendar server controls The following example shows the previous and next month area in red May 2006 Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 32 amp I 8j 2 WH Rk B 14 15 16 17 18 19 20 2 2 B3 4 23 2 2 28 29 30 31
43. Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 BlogID The ID of the blog in CMS400 NET For example 41 String If you don t know the ID of the blog use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 50 Blog Server Controls Property Value Data Type Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide language select dropdown box and label in Boolean design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Language Set a language for the Language Select Box The Integer language property shows results in design time in Visual Studio and at run time in a browser SuppressWrapperTags Suppresses the output of the span div tags around the Boolean control The default is False True Suppress wrap tags False Allow wrap tags Using the BlogCalendar and BlogEntries Server Controls Together You can use the BlogCa
44. CMS400 NET database IMPORTANT Every string that you pass to the function must be HTML encoded Here is the VB Net syntax for encoding a string myTitle John s Book myTitle Server HtmlEncode myTitle Explained in the table below are the attributes for the add content block function Attribute Description Username The username of the user to be authenticated for permissions to see whether the user is able to add a content block Password The password for the username being authenticated Domain If using Active Directory specify the domain needed to authenticate the user Content_title Specify a title for the content block being added Content_comment Specify a historical comment for the content being added ContentHTML Actual content for the content block SummaryHTML Summary information about the content block ContentLanguage Language of content Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 407 Attribute Description FolderlD ID number of the content folder where the content block will be added to GoLive Date and time the content will go live Must match date time format set in the Web config key ek_dateFormat EndDate Date and time the content will expire Must match date time format set in the Web config key ek_dateFormat Metalnfo Specify the information for the metadata which will be used as a reference poi
45. Content List For a description of the Content List function see ContentList Server Control on page 100 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert the Content List function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Content List Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 310 3 The Insert Ektron CMS400 NET Content List box appears Ektron CMS400 Contetnt List ContentList is used to display a list of content block Control ID ContentList1 Contentids ContentList control can programically read data out of Content Block vs setting the ContentIds MetaTag of Type Content Selector DefaultContentID Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parameter None Vv Order By OrderOfThelds Ascending Display Type ecmTeaser v LinkTarget _self v Random Output None ofseconds Cachelnterval sid Hide Visible Positioning info GridLayout Style wrap ta 4 Use the following table to assist you with inserting the Content List function Field Description Control ID A unique name for the function y
46. EnableForms Enables users to search Forms The Boolean Using the Advanced default is True True Searching Forms is enabled False Searching Forms is disabled unless Forms is checked in the Advanced search Search Properties on page 206 See Also EnableFormsBtn on page 190 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 189 Search Server Control Property Description Data For more Type information see EnableFormsBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform a Forms Search Properties on search The default is True page 206 True The Forms check box is enabled in the advanced search properties If used with EnableContent the check box is checked by default False The Forms check box is disabled in the advanced search properties EnableLibFiles Enables users to search Library Files Boolean Using the Advanced The default is True Search Properties on True Searching Library Files is page 206 enabled See Also False Searching Library Files is EnableLibFilesBtn on disabled unless Files is checked in the page 190 Advanced search EnableLibFilesBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform a Library Search Properties on Files search The default is True page 206 True The Files check box is enabled in the advanced search pro
47. FormBlock Server Control e Automatic versus Manual Generation of Form Tags on page 119 FormBlock Server Control Properties The following table explains the properties of the FormBlock server control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type AddValidation Set to True to add Validation to your main runat server Boolean form Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 DefaultFormID The ID of a FormBlock that appears where you inserted Integer 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DynamicParameter To make thi
48. HTML Content Assumed dynamic aspx this content has not been rated True Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 410 Custom ASP Functions IMPORTANT Ektron CMS400 NET displays content on your Web site through the use of custom Ektron ASP functions and ComObjects Your template you must include the following file to be able to use the custom functions lt include file applicationAPI asp gt This file application asp calls the file with the custom Ektron functions to allow the page to function properly The include statement must appear at the top of every template file that uses an Ektron CMS400 NET custom ASP function ContentWS asmx is the web services WSDL file that the custom ASP functions use to talk to Ektron CMS400 NET The WSDLpath located in the applicationAPI asp file must be set to location of the WSDL file The default WSDLpath is http localhost cms400demo WorkArea WebServices ContentWS asmx If you have changed the location of ContentWS asmx you need to update the WSDLpath For example if your site is www myektronsite com the WSDLpath would be http www myektronsite com WorkArea WebServices ContentWS asmx To customize Ektron CMS400 NET you need to be familiar with these tags Function Description More Information Calendar Functions Collection Functions For example a daily view calendar Calendar Displays a calendar with d
49. Hide Used to hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Wrap Tag Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 316 5 Click insert An Content Rating icon appears and indicates the Content Rating s location on the template ol eo It Shown below is an example of the code that is inserted Platform Code View NET lt cms ContentRating id ContentRatingl DefaultContentID 30 runat server gt lt cms ContentRating gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Ex
50. Month Up with Eve nt monthupwithevent mup_nonMonthCell The cells at the beginning or end of the month that do not contain days The following example shows the non month cells in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri Sat Hockey Game Location VWA 213 415 16 ie 8 9 10 11 12 13 14 15 16 17 18 19 20 24 2l 3 25 26 27 28 Manchester Monarchs tak 3 eee Pirates 2004 2005 2006 e background eeeeee e font family Arial e font weight normal e font size 8pt e text align center e border right aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 634 Style Class Description Attributes and Default Settings mup_weekendCell The weekend day cell The following example shows the weekend cell in red lt Apr May 2005 Jun gt 5 5 2005 Sun Mon Tue Wed Thu Fri Sat Hockey Game ion VWA 2 3 4 516 Locatio 9 10 11 12 13 16 17 18 19 20 Manchester 23 24 25 26 27 30 31 2004 2005 2006 Monarchs take on the Portland Pirates e background dedeff e font family Arial e font weight normal e font size 8pt e text align center e border right aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid mup_we
51. NET 2 0 Rev 8 594 if EWEP_STATUS_INVALID this status amp amp save this event source var strMsg Content is invalid strMsg nError Code this event reason strMsg nError Reason this event message alert strMsg return false prevent save gt lt script gt The onerror Event If the content is invalid an onerror event is generated This event provides two additional properties for the event object when it fires e reason a numeric error code e message text describing the error As with the regular onerror event the source property is available You can display the values of these properties in an error message that informs the user why the document is not valid Calculated Fields A Calculated Field lets you include values that are calculated typically from values in other fields For example you can multiply two field values The equation used is an XPath expression You can validate a Calculated Field just like the Plain Text Field For instance the total of a series of numbers should be less than 100 For more information about calculated fields see the Ektron CMS400 NET Administrator Manual chapter Using the Data Designer Icons on the Select Field or Group Screen NOTE This section only applies to the Data Design of a Smart Form it does not apply to HTML forms Use the following icons to denote a field on the Select A Field or Group S
52. POST CMS400Example Workarea Webservices ContentUS asmx HTTP 1 1 Host localhost Content Type text xml charset utf 8 Content Length length SOsPaction http wuww ektron com cms WebService ContentWS ecmGetContentBlock The top section of the page lets you test the method by using the HTTP Get protocol to retrieve data from the sample database To do this you must insert valid parameter values The next section of the CMS400 NET content sample page displays the following kinds of sample output e Asample SOAP request and response e Asample HTTP GET request and response e A sample HTTP POST request and response Review the test pages to learn the kind of content you can retrieve from this method Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 569 The Search Display Method Parameters Parameter Where How Implemented by CMS Defined in Application API xxx Search Text n a Search text used in search method Ektron All the words any of the words Exact Phrase C Match Partial Words Search Type n a Type of search used in search method All the words Any of the words Exact Phras Match Partial Words Options and all the words or any of the words exact phrase exact phrase Note This parameter is handled automatically by CMS when displayed on Web page For Web Services however this needs to be defined Recursive Search Defines
53. Show form Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 368 Field Description Style Positioning Info Set position information of a control as absolute when using a GridLayout GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 When completed click Insert A graphic defines where the form appears on your template 2 code lt 3 spit La Design G Title for e Ot lt CMS400 POLL Shown below is an example of the code that is inserted Platform Code View NET lt cms Poll id Poll1 PollID 300 runat server gt lt cms Poll gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not avail
54. Suppress wrap tags False Allow wrap tags Boolean Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 236 SiteMap Server Control Property Response Data Type WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Using the Sitemap Server Control NOTE Make sure you have added the sitemap information to your folders Breadcrumb tab in the CMS400 NET Workarea Follow these steps to use the Site server control 1 2 gt A Ol O gN Open a Web form for which you want to create a sitemap Drag and drop the Sitemap server control onto an appropriate location of the Web form Add the starting folder s ID to the FolderID property Set any of the other properties See Also Sitemap Server Control Properties on page 235 Save the Web form Open a browser View a Web page with the Sitemap server control in it The sitemap now appears on your site Home About Us Staff News Careers Services Therapies Conditions Wellness Articles Contact Information Blog Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 237 Dreamweaver
55. The unorderedlist css file is located in webroot CMS400Demo Developer Collection It is used to format an unordered Collection CSSMenu css This file is located in webroot CMS400Demo Developer Menu It is used to format the cssmenu aspx page Search unorderedList css The unorderedlist css file is located in webroot CMS400Demo Developer Search Itis used to format the SearchOrderedList aspx page Discussion Board CSS Files The following files are used to customize the look of the Discussion Board These files are located in webroot CMS400Demo Workarea threadeddisc themes Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 645 e Chrome css e cool css e jungle css e modern css e royal css e slate css e standard css e techno css e theme css Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 646 Additional Information Supporting Documents You can find more detailed information about Ektron CMS400 NET in the following manuals e Ektron CMS400 NET Administrator Manual e Ektron CMS400 NET User Manual e Ektron CMS400 NET Quick Start Manual e Ektron CMS400 NET Setup Manual Support If you are experiencing trouble with any aspect of Ektron CMS400 NET please contact the Ektron Support Team via our Web Site at http Awww ektron com support cms400_support aspx Sales For questions and answers about purchasing Ektron CMS400 NET from Ektron
56. Userld The ID of the user who last edited the content OrderDirection The direction the search results will be String sorted in The default is Ascending Ascending Results from A to Z Descending Results from Z to A PostResultsAt Enter the Web form on which the String search results will be posted If this property is left blank the results are posted to the Web form from which the search was initiated Important A search control must exist on the posting page Recursive Whether to search sub folders of the Boolean See Also Folder D on identified root folder The root folder is page 192 identified in the FolderID property RemoveTeaserHtml An optional search result formatting Boolean parameter that removes all the HTML from each content item s teaser summary before sending it to the browser True Remove HTML False Do not remove HTML Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 194 Search Server Control Property Description Data For more Type information see ResultTagld Specify the div tag control ID to display String ResultTagld on the search results This property is only page 198 active when the EnableAjax property is EnableAjax on set to true page 187 ShowDate If True displays the content block s last Boolean ShowDate Examples modified date This is useful for on page 202 determining the mos
57. WebForm gt pr gt FAQ gt Metd J These characters appear after the image or title that identifies the current page in the breadcrumb trail DefaultContentID Gets or Sets the ContentID for the BreadCrumb display Integer title DisplayStyle Indicate how to display the breadcrumb trail horizontally or String vertically The default is Horizontal See Also Breadcrumb Trail Type on page 59 DisplayTitle Enter text to describe this Web form when it appears in the String breadcrumb trail For example if the Web form whose properties you are defining is used for all Human Resources pages on your site enter Human Resources See Also BreadCrumb Properties Apply to Web Forms Not Web Pages on page 61 The default is Title If you define an image in the IconPath property below the image appears in the trail followed by this text DynamicParameter Gets or sets the QueryString parameter to read a content ID String dynamically Hide Used to hide the breadcrumb trail in design time and run Boolean time True Hide breadcrumb trail False Show breadcrumb trail Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 63 BreadCrumb Server Control Property Response Data Type IconAlt If you define an image in the IconPath property enter any String Alt text that should appear when a site visitor hovers the cursor over that image Here is an example IconPat
58. Workarea View Calendar Calendar Example Title Calendar Example J Description Location Location Start Time Start End Time End Table Properties Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 481 Calendar Function Attribute Description DisplayType Specify the Calendar display type e Month A 30 day calendar month view Monday Tuesday Wednesday TI e Day Single day view e Inline Display events that occur from the start date of the calendar through the end date Thursday Dec Saturday Dex 12 15 2005 Monthly Audit Riuisiness Office e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt December Jan Eg OJ Nov 2005 gt Christm Mon Tue Wed Thu Fri Location 112 Start 7 3 End 11 0 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 482 Calendar Function Calendar Style Sheet Before you insert an event Calendar into your Ektron CMS400 NET template you should make a reference to the style sheet CMS400Demo Workarea csslib calendarStyles css in your template This style sheet contains styles that define the Calendar Event Calendar Sample Here is an example of an event Calendar in an Ektron CMS400 NET template lt tr gt lt td gt lt ecmCalendar 1 MonthUpWithEvent gt lt
59. and edit it within Dreamweaver To edit a content block within Dreamweaver perform the following steps Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 248 1 Create anew HTML document in Dreamweaver 2 Inthe Ektron CMS400 NET Manage Content menu click on Edit Content Edit Command List z Get More Commands Ru Apply Source Formatting x vb Inherits Webform gt Clean Up XHTML www w3 org TR xhtml1 DID xhtm11 Clean Up Word HTML w w Add Remove Netscape Resize Fix 3 lt Create Web Photo Album Set Color Scheme una F 7 PE Ektron CMS400 NET Server Controls Setup Ektron CMS400 ASP CF JSP PHP d Content Controls gt CMS Module Controls gt Community Controls gt Edit via Dreamweaver gt The Insert Content tag dialog box is displayed Insert Ektron CMS400 Edit Content Displays and manages a content block Content ID Select the folder to retrieve list of content Select the content block to insert into the page 3 Choose the Ektron CMS400 NET content block you would like to edit by Typing the ID number of the content or Using the drop down lists to locate the content folder and content block Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 249 4 Click Get when you have chosen the content blo
60. calls a method in the Web service that returns True when the Web service exists When it does not it returns False e Test Login Control displays the Login server control to show that the Web service is connected and working properly When not connecting properly an error message is displayed Below is an example of the control on a page connected to the Web service H Web Service Path http 192_168 0 82 CMS400Demo W orkarea ServerControlWS asmx e Web Service Exists True Test Login Control login help Below is an example of 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 CMS400Demo Workarea ServerControlWS asmx Web Service Path http 192 168 0 82 CMS400Dem Web Service Exists False Test Login Control Error Test Login Control Error System Net WebException The request failed with HTTP status 404 Not Found at System Web Services Protocols SoapHttpClientProtocol ReadResponse SoapClientMessage message WebResponse response Stream responseStream Boolean asyncCall at System Web Services Protocols SoapHttpClientProtocol Invoke String methodName Object parameters at Ektron Cms Controls CmsWebService ServerControlWS ShowLogin Int32 LangID Boolean OnlyAllowMemeberLogin Boolean SuppressLogin at Ektron Cms Controls DesignTimeDiagnostic WebService W orking at Ektron Cms Controls_ DesignTimeDiagnostic _BuildOutput
61. click on the MetadataName property 2 Click the Ellipses button fi If you are not logged in log in now using the CMS Explorer window 3 The Browsing Metadata screen appears MetaData Language ETEME Browsing Metadata 4 Select a Metadata Type to apply to the BreadCrumb server control 5 Set the DynamicParameter to ID This allows the metadata to reflect what ever content block appears on the page Using the BreadCrumb Server Control Add the BreadCrumb server control to each Web form for which you want to create a breadcrumb trail Follow these steps to use the BreadCrumb server control WARNING It is recommended that you do not add a BreadCrumb server control to a Web form that contains a Calendar server control When both server controls appear on the same page and a site visitor clicks on different months the BreadCrumb trail could look like this Calendar gt Calendar gt Calendar gt Calendar gt Calendar This happens because each time a site visitor clicks on a month you are in effect opening a new Web form 1 Open a Web form for which you want to create a breadcrumb trail 2 Drag and drop the BreadCrumb server control onto an appropriate location of the Web form 3 Set the DisplayTitle property See DisplayTitle on page 63 NOTE To customize the look of your breadcrumb trail configure the other properties For more information see BreadCrumb Server Control Properties on page 62
62. determines if the search examines this page 15 folder s subfolders See Also Recursive on page 194 Hide Used to hide Search Server Control in Boolean design time and runtime True Hide control False Show control Language Set a language for viewing search Integer content The language property shows results in design time in Visual Studio and at run time in a browser LibraryFieldsetLegend Text that appears in the fieldset border String Fieldset Properties on around the Library items check boxes This property is used only when the EnableLibraryFieldset property is set to True The default is Library items page 212 See Also EnableLibraryFieldset on page 191 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 192 Search Server Control Property Description Data For more Type information see LinkTarget Defines the way a link acts when a link String is clicked The choices are _blank This target causes the link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _ parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the li
63. gt lt cfloop gt lt cfset tString tString amp lt table gt gt lt cfmodule str tString nId Attributes nId template request ecm AppPath ecmshowCollectionsContent cfm gt lt cfif gt As you can see the ecmTeaser function is a simple ASP function that creates a table of the links that belong to the collection specified The ecmTeaser function also displays the e Content Title e Date Modified e Content Teaser Collection Variables See Collection Attributes on page 468 DisplayFunction The display function defines how collection data appears on a Web page Using ColdFusion scripting you can create your own display functions or use the three included functions Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 512 XML Collection Function The XML collection function wraps XML around the parameters of a list of content that s created as a collection in the Ektron CMS400 NET Workarea Once created you can use the XML to display the collection information The ecmCollectionXML function allows you to easily define how the collection data appears on the Web page Shown here is the format of the ecmCollection function lt CFMODULE template request ecm AppPath ecmCollectionXML cfm id getHtml This function is basically the same as the XML Collection function in ASP See XML Collection Function on page 471 for details The only difference between th
64. if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 285 Field Description Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 286 5 Click insert A Blog Recent Posts icon appears and indicates the Blog Recent Posts location on the template sa Code spit La Design cf Title Untitled Page red lt form id formi runat server gt
65. lt xsl attribute gt lt xsl value of select Title gt lt a gt amp 160 xml Append lt xsl value of select substring DisplayDateModified 0 string length DisplayDateModified 11 gt lt td gt lt tr gt lt tr gt lt td gt lt xsl value of select Teaser gt lt td gt lt tr gt lt tr gt lt td gt amp 160 lt td gt lt tr gt lt xsl for each gt lt table gt lt xsl template gt lt xsl stylesheet gt Retrieving the XML Structure of a Collection 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 1 Open anew Web form 2 Drag and drop a Collection server control onto it 3 Set the DefaultCollectionID property 4 Drag and drop a Textbox on the Web form 5 Set the TextMode property to MultiLine NOTE It is also recommended that you set the width of the text box to at least 400px 6 On the code behind page add the following line Textboxl Text Collectionl XmlDoc Innerxml 7 Build the project 8 View the Web form in a browser Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 86 Collection Server Control 9 The XML structure of the collection appears in the textbox Using the Collection Server Control Programmatically Example NOTE The following is an example of using code behind and a drag and drop Collection server control to display r
66. lt Ar May 2005 n gt M Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA mm 213 415 16m s 9 10 11 12 13 44 15 16 17 18 19 20 21 22 23 24 25 26 27 2g Manchester Monarchs take on 29 30 31 the Portland Pirates 2004 2005 2006 e font size 12pt e font weight bold e background transparent e font family Arial e text align center e border bottom aaaaaa 1px solid mup_eventDisplayEventTitle Display for the event title The following example shows the event display event title in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri Sat Location VWA 1 2i3iel siel7 8 10 11 12 13 44 15 16 17 18 19 20 24 22 23 24 25 25 27 28 Manchester Monarchs take on a 1 the Portland Pirates 2004 2005 2006 e font weight bold e background transparent e font family Arial e font size 10pt e text align left Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 640 Style Class Description Attributes and Default Settings mup_eventDisplayLocation Display for the event location The following example shows the event display location in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri E 1 2i3ielsiel7 8 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Manchester Monarchs ta
67. lt cfset nString nString amp Attributes href amp amp id amp nav Item ContentID gt lt cfelse gt lt cfset nString nString amp Attributes href amp id amp nav Item ContentID gt lt cfit gt lt cfelse gt lt cfset nString nString amp nav Item ContentLinks gt lt cfif gt lt cfset nString nString amp T gt lt cfif len Attributes target gt lt cfset nString nString amp target amp Attributes target amp gt lt CELE gt lt cfset nString nString amp gt gt lt cfif len Attributes startStyle gt lt cfset nString lt cfif gt nString amp Attributes startStyle gt lt cfset nString nString amp nav Item ContentTitle gt lt cfif len Attributes endStyle gt lt cfset nString nString amp Attributes endStyle gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 510 lt cfif gt lt cfset nString nString amp lt a gt gt lt CFLOOP gt lt cfmodule str nString nid Attributes nId template request ecm AppPath ecmshowCollectionsContent cfm gt lt cfif gt lt cfset nNavs Nothing gt lt cfset cmsObj Nothing gt As you can see the ecmNavigation function is a simple ASP function that creates a table of the links that belong to the collection specified The function also displays the title of the content blocks by using the info ContentTitle buildin
68. php ecmCollectionXML id GetHtml gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 532 This function is basically the same as the XML Collection function in ASP See XML Collection Function on page 471 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below lt php ecmCollectionXML 3 0 gt RSS Collection Function The RSS collection function is used to create an XML list of links that were created as a collection in the Ektron CMS400 NET Workarea and display them in RSS Syndication Shown here is the PHP format of the ecmRssCollection function lt php ecmRssCollection id gt This function is basically the same as the RSS Collection function in ASP See RSS Collection Function on page 469 for details The only difference between the PHP function and the ASP one is the syntax for implementing it Random Content Function The random content function is used to randomly display the content of a content block that belongs in a specified collection Displayed here is the format for the random content function lt php ShowRandomConient id gt This function is basically the same as the Random Content function in ASP See Random Content on page 476 for details Random Summary Function Slmilar to the random content function the random summary funct
69. return any matching results EnableAdvancedLink True EnableContent True Forms Images EnableForms True Search EnableFormsBtn True Text EnableLiblmages True All the words EnableLiblmagesBin True Any of the words ShowSearchOptions True Exact Phrase Set all other properties with the C Match Partial Words word Enable to False Fieldset Properties NOTE The properties described below can be seen by a site visitor only when the Advanced link is enabled and clicked The fieldset properties let you refine the look and feel of your site search by separating items used in the Advanced search into groups Each group can have its own legend The legends makes it easier for site visitors to understand their choices and how those choices affect the search The fieldset properties are ContentFieldsetLegend EnableContentFieldset FolderFieldsetLegend EnableFolderFieldset LibraryFieldsetLegend EnableLibraryFieldset Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 212 Search Server Control These properties can be broken down into two types e enabling fieldsets e enabling fieldset legends When you enable a fieldset a border is created around a group of items For example if the EnableContentFieldset property is set to true a border surrounds the different types of content V Content V Forms DMS Assets VlImages M Files
70. server gt lt cms IndexSearch gt ktron XML Index Search Tag Shown below is an example of the code that is inserted Platform Code View NET lt cms IndexSearch id IndexSearchl XmlConfigId 10 FolderId 14 DisplayXslt ecmTeaser HitsMarker runat server gt lt cms IndexSearch gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 402 Standard ASP NET Methods Use these methods to customize Ektron CMS400 NET To use them insert them onto your template pages to invoke content blocks list summaries and other objects stored in your database They are the primary building blocks of your Ektron CMS400 NET Content Management System Replacement of Standard Methods Beginning with Release 4 7 Ektron CMS400 NET utilizes ASP NET server controls which replace most Standard ASP NET methods With Ektron CMS400 NET s new toolbox of pre built reusable data bindable ASP NET controls Ektron empowers developers working in Visual Studio 2005 to rapidly integrate Ektron CMS components into their templates and sites For more Information on Ek
71. 206 EnableLiblmageBtn Used in ASP NET only Provides a check box so users can decide if they want to perform a Library Images search The default is Unchecked Checked The Images check box is enabled in the advanced search properties If used with EnableLiblmages the check box is checked by default C Unchecked The Images check box is disabled in the advanced search properties Folder Type in the folder path to be searched If you do not know the folder path you can navigate to it using the Select folder drop down box Font Color The color of the font used in the search function Used in ASP CF JSP and PHP only Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 382 Field Description Font Face Used in ASP CF JSP and PHP only Font Size Used in ASP CF JSP and PHP only The type of font to use for search function The size of the font used in the search function Hide Used in ASP NET only Used to hide a search in design time and run time Checked Hide search C Unchecked Show search Note If Hide and Visible are both checked the property is hidden LinkTarget Used in ASP NET only Defines the way a link acts when a link is clicked The choices are _blank This target causes the link to always be loaded in a new blank window This window is not named _self This target
72. 24 Dec 2005 10 15 00 AM Content Folder Select the content folder you would like to save the new content block to Here is an example of this form filled out Insert Ektron CMS400 Save Content New Content Block New content block for Dreamweaver example Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 253 4 Click Save to save and add the new content block the selected content folder in Ektron CMS400 NET The content block is added and the following confirmation message is displayed Macromedia Dreamweaver A Content has been saved NOTE If you receive a message other than the one displayed above check your settings and try again Here is the new content block in the Ektron CMS400 NET Workarea gt E 2 x View Content New Content Block Folders yYROBAgetnios ai View English U a aee Commeni E O Developer Properties Content Title New Content Block 4 Content ID 490 Content Language English U S Status Approved Published Last User To Edit Application Administrator Last Edit Date 6 6 2006 9 17 11 AM Start Date None Specified End Date None Specified Action on End Date None Specified Date Created 6 6 2006 9 17 09 AM antl 4 Da Not Forre All Annraverc lil 5 Once the content has been saved to Ektron CMS400 NET you can close the page in Dreamweaver Saving Existing Ek
73. 456 Single Summary Function e The summary will be shown e No style was applied to the hyperlinks e The last date the content was modified will be displayed Here is how the summary will appear on the web page Servo Control Engineer 124 20 29 2002 6 52 02 PM RC International is looked for a highly skilled servo control engineer to join our team Single Summary Attributes Listed below are all the different attributes and descriptions about them Content ID In this attribute you will need to specify which content block you will want the summary to be displayed from Show Summary The show summary attribute will allow or disallow the summary to be displayed in the summary list You have two options for this attribute Value Web Page View Servo Control Engineer 124 Servo Control Engineer 124 RC International is looked for a highly skilled servo control engineer to join our team Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 457 Single Summary Function Style Info In this field you may enter inline style information for the generated text hyperlinks displayed on the screen Style Info Web Page View Servo Control Engineer 124 RC International is looked for a highly skilled servo control engineer to join our team font family arial font weight bold background color CCcccc border solid blue 1pt margin 2px width 100 Ser
74. 545 x 349 1K 1sec Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 251 Commands Ctrl Shift x Play Recorded Command px vb Inherits Webform gt Apply Source Formatting Apply Source Formatting to Selection Clean Up XHTML Add Remove Netscape Resize Fix Optimize Image in Fireworks Create Web Photo Album Format Table Sort Table Ektron CMS400 NET Server Controls www w3 org TR xhtml1 DID xhtm11 2 In the Ektron CMS400 NET Manage Content menu click on Save Content Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 252 3 Using the following table enter the necessary information to complete the form Field Description Title Type a unique title for the content block Comment Enter a comment for the content block Start Date If desired type in a start date for the content block NOTE Date format MUST match what is set for the ek_dateFormat element in the Web config file located in the site s webroot By default this is dd mmm yyyy hh mm ss tt for example 24 Dec 2005 10 15 00 AM End Date If desired type in an end date for the content block NOTE Date format MUST match what is set for the ek_dateFormat element in the Web config file located in the site s webroot By default this is dd mmm yyyy hh mm ss tt for example
75. 6 0 for NET 2 0 Rev 8 624 Style Class Description Attributes and Default Settings mv_NonMonthBorder The cells at the beginning or end of the month that do not contain days The following example shows the non month border in red E May Ang gt Sunday Monday Tueedsy Wecmesdsy Thursday Pricey Saturday W5 WS 2 S53 als WSs Bales Wa came TA BAe Baw SA Bw Blo Vou ala DA Td Bar Se Ble Td Be SA Bar 6 Alz dAl 2 d B28 So A 2s Sd Bae 5 Gla od Bae Falo d Sle Qa e border right c9bda5 1px solid e border top c9bda5 1px solid e background e0e0e0 e border left c9bda5 1px solid e border bottom c9bda5 1px solid mv_DateCell The cells where the numerical weekdays appear The following example shows the date cell in red S lt Andi May MoE Sundsy Monday Tueadey Wednendey Thursdsy tretay Satran Frey EEJ EE EEJ EEI EEE Hoda Game CEHE EE EE EE EE EEP rem EE KEE EE EE EEE Peers Brey EE EE ED EERE Fee ey EEY e font weight bold e font size 9pt e background FOE9C5 e border left c9bda5 1px solid e border bottom c9bda5 1px solid e font family arial Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 625 Style Class Description Attributes and Default Settings mv_DateCellWeekend The cells where the numerical weekend days appear The following example shows the date
76. 6 0 for NET 2 0 Rev 8 22 8 The login information is displayed WebForm5 Microsoft Internet E File Edit View Favorites Tools O Oo dag http flocalhost CMS400Examph Links EktronNet Welcome Ektron Address True John Edit is logged in 2 is the User ID Accessing Additional Properties In addition to the standard properties Ektron CMS400 NET provides access to additional properties for the following objects e ListSummary e Collection e Search e ContentBlock e FormBlock To access additional properties use the same syntax you use for standard properties but add ekitemor ekitems after the object Here is an example dim MyCB as New ContentBlock MyCB DefaultContentID 30 MyCB Page Page MyCB Fill labell text MyCB EkItem dateCreated or dim MyCB as new Ektron Cms Controls ContentBlock MyCB DefaultContentID 30 MyCB Page Page MyCB Fill labell text MyCB EkItem dateCreated IMPORTANT To access additional properties for the Collection ListSummary and Search objects use ekitems not ekitem For example Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 23 MyColl ekitems 0 dateCreated where 0 is the index of the array For more Information on using ekitems see Accessing Items in an Array on page 28 You can use intellisense to select from a list of additional object properties as shown
77. API xxx Style Info Search Specify an inline style that is applied to the Display hyperlinked portion of topics that result from a search For example font family arial font weight bold backgroundcolor cccccc border solid blue lpt margin 2px width 50 Show Date Search Specify whether the last modified date is displayed Display with search results 0 date is not displayed 1 date is displayed Sample Output from One Method The following is an example of the content that can be retrieved from one of the methods GetContentBlock As you can see the HTML content is provided within the lt contentHtm1 gt XML element GetContentBlock lt xml version 1 0 encoding utf 8 gt lt ContentBlockResult xmlns xsd http www w3 org 2001 XMLSchema xmlns xsi http www w3 org 2001 XMLSchema instance xmlns urn ektron webservices content cms400 v45 gt lt ErrorString gt lt Item gt lt ContentTitle gt Plastic Molder 123 lt ContentTitle gt lt ContentHtml gt lt xml version 1 0 gt lt jobposting gt lt job title gt Plastics Molder lt job title gt lt job number gt 123 lt job number gt lt description gt lt p gt RC International a leading supplier of consumer level radio controlled vehicles is looking for an experienced plastics molder to join our team The candidate will join our highly skilled team of enthusiastic molders to bring to life our next generation products RC International is expe
78. ASP CF JSP PHP rs Ektron CMS400 NET Server Controls gt CMS Function b LA Tm repprcauvinw Tr PNP TT eC Terre XML Fi ti Es gt tamnfact cfm gt AQP NET rE 2 The Setup dialog box is displayed on the screen Ektron CMS400 NET Server Controls Setup Ektron CMS400 Setup http localhost cms400demo workarea dreamweaver aspx lt Register TagPrefix cms Namespace Ektron Cms Controls Assemt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 244 Ektron CMS400 ASP CF JSP PHP Setup Ektron CMS400 Platform Setup http localhost cms400Demo workarea dreamweaver aspx asp asp O ce O pre I lt indude file applicationAPI asp gt V Check for indude check is default 3 Use the following table to help you update your setup information This table refers to Ektron CMS400 NET Server Controls setup For Ektron CMS400 ASP CF JSP PHP see Ektron CMS400 ASP CF JSP PHP Dreamweaver Setup Table on page 246 Ektron CMS400 NET Server Control Dreamweaver Setup Table Field Description Username Valid username of a user of your Ektron CMS400 NET Web site When using the extension the username is used to log in to the database to retrieve information about content blocks and other Web site information Password Enter the password for the user Domain Only r
79. Aggregator 3 The RSS Aggregator dialog box appears Ektron CMS400 RSS Aggregator Used to display an RSS feed Control ID URL Max Number of results 9 Display Type Hide LJ Visible Positioning info GridLayout Style leave blank if none Wrap tag Span Y Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 373 4 Use the following table to assist you with inserting an RSS Aggregator Field Description Control ID A unique name for the function you are inserting URL The RSS feed path for the server control For example http msdn microsoft com rss xml Max Number of Results The Maximum number of items from an RSS feed that are returned O unlimited Display Type Determines how the information on the page is displayed None databind only ecmNavigation lists the title of every RSS feed item See Also Example of ecmNavigation Display on page 85 ecmTeaser lists a title and a description of every RSS feed item See Also Example of ecmTeaser Display on page 85 Path to Custom Xslt Enter the path to an Xsit that determines the display of the page Hide Used to hide a Language API in design time and run time Checked Hide C Unchecked Show Language API Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Chec
80. BieadCron opeemrererrerere terete err R E E 293 CENAA eia E E E E E 299 CECOM rann a EE 302 Content BIOK emassen a casneteneac gneiss 306 Content LiSt zirena a aaedo aon aive 310 Content Raingear naaa E EEEa 315 Coment ASET Tag aeiia aaa aaiae 317 DHTML MONU cissi ii a 319 Discussion PO MUN Miss st cei satnce seared teadnncetenieenddtesveescn ceeds 326 Display By Meta VAlUG sssini aaa 328 Dynamic Content BlOGK ss ssc2tsesccceessdsecouesesidasccneasctdbasecenaas Mewcenaciacs 333 Folder Bread Crim Biesserctsscatsazccassiascnaste cs ituazagtiteiniaeganemacicaiiie 336 EELEE E A E E terre rence E er rtre 338 Language AP Lorno paa ANa 342 Language Select BOX cc ceeeecceeseneeeeeeeeeeesaeeeeeeeeeeaaeeseeaeeeeeeaeees 344 List SUMMA eaan a e A 346 MESO a p E E E E E E A T EE E T 352 Membership Control i sacccsssscntecnasennsazeronieseneeinsasinces iuennsetacdnauiens 355 Metadata for ASP NET Pages ssiiscniiiiiricrnnniineirinssiinninaiia 359 Metadata Function for ASP CF JSP or PHP Pages 0008 362 Muiltipuipose Content BlO Gb isc cidetictscctscasseoetariseesseediattaveescuaslesedey 365 PPO seesscainncnseesstsrien satay casheas crave E qedissneaad E E 367 Random Combet ss cress2scee cnet oso centccsvocnntacssacwaieastebacatiepetcacemeeaiatads 370 Random SUMMARY oisit a a E 371 RSS MOOI C AON dccsreteni niet E E 373 SENG saaa S a aa 375 Scare DISPLAY deenerceme ererrereer oea aaiae 387 Single SUMMAN spresnenia A 390 Ste MaDe a E
81. CMS400 NET s Implementation of Web Services 0 cee 561 Benefits of Using Web Services cc ccccceeeeeeeceeeeeeeeeeeeeeeeeneees 561 WS Components and CMS400 NET Architecture 562 Software and Hardware Requirement cccsseeeeeeeeeee 562 IMISTANADION OF PINGS siciaicstiscncsicnrsucecesciseuedasrseusencnecscntanensunencteaase 562 Setup MG IE CCE ORNS asec are ee cee ett ce ei 562 Providing Web Service Information in Your CMG 564 CMSS0O NET Methods rirni EE 564 The CMS400 NET Content Sample Page eeeeeeeeeseeeeeeen 567 The Search Display Method Parameters scseeeeeeseees 570 Sample Output from One Methodisme 572 GOLCONTSNIBIOCK serrio Sra The News aspx Sample non XML ssssssessseeseseessreesseessressens 573 Identifying the Code Behind File essseessesesnnennesrnressnensne 573 Setting Up an Instance of Web Services cccccceeeeeeeeeees 573 Getting Content BIOCKS sassari 573 The News aspx Sample XML ccccecseeeeeeeeeeeeeeeseeeeeeseneeeee 575 Setting Up Instances of Web Services ccccceceseeeeeeeeeeeee 575 Getting Content BIOCKS renesse e 575 Creating a Page that Provides a Web Service s 00 579 Syndicating Web Content as RSS cceceeeeeeeeeeeeeeeees 580 What is RSS Syndication iscco ccc ececascccescwecteecscencceccseesaenecectente 580 The RSS SO SCMIC ANG Neasa jenviesctedatintacseadsiiniscuded
82. CMS400 NET Administrator manual chapter Working with HTML Forms 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 the Ektron CMS400 NET Administrator manual chapter Managing Library Assets section Updating Default Template for Multiple Quicklinks Here is the format for the form custom function lt php ecmFormBlock id gt lt php ecmFormBlockNoForTag id gt This function is basically the same as the Form function in ASP See Form Function on page 485 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below lt tr gt lt td gt lt php ecmFormBlock 1 gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 536 NOTE As an alternative you can use the multipurpose function which can display either a content block or a content block associated with a form For more information see MultiPurpose Function on page 537 MultiPurpose Function The ecmMultiPurpose function displays either a content block or a content block associated with a form As a result you can use one template to display both types of content block Here is the format for the Multipurpose function lt php ecmMultiPurpose ID gt
83. CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 100 ContentList Server Control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Description Data Type Values Authenticated Indicates if you are logged in to String the CMS Explorer See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the Integer server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Contentlds A comma delimited list of String content blocks IDs See Also Using the ContentID Property to Display a Content List on page 109 DefaultContentID Set content id value Once set Integer content IDs are generated from the MetaTag value for this content See Also MetaTag on page 104 Using the DefaultContentID and MetaTag Properties on page 105 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 101 ContentList Server Control Property Description Data
84. CMS400 NET folders Next the CMS users must fill in the appropriate values for each content block For information on the remaining eight Simple Dublin Core fields see the Administrator Manual section Managing Content Folders gt Metadata gt Simple Dublin Core Metadata Using the MetaData Server Control These steps show how to use the MetaData server control Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 169 MetaData Server Control 1 Drag a MetaData server control into a template 2 Set the properties of the Metadata server control This will create the following HTML in the HTML body lt coms MetaData id MetaDatal runat server DefaultContentID 12 gt lt cms MetaData gt Or if you are using multiple content block IDs In the DefaultltemList the following HTML will be created lt cms metadata id MetaDatal runat server DefaultItemList 12 7 4 gt lt cms metadata gt 3 Click on the HTML tab and copy that line from the lt body gt tag into the lt head gt tag lt HEAD gt lt title gt WebFormS lt title gt lt cms MetaData id Metadata2 runat server DefaultContentID 12 gt lt cms MetaData lt meta name GENERATOR content Microsoft Visual Studio NET 7 1 gt lt meta name CODE LANGUAGE content Visual Basic NET 7 1 gt lt meta name vs_ defaultClientScript content JavaScript gt lt meta name vs_ targetSchema content http schemas mic
85. Control Value Web Page View Click Me to Search hh C Any of the words Exact Phrase I Match Partial Words Display Examples Value Web Page View Vertical Search All the words Any of the words Exact Phrase I Match Partial Words Horizontal Search All the words Any of the words Exact Phrase Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 201 Search Server Control ShowDate Examples Value Web Page View False Search Results RC Sportster RC Redstar RC Lilly RC Cheetah Products Page RC International Ships RC Sportster RC International Hosts RC Conference RC International Announces the RC Cheetah True Search Results RC Sportster 8 27 2002 7 52 40 PM RC Redstar 8 27 2002 7 52 01 PM RC Lilly 8 27 2002 7 51 26 PM RC Cheetah 8 27 2002 7 50 53 PM Products Page 8 27 2002 7 50 09 PM RC International Ships RC Sportster 8 27 2002 2 46 12 PM RC International Hosts RC Conference 8 27 2002 2 44 44 PM RC International Announces the RC Cheetah 8 27 2002 2 43 01 PM ShowExtendedSearch ShowExtendedSearch lets you decide if the user can search the Searchable Property contained in the metadata of a content block If you set the ShowExtendedSearch property to true and a site visitor visits the search page the extended search paramete
86. Controls Collection myCol DefaultCollectionID 4 myCol Page Page myCol Fill Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 33 GridViewl DataSourceID myCol GridViewl DataBind This subsection contains the following topics e Steps to Data Binding Using Drag and Drop Server Controls on page 34 Steps to Data Binding Using Drag and Drop Server Controls The following example uses a Collection 1 Drag and drop a data bindable Server Control on the Web form El z pa 4 X StartPage WebFormi aspx WebFormi aspx Oy o o OC ollection ID 0 o o o o 2 In properties choose the Ektron default ID for the Server Control and make sure the XSLT is set to None DataBind Only Collectioni Ektron Cms Controls Collection ai Authenticated True CmsSitePath http localhost CMS40 DefaultCollectionID 1 DynamicParameter GetHtml False Language 1033 Random True xslt None Databind Only Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 34 3 Drag and drop a GridView on the Web form L qx a on iList oa abc abc o abc abc abc o abc abc abc abc abc Column0 Column1 Column abc abc abc abc abc 4 Inthe GridView properties choose the DataSourcelD Properties lx 5 The GridView is populated with column headers and the type of information that will be in the table
87. Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 28 behind To do this set the control s page property to the Web page you re working on For an example see the code in red and italics below dim search as new Ektron Cms Controls Search MySearch Page Page MySearch Fill With C use this syntax Ektron Cms Controls Search MySearch new Ektron Cms Controls Search MySearch Page Page MySearch Fill This relationship is only required when inserting a control in the code behind When dragging and dropping even if you make changes in code behind the relationship is automatically generated Best Practice Ektron recommends including the page property reference when using the server controls as components in the code behind Customizing Server Controls One of Visual Studio 2005 s strengths is its separation of coding and logic from presentation Web page formatting is handled by a page s HTML while the logic is handled by the code behind which is stored in the corresponding vb file For example if the ASP NET page is mypage aspx the code behind file is mypage aspx vb NOTE If you do not see the code behind files click the Show All Files button on the VS 2005 Solution Explorer toolbar hr aspx Show All Files m FEl index asox Within the vb file you can use Visual Basic to insert code to manipulate the events that occur on the page This s
88. Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 81 Collection Server Control Collection Server Control The Collection server control is used to display a list of content block links that were created as a collection in the Ektron CMS400 NET Workarea The control is highly customizable allowing you to define the display of the collection on a Web page When added to a template and visited collections can look like this The following illustration shows three collections on the same page of a sample site You can modify the display by editing its properties Human Resources Forms while you were out Employee Forms Absence Request Form Direct Deposit Form Manager Forms Personnel Action Form This subsection contains the following topics e Collection Server Control Properties on page 82 e Example of ecmNavigation Display on page 85 e Example of ecmTeaser Display on page 85 e Retrieving the XML Structure of a Collection on page 86 e Using the Collection Server Control Programmatically Example on page 87 Collection Server Control Properties Note The Collection server control properties are described in this table The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version
89. Drag amp Drop and Programmatically Together 31 Data Binding with Server Controls ccsecccccesseeeeeeeeeteeeneees 33 Steps to Data Binding Using Drag and Drop Server Controls 34 Caching with Server Controls ccccccesssseesseeeeeeeeeeeeenseneeees 36 Caching Individual CONN sscciccsasascccccssrsascccsessaasccccdereareccecermnvcses 37 Page Level GAC MIG issn a 38 List OF Server GoOntrols niacin 39 Blog Server COMMONS sicaccesisicisisiessdddncedseaswiannsieiindevindnaiaienains 43 Using the Blog Server Control vs Using the Individual Blog Server COONS sas cise sec cctscsscczcocacebcadotecdescatorncdenmteaewcceneetieadgeces 43 Blog Server Control ee ree rr 43 Blog Server Control Propertie S ssis 44 BlogEntries Server Control csssscccccsssseeeeeessseeeeeeseeeeeeeeeees 45 BlogEntries Server Control Properties ccccccsseeeeeeeeeeetteeeee 46 BlogPost Server Control sscsiciccscscsicsceccseccntecsnseccntesscmeceneatansedecss 48 BlogPost Server Control Properties cccscceeceeeeeeeeeeeeestaeeeeees 48 BlogCalendar Server Control ccccsseseeeeeeseeeeeeeeeseeeeeeeenees 50 BlogCalendar Server Control Properties 0 2 cccecceeeeeeeeetteeee 50 Using the BlogCalendar and BlogEntries Server Controls Together 51 Steps to Use BlogCalendar and BlogEntries Together 51 BlogRoll Server Control sisscsssccssssccccststacccccctchascicectsannseccsduscssecescts 54
90. Dreamweaver on page 247 Below are images showing the different views Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 260 If you use ASP NET pages ewes Site Window Help Add Remove Netscape Resize Fix Create Web Photo Album Ektron CMS400 NET Server Controls Ektron CMS400 ASP CF JSP PHP Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 261 If you use ASP CF JSP or PHP pages EEE se irdon Hep Edit Command List Get More Commands Manage Extensions Apply Source Formatting Clean Up Word HTML Add Remove Netscape Resize Fix Create Web Photo Album Set Color Scheme Ektron CMS400 NET Server Controls Ektron CMS400 ASP CF JSP PHP Setup Edit via Dreamweaver 4 Click on the command for the task you would like to perform The following tables explain each command The first table explains the Ektron CMS400 NET Server Controls Functions on page 262 The second table explains the Ektron CMS400 ASP CF JSP PHP Functions on page 265 Ektron CMS400 NET Server Controls Functions Command Description More Information Content Controls Login Inserts an Ektron CMS400 NET login Login on page 352 function into the template Content Inserts an Ektron CMS400 NET content Content Block on page 306 block function into the template Form Inserts an Ektron CM
91. Dreamweaver X Configuration Translators ASP NET_VB Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 238 NOTE In the path above X represents the version of Dreamweaver you are using For example Dreamweaver 8 or Dreamweaver MX 2 Open the PreviewModeCustomTags edm1 file using Notepad 3 Search for the following line of code in the file lt searchPattern requiredLocation openTag gt lt CDATA runat s s server i gt lt searchPattern gt 4 Add the following line after it lt searchPattern requiredLocation tagName gt lt CDATA cms i gt lt searchPattern gt WARNING This line must be inserted after the line above Order is important 5 Save and close the file 6 Navigate to the following location C Program Files Macromedia Dreamweaver X Configuration Translators ASP NET_Csharp NOTE In the path above X represents the version of Dreamweaver you are using For example Dreamweaver 8 or Dreamweaver MX 7 Open the PreviewModeCustomTags edm1 file using Notepad 8 Search for the following line of code in the file lt searchPattern requiredLocation openTag gt lt CDATA runat s s server i gt lt searchPattern gt 9 Add the following line after it lt searchPattern requiredLocation tagName gt lt CDATA cms i gt lt searchPattern gt WARNING This line must be inserted after the line above Order is import
92. Dynamic displays the content block of the ID passed through a URL parameter In addition a content block can contain XHTML or XML content For an example of using the ContentBlock server control programmatically see Using the ContentBlock Server Control Programmatically Example on page 98 This subsection contains the following topics e Static Content Block on page 91 e ContentBlock Server Control Properties on page 91 e Dynamic Content Block on page 93 e XML Content Block on page 95 e The OverrideXslt and DisplayXslt Properties on page 96 e Using the ContentBlock Server Control Programmatically Example on page 98 Static Content Block A static content block displays one identified content block on a Web page The following table explains how to complete the server control properties to insert a static content block on a Web page ContentBlock Server Control Properties The following table explains the properties of the ContentBlock server control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 91 ContentBlock Server Control Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can use
93. Edit Date Start Date End Date Action on End Date Date Created XML Configuration Path lt Content Title 381 English U S Approved Published Application Administrator 8 3 2005 12 27 47 PM None Specified None Specified None Specified 8 3 2005 12 27 44 PM Do Not Force All Approvers None Specified None Specified HTML Content Assumed inherited Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 427 Search Functions Search Functions The search tag is used to display a text box with a search button on the template When seen on the template of a Web page users can enter text and click on the search button to search through all the HTML content on the Web site To create a search Ektron has created two search functions e ecmSearch e ecmSearchNoFormTag Both functions have the same parameters and perform the same search The only difference is ecmSearch automatically inserts form tags ecemSearchNoFormTag does not The following is an example of form tags lt form name ecmsearch method post action search display asp gt lt form gt When using ecmSearch form tags are added automatically When using ecmSearchNoFormTag you need to add the tags manually When using the search function eemSearch and ecmSearchNoFormTag can be interchanged Shown here is the format for the ecmSearch and ecmSearchNoFormTag lt ecmSearch or e
94. Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 294 Field Description DisplayTitle Enter text to describe this Web form when it appears in the breadcrumb trail For example if the Web form whose properties you are defining is used for all Human Resources pages on your site enter Human Resources See Also BreadCrumb Properties Apply to Web Forms Not Web Pages on page 61 The default is Title If you define an image in the IconPath property below the image appears in the trail followed by this text CurrentPagelndicator If desired enter one or more symbols or characters that identify the current page in the breadcrumb trail See example below Dev gt WebForm gt pr gt FAQ gt Meta These characters appear after the image or title that identifies the current page in the breadcrumb trail Content ID Gets or Sets the ContentID for the BreadCrumb display title If you do not know the Content ID you can navigate to it using the Select Category and Select Content drop down boxes DynamicParameter Gets or sets the QueryString parameter to read a content ID dynamically IconPath If you want the breadcrumb trail to display an image to identify this Web form enter the path to the image Important The image location must be relative to the Web root For example cms400demo Workarea Images bc_meta_icon gif IconAlt If you define an image in the IconPath property
95. Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 611 Style Class Description td prevMonth a td nextMontha The text information for the previous and next month area of the calendar Affects the Blog and BlogCalendar server controls The following example shows the previous and next month text in red Sun Mon Tue Wed Thu Fri Sat 1i 2 3 4 5 I 8 WH Rk B 14 15 16 17 Bb YD 20 2 2 B3 4 23 2 2 2 29 30 31 td currentMonth The current month area of the calendar Affects the Blog and BlogCalendar server controls The following example shows the current month area in red May 2006 Sun Mon Tue Wed Thu Fri Sat 1 2 2 4 323 6 Zi 8j 9j ojuj ejr 14 15 16 WY 18 19 2 a2 2 23 U 5 2 2 23 29 30 31 tr dayNamesRow The day names row for the calendar Affects the Blog and BlogCalendar server controls The following example shows the day names area in red May 2006 Sun Mon Tue Wed Thu Fri Sat 1 2 323 4 3 6 7 8j 9jojuj 2 B 14 15 16 17 18 19 20 2 2 23 4 25 2 2 23 29 30 31 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 612 Style Class Description tr weekRow td The rows in the calendar that contain each week s dates Affects the Blog and BlogCalendar server controls The following example shows the week row area in red May 2006 Sun Mon Tue Wed Thu Fri Sat
96. EnableLiblmageBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform a Library Search Properties on Images search The default is True page 206 True The Images check box is enabled in the advanced search properties If used with EnableLiblmages the check box is checked by default False The Images check box is disabled in the advanced search properties EnableLibraryFieldset Creates a border around the group of Boolean Fieldset Properties on library items in an advanced search These items include Images Files and Hyperlinks The default is False True Show border around library items False No border around library items page 212 See Also LibraryFieldsetLegend on page 192 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 191 Search Server Control Property Description Data For more Type information see FolderFieldsetLegend Text that appears in the fieldset border String Fieldset Properties on around the Folder check boxes This page 212 property is used only when the See Also EnableFolderFieldset property is set to EnableFolderFieldset True The default is on page 189 Folder Descriptions Folder D The folder at which the search begins String Using CMS Explorer to The starting folder need not be the root Browse Your Ektron folder The Recursive property CMS400 NET Site on
97. Example Publishers Microsoft Press 9 Click on a publisher Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 232 IndexSearch Server Control 10 A list of books with teasers by that publisher appears i Address 4 http localhost CMS400Example webform aspx publisher Prentice Hall k Go Links 4 EktronNet Welcome Ektron Inc 4 CMS400 Example gi Publisher Prentice Hall Books Visual Basic NET How to Program Visual Basic NET How to Program Second Edition is an awesome resource for the beginning VB NET developer who is serious about the craft of programming In 1 500 pages this book covers an incredible amount of territory from the evolution of programming languages and web development all the way to advanced data structures and web services St Visual Basic NET 2003 An Application Driven Tutorial Approach Notice the second Literal now contains a hyperlink to go back 11 Click on a book Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 233 IndexSearch Server Control 12 The XML Content Block for that book appears Address http flocalhost CMS400Example collection aspx id 23 Ej co i Links 4 EktronNet Welcome 4 Ektron Inc 4 CMS400 Example 4 Welcome to RC International Title Visual Basic NET How to Program Subject Computer Programming ISBN 0130293636 Genre Non Fiction Publisher Prentice Hall
98. Extension Support Ektron CMS400 NET has a custom Macromedia Extension Package which allows you to not only create your templates in Dreamweaver or UltraDev but also to insert the custom functions through Dreamweaver To do this all you need is Ektron CMS400 NET Dreamweaver UltraDev and to keep reading Ektron supports Dreamweaver extensions for the following scripting languages ASP NET for NET pages e ASP for Active Server Pages e CFM for ColdFusion pages e JSP Java Server Pages e PHP Hypertext Preprocessor The following sections are contained in this chapter e Requirements on page 238 e Preparing Dreamweaver for Ektron CMS400 NET Functions on page 238 e Installing the Extensions on page 239 e Setup on page 243 e Editing and Saving Ektron CMS400 NET Content in Dreamweaver on page 247 e Using the Ektron CMS400 NET Extensions on page 255 e Inserting Custom Functions on page 266 Requirements To use a Dreamweaver extension supplied by Ektron you need to have Dreamweaver 7 0 1 or higher installed as well as Ektron CMS400 NET Preparing Dreamweaver for Ektron CMS400 NET Functions To have Ektron CMS400 NET function symbols appear in Dreamweaver while editing a Web page you must edit two PreviewModeCustomTags edml Dreamweaver files The steps below explain how to edit the files 1 In Windows Explorer navigate to the following location C Program Files Macromedia
99. Form Properties Form Form Title Email Contact Form Status Approved Published Description ecmFormBlock and ecmFormBlockNoFormTag are interchangeable when using this function Here is an example of a form content block in an Ektron CMS400 NET template lt tr gt lt td gt lt ecmFormBlock 367 gt lt td gt lt tr gt When this code is read by a browser the following is displayed Vacation Request Form Required Fileds First Namef Last Namef email Phone Date stat mm dd yyyy End Date mm dd yyyy Where are you Going When a visitor to your site submits a form the form uses the form information to process the data Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 486 MultiPurpose Function MultiPurpose Function The ecmMultiPurpose function displays either a content block or an content block associated with a form As a result you can use one template to display both types of content block Here is the format for the Multipurpose function lt ecmMultiPurpose id gt To pass in a standard content block pass the id value in the url parameter as illustrated below http localhost cms400sample index asp id 2 To pass in a Form content block pass the ekfrm value in the url parameter as illustrated below http localhost cms400sample index asp ekfrm 2 NOTE For more information about passing the i
100. Function The RSS summary function is used to create an XML list of content summaries for RSS Syndication Shown here is the format of the RSS list summary function lt CFMODULE template request ecm AppPath ecmListSummary cfm Folder MaxNumber Recursive OrderBy This function is basically the same as the RSS Summary function in ASP See RSS Summary Function on page 460 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below List Summary Example lt TR gt lt TD gt lt CFMODULE template request ecm AppPath ecmListSummary cfm Folder books MaxNumber 0 Recursive 0 OrderBy Title asc gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 508 lt TD gt lt TR gt Archive List Summary Function The Archive list summary function displays on a Web page a list of content summaries for archived content blocks For example you might have a current news page and an archived news page Use the List Summary Function to display current news and this function to display older news stories On the Content Block schedule screen the user must set an End Date then choose the Archive and Display option to have the content blocks appear via this function This function has the same parameters as the List Summary Function See List Summary Function on page 507 for details Single Su
101. ID gt 24 lt ID gt lt Title gt ASP NET Unleashed lt Title gt lt QuickLink gt cms400demo collection aspx id 24 lt QuickLink gt lt Teaser gt lt p gt lt em gt ASP NET Unleashed Second Edition lt ems is really big really thorough and really lt i gt good lt i gt lt p gt lt Teaser gt lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt lt DateModified gt 1 12 2005 7 53 31 PM lt DateModified gt lt EndDate gt 12 31 9999 12 00 00 AM lt EndDate gt lt LastEditorFname gt Application lt LastEditorFname gt lt LastEditor_Lname gt Administrator lt LastEditorLname gt lt DisplayStartDate gt lt DisplayStartDate gt lt FolderlD gt 0 lt FolderlD gt lt ContentStatus gt lt ContentStatus gt lt Language gt 0 lt Language gt lt DisplayDateModified gt 1 12 2005 7 53 31 PM lt DisplayDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt lt Content gt lt Content gt lt ID gt 25 lt ID gt lt Title gt Microsoft ASP NET Programming with Microsoft Visual C NET lt Title gt lt QuickLink gt cms400demo collection aspx id 25 lt QuickLink gt lt Teaser gt lt p gt Teach yourself how to write high performance Web applications with ASP NET and Visual C NET one step at a time lt p gt lt Teaser gt lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt lt DateModified gt 1 4 2005 7 16 21 PM lt DateModified gt lt EndDate gt 12 31 9999 12 00 00 AM lt EndDate gt lt LastEditorFname gt Application
102. ID of the content block whose metadata you want to retrieve Yes Block ID Separator Separates content block id from the exclusion list No Yes if semicolon including an exclusion list Exclusion A comma delimited list of metadata you do not want to be No List retrieved for this content block right Delineates the end of a content block id exclusion list pair Yes bracket Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 488 Metadata Function ecmMetadata Example For this example our administrator has defined the following metadata types for Ektron CMS400 NET Name Style Type Editable Required Remove Case Dups Sensitive Title n a HTML Yes Yes No n a Keywords Name Meta Yes Yes Yes No Content http equiv Meta No Yes Yes n a Type Our example Web page has two content blocks displayed e content block 1 the company s home page introduction text e content block 2 a sidebar containing the lead story for the week The metadata entered by your content editors for these two content blocks are Content Block 1 Title Welcome to Our Home Page Keywords Home page company Welcome Content Type text html charset iso 8859 1 Content Block 2 Title Announcing our New Product Keywords Announce company product widget Content Type text html charset iso 8859 1 To include both content bloc
103. Inc CMS400 Developer Section Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 109 ContentRating Server Control Use the ContentRating server control to place a rating scale on any page of your Web site The scale lets Ektron CMS400 NET collect feedback by giving site visitors the opportunity to rate a particular content item A visitor can rank the content on a numerical scale of one through nine as well as submit a text comment The control lets a site visitor rate a content item only once On subsequent visits to the page a message informs the visitor that he has previously rated the page which can optionally display a summary of ratings for it As a result the control has two appearance modes initial and complete Ektron CMS400 NET maintains and reports content ratings data For more information see the Ektron CMS400 NET Administrator Manual section Managing Content gt Content Rating Content Rating Server Control Properties Note The Ektron specific Content Rating server control properties are divided into two groups e Ektron settings that affect properties such as the display e Ektron labels settings that affect the text labels within the control These properties are described below The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of
104. Include tags property you have two options Option Recommended if How to Enable you are developing Let Ektron CMS400 NET generate form tags automatically A pure script aspx page Set Include Tags property to True Modify HTML form tags in the aspx file An aspx page and associated code behind web form Set Include Tags property to False Here is the default NET generated form tag lt form id Forml method post runat server gt Modify the form tag as indicated in red lt form id Forml method post runat server OnSubmit EkFmValidate this gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 178 RssAggregator Server Control RssAggregator Server Control An RSS Aggregator or reader takes an RSS feed and displays the information in a readable format The RssAggregator server control lets you do the same by processing and displaying an RSS feed from any Web site This allows you to create an information Web page for news stories images lists of music or for whatever purpose someone creates an RSS feed You can create a multi level information Web page by using multiple RssAggregator server controls on the same page For example you could create a world news Web page by adding RSS feeds from the NY Times The BBC and AFP Agence France Presse The process of adding an RSS Aggregator to your Web site is simple 1 Choose a
105. Inserts an Ektron CMS400 NET event Calendar on page 299 calendar function into the template Form Inserts an Ektron CMS400 NET form Form on page 338 content block into the template Multipurpose Tag Insert a content block or form content Multipurpose Content Block on block into the template page 365 XML Function Content XSLT Tag Inserts an XML content block with your choice of XSLT in the template NOTE Used to insert an XML content block with an XSLT other than the default applied to it Content XSLT Tag on page 317 Inserting Custom CMS Function Analytics Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 Functions The CMS Function commands let you insert standard Ektron CMS400 NET display functions into your template The following sections explain how to insert each function For a description of the Analytics function see Content Analytics Server Control on page 89 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt CMS Module Controls 266 To insert the Analytics function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Analytics 3 The Insert Ektron CMS400 NET Analytics box appears Ektron CMS400 Analytics Control ID AnalyticsTracker 1 Content ID Select the folder to r
106. Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA W 2 3 4 S 6 7 8 9 10 11 12 13 44 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Manchester Monarchs take on 29 30 31 the Portland Pirates e background eeeeee e font family Arial e font weight Bold e font size 9pt e text align center Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 637 Style Class Description Attributes and Default Settings mup_monthHeaderBorder The border around the month header The following example shows the month header border in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA 1 213146415 6 E 8 9 10 11 12 13 44 15 16 17 18 19 20 29 22 23 24 25 26 27 28 Manchester Monarchs take on 29 30 31 the Portland Pirates 2004 2005 2006 e background eeeeece e font family Arial e font weight Bold e font size 10pt e border right aaaaaa 1px solid e border top aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid e text align center mup_monthHeader The month header The following example shows the month header in red lt Acr M Jun gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA 1 2 3 o s1617 8 9 10 11 12 13
107. LEFT 328px POSITION absolute TOP 240px 4 When completed click insert A graphic defines where the DHTML Menu appears on your template Shown below is an example of the code that is inserted Platform Code View NET lt cms DhtmlMenu id DhtmlMenu1 DefaultMenuID 16 ForeColor runat server gt lt cms DhtmlMenu gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 325 Platform Code View PHP This function is not available as an Ektron Dreamweaver Extension for PHP Discussion Forum For a description of the Discussion Forum function see Forum Server Control on page 120 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Discussion Forum function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Discussion Forum 3 The Insert Ektron CMS400 NET Discussion Forum box appears Ektron CMS400 Forum Control ID Forumi BoardID aa Select the folder or fill it in above Positioning info GridLayout Style E E aa leave blank if none Wrap ta
108. Level Caching Below is an example of a page level cache for non logged in users In this example you use a Server Control to define whether a user is logged in or not Then further define if the time is cached based on the user s status 1 Create a new Web form in your Ektron CMS400 NET project 2 Add the following text to the Web form Refresh the page The page will cache for 20 seconds when not logged in Time is Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 38 3 Next to Time is add a literal Debug Data Format Table Frames Tools Window Help Debug Times New Roman Refresh the page The page will cache for 20 seconds when not logged in Tame is Literal Literal 4 Below that add a ContentBlock Server Control 5 Set the DefaultContentID For this example DefaultContentID 20 6 Add the following code to the code behind If Not ContentBlock1l IsLoggedIn Then Response Cache SetExpires DateTime Now AddSeconds 20 Response Cache SetCacheability HttpCacheability Public Response Cache SetValidUntilExpires True Response Cache VaryByParams id True Response Cache SetVaryByCustom cmsCache End If Literall Text Now 7 Build your Web form 8 Browse to your Web form with your browser 9 Press the refresh button on your browser If you are not logged in to CMS400 NET the time remains the same for twenty seconds After twenty seconds
109. Manual Version 6 0 for NET 2 0 Rev 8 Add New Item CMS400Intranet Categories Templates a a UI Code Web Service Mobile Web J Data Form E Web j ire C utility 5 H Module Component Class if Data Form DataSet Web User Wizard Control zj v A Form for Web Applications Name WebForm3 aspx coct_ noe 3 Add controls to determine the page content Making the Server Controls Available NOTE You must copy the dlls to a local drive before installing them You cannot copy them from a network drive 1 Display the Visual Studio 2005 toolbox View gt Toolbox 2 Right click the mouse within the Toolbox 3 Click Add Tab Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 10 4 Type Ektron Server Controls then press enter Components v HTML Clipboard Ring General Ektron Server Controls Sa Server Expl 3 Toolbox Output Click the Ektron Server Controls Tab Right click the mouse in the empty area Click Add Remove Items If using Visual Studio 2005 click Choose Items o Noo n The Customize Toolbox dialog appears Customize Toolbox Exi COM Components Name Namespace Assembly Name al O apopc Microsoft VisualBasic Comp Microsoft YisualBasic Compatibility Dat O apopcarray Microsoft YisualBasic Comp Microsoft YisualBasic Compatibility Dat Ad
110. NET 2 0 Rev 8 187 Search Server Control Property Description Data For more Type information see EnableArchivedBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform an Search Properties on archive search The default is False page 206 True The Include Archive check box is enabled in the advanced search properties If used with EnableArchived the check box is checked by default False The Include Archive check box is disabled in the advanced search properties EnableContent Enables users to search content The Boolean Using the Advanced default is True Search Properties on True Searching content is enabled page 206 False Searching content is disabled See Also i unless Content is checked in the EnableContentBtn on Advanced search page 188 EnableContentBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform a content Search Properties on search The default is True page 206 True The Content check box is enabled in the advanced search properties If used with EnableContent the check box is checked by default False The Content check box is disabled in the advanced search properties EnableContentFieldset Creates a border around the group of Boolean Fieldset Properties on content items in an advanced search These content items include Content Forms and DMS Assets The default is Fa
111. NET Functions click Display By Meta Value The Display By Meta Value box appears Ektron CMS400 Display By Meta Value Used to display a list of content block by Meta Valuer Control ID FolderID Metadatalistt _ Select the folder or fil itin above Recursive Order By Max Number of results ExactPhrase KeyWordName KeyWordValue Display Type Dynamic Content Parameter GetHtm Content Type Hide Visible Positioning info GridLayout Style Wrap tag Title Ascending o CI LinkTarget self iw leave blank if none 3 Use the following table to assist you with inserting Display By Meta Value Field Description Control ID A unique name for the function you are inserting Folder D The numeric id of the folder that you want to use If you do not know the folder ID you can navigate to it using the Select folder drop down box Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 329 Field Description Select Folder Select a folder path to be used When a folder is selected the folderlD textbox is filled with that folder s id number If you insert the Folder ID you do not need to select a folder Recursive Determines whether the Display By Meta Value control uses this folder s child folders Order By e Specify how you want to order t
112. No validation Cannot be blank Non negative whole number or blank Non negative whole number required Percent 0 100 required ZIP Code U S Social Securit Number U S peeun Choice Attributes Attribute Description name Assign a new name to each choice treelmg The icon to display for this field in the Select Field or Group dialog See Icons on the Select Field or Group Screen on page 595 Unlike toolbar icons you cannot create your own icons Note This attribute only applies to the Data Design of an Smart Form it does not apply to HTML forms Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 586 Choice Sub Elements Element Description For more information see caption Defines the displayed text for this choice The attributes and description are the same as lt caption gt elements for commands schema Defines a W3C XML schema WXS Defining a Schema definition for this choice The definition Fragment on may be a simple type defined by the page 587 datatype attribute and or a WXS fragment Note This attribute only applies to the Data Design of a Smart Form it does not apply to HTML forms calculate Defines an expression which normalizes Defining a a value prior to checking validation Calculation on page 588 validate Defines an expression that determines if Defining Validation a value
113. Pass in a valid language name and it will return the language ID String Argument IsValid This method returns a boolean You can pass ina language ID or a string and it will tell you if the system is supporting it Argument LanguageldList Read only Lists all the language IDs that are activated in Ektron CMS400 NET For information on how to enable languages see The Administrator Manual gt Multi Language Support gt Working with Multi Language Content gt Determining Which Languages are Available Array of Integers LanguageTitleList Read only Lists all the languages that are activated in Ektron CMS400 NET Array of Strings MultiLanguageEnabled Read only Tells if the site supports multi language mode True Multi language enabled False Multi language not enabled Multi language is enable by default in Ektron CMS400 NET To disable Multi language see Administrator Manual gt Multi Language Support gt Working with Multi Language Content gt Disabling Support for Multiple Language Content Boolean Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 131 LanguageAP Server Control Using the LanguageAPI Server Control Programmatically This example uses a logo that is not managed through Ektron CMS400 NET It retrieves the current language from the LanguageAPI control and uses that information to choose
114. Result Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 607 Class Controls resultbar The result s bar graph bar The following example shows the cell area in red Where did y n hear about ektron Medical 24 responses Co Worker ME 16 67 Friend MEE 29 17 Newspaper ME 12 50 Online EEE 20 83 Other ME 16 67 No Selection E 4 17 Refresh Result blogs css This file is located in webroot CMS400Demo Workarea csslib Itis used to customize the look of the Blog server controls The table below contains the following sections Layout Styles on page 608 Header Styles on page 609 Entry Styles on page 610 Calendar Styles on page 610 Blogroll Styles on page 613 Blog Categories Styles on page 614 Blog Recent Posts Styles on page 615 Style Class Description Layout Styles Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 608 Style Class Description div blog Affects the blog entry information contained in the Blog server control div blogEntries The border to the right of the blog entries in the Blog server control div blogSidebar The area where the blog calendar blog roll categories and recent posts are located in the Blog server control Header Styles div blogHeader The header area for the blog Affects the Blog and Bl
115. Server Control Properties The following table explains the properties of the poll server control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 176 Poll Server Control Property Value Data Type Poll ID The ID of the poll that appears where you inserted this Integer server control If you don t know the ID number of the form block use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 AddValidation Set to True to add Validation to your main runat server Boolean form Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 DynamicParameter To make this form block dynamic select id When you St
116. Size The font size of the search tag No Font Size on text page 436 Horizontal Determines if the search options Yes Horizontal on are in a row or a column 1 page 436 horizontal 0 vertical Spare1 Currently not used Must be Spare 1 on page 437 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 429 Search Functions Search Tag Example The following example places a text field and a search button in a table cell inside an ASP template SEES lt tc lt ecmSearch 1 search display aspi 25 200 u Search n Verdana Ive TLS ORS ORSON WEA 0 UU Tees lt td gt lt tr gt The previous example has the following properties e Searches the root folder in this case the content folder e Search is recursive e The target page is search display asp e The size of the text box is 25 e The search text box allows up to 200 characters e No image is used for a button Instead a standard submit button is used e The text on the submit button is Search e The search options appear in Verdana with a color of 808080 and a size of 2pt e The search options are arranged vertically When added to a template and visited the search tag will appear similar to the following Search RC International Microsoft Internet Explorer File Edit View Favorites Tools Help Om O x A A sewer ers Oh O ee 00sremeornep RO intern
117. Sort by the following criteria e Title The title of the content block e Date Created The date the content block was created e Date Modified The date the content block was last modified e Last Author Last Name The last author s last name e Last Author First Name The last author s first name e Ascending Alphabetic or numerical order e Descending Reverse alphabetic or numerical order Max Number of results Enter a number to specify how many results are displayed on the page O unlimited Display Type Determines how the information on the page is displayed None databind only ecmNavigation lists the title of every content block in the folder Used in ASP NET only See Also Example of ecmNavigation Display on page 85 ecmfTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 85 LinkTarget Defines the way a link acts when a link is clicked _blank This target causes the link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _ parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in t
118. Spare 1 One attribute field at the end is currently not used It is for future scalability When you insert a single metadata tag into a template you must leave this attributes as Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 493 Show Site Language Function Show Site Language Function NOTE This function lets a visitor to your Web site select a language in which to view the site Here is what the function looks like when published on a Web page Site Language English US gt Danish English US French Standard German Standard It lists all languages selected on the Settings gt Configuration gt Language settings screen For more information see the Multi Language Support chapter of the Ektron CMS400 NET Administrator manual Below is an example of the Show Site Language custom tag lt ecmShowSiteLanguage FieldName gt You can place this function in any location of any page on your site By default it appears in the lower right corner of the home page This function only works with Asp and ASP Net The attribute is described in this table Attribute Description FieldName An optional argument You can leave it blank and allow the drop down list to be populated by the available languages for your Web site For example lt S ecmShowSiteLanguage gt Or you can pass in an argument such as lt ecmShowSiteLanguage mysitelanguage
119. Start Page WebForml aspx WebFo Collection ID 1 Count 1 o GridView1 System Web UI WebControls GridVi gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 35 6 Right click on the GridView Then choose View in Browser The table appears LastEditorFname DateModified Html QuickLink HasErrors Teaser ID RC Internationals most successful entry in to the competitive 2 17 2004 CMS400Sample products aspx False RC racing 4 12 11 PM id 5 world is the RC Cheetah For more information on GridView DataList Repeater and DetailsView see the help inside Visual Studio Application Caching with Server Controls One of the most important factors in building high performance scalable Web applications is the ability to store items in memory the first time they are requested These items include data objects pages or parts of a page Known as caching this process allows you to use a number of techniques to store page output or application data across HTTP requests and reuse it You can store items on the Web server or other software in the request stream such as the proxy server or browser With caching the server does not have to recreate information particularly information that demands significant processor time or other resources This saves valuable time and resources There are two types of caching available e Caching Individual Content e Page Level Caching Caching
120. The Software is licensed for use only in delivered code form Each copy of the Software is licensed for use only on a single URL Each license is valid for the number of seats listed below the Basic Package Any use of the Software beyond the number of authorized seats contained in the Basic Package without paying additional license fees as provided herein shall cause this license to terminate Should CUSTOMER wish to add seats beyond the seats licensed in the Basic Package the CUSTOMER may add seats on a block basis at the then current price for additional seats see product pages for current price The Basic Packages are as follows Ektron CMS300 Licensed for ten seats 10 named users per URL Ektron CMS400 NET Licensed for ten seats 10 named users per URL Ektron eWebEditPro Licensed for ten seats 10 named users per URL Ektron eWebEditPro XML Licensed for ten seats 10 named users per URL For purposes of this section the term seat shall mean an individual user provided access to the capabilities of the Software The CUSTOMER may not modify alter reverse engineer disassemble or decompile the Software This software product is licensed not sold 2 Duration This License shall continue so long as CUSTOMER uses the Software in compliance with this License Should CUSTOMER breach any of its obligations hereunder CUSTOMER agrees to return all copies of the Software and this License upon notification and demand by
121. There are two versions of the toolbar that appear Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 127 e site visitor is logged into Ektron CMS400 NET RD be Gl Xx e site visitor is not logged in ToolbarLevel SX BB SRR MAS Oa Ye Mee ah Apply Style jE Eo X HTMLEditor Server Control NOTE For information on the Toolbar buttons and there functions see the User Manual Section gt Toolbars This property specifies the level of the toolbar feature set offered to site visitors It may be that they need a minimal set of functionality to keep the editing simple Or they need full functionality for a major edit The choices available are e None No toolbars are shown e Reduced Allows for minimal changes to the text HB ocew BIA Yue B e Default Loads the toolbars typically need for working with content Normal BIUXA amp amp nbsp i E B e 7 wi Hae e Calendar Loads the Paragraph and Paragraph Format toolbars amp Ba i1 s 3 K PEF mi uh mi Cu IA ve amp 8 e FormDesign Loads the toolbars that are needed to work with forms IMPORTANT The Data Designer is not supported when using the HTMLEditor server control Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 128 HTMLEditor Server Control 2 OBOHA Zoo Ye AOS B Normal BIU A L
122. This font is used for the search options displayed on the Web page Font Face Web Page View Cooper Black Search All the words C Any of the words C Exact Phrase l Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 434 Search Functions Font Face Web Page View Kristen ITC Search All the words C Any of the words Exact Phrase l Match Partial Words Font Color The color of the text in the search tag You may enter the color name or a hexidecimal value of the color Font Color Web Page View Red Search All the words C Any of the words Exact Phrase I Match Partial Words 14DA14 J Search All the words Any of the words Exact Phrase l Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 435 Search Functions Font Size This is the size of the text on the search tag Font Size Web Page View Search All the words Any of the words Exact Phrase 7 Match Partial Words m Search All the words c Any of the words c Exact Phrase r Match Partial Words Horizontal This attribute determines whether the search options are displayed vertically or horizontally Attribute Web Page View 0 vertical Search All the words C Any of the words Ex
123. Type Values Direction Determines how to order the either ascending they are arranged A hyperlinks on the list ascending or B C or 1 2 3 The sort field is determined by descending descending they are arranged the OrderKey property Z Y X or 3 2 1 If sorting by date descending puts the most recent first DisplayXslt Determines how information on String None databind only the page is displayed ecmNavigation lists the title of each content block See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of each content block plus the content summary See Also Example of ecmTeaser Display on page 85 ecmUnOrdered List sorts the list in no particular order Shows the title and content summary Path to Custom Xslt Enter the path to an Xslt that determines the display of the page GetHtml Set to True if you want to Boolean True Get and display HTML for retrieve and display content each content block in the list html body for all content summary blocks in the list summary For False Do not get and display example to display content HTML inside a web server control such as a GridView Hide Used to hide output of the list Boolean True Hide results summary in design time and run False show results time Language Set a language for viewing the Integer list summary The language property shows results in design time in Visual Studio and at run time in a browser Ektron CMS
124. Version 6 0 for NET 2 0 Rev 8 559 This function is basically the same as the RSS Summary function in ASP See RSS Summary Function on page 460 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below lt ecmRssSummary CMS400Demo false Title asc 0 gt Single Summary Function The single summary function is used to display the summary of one content block in the Ektron CMS400 NET Web site instead of a list of all the summaries in a content folder Seen below is the single summary function lt ecmRssSummary int contentID boolean showSummary java lang String showlInfo java lang String stylelnfo java lang String spare1 gt This function is basically the same as the Single Summary function in ASP See Single Summary Function on page 456 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below Single Summary Example lt TR gt lt TD gt lt ecmSingleSummary 14 true gt lt TD gt lt TR gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 560 Web Services Introduction to Web Services Web Services WS are reusable software components that can be consumed by variety of clients independent of operating system programming language or Web server using standard Internet te
125. Web form where the RSS Aggregator will reside 2 Drag and drop the RssAggregator server control on that Web form 3 Set the URL property to point at the RSS feed For example nttp msdn microsoft com rss xml 4 Save the Web form When a visitor to your site views the Web form in a browser he sees the RSS feed displayed properly When he refreshes the Web page any information that the RSS feed provider has updated is now reflected See Also Using the RssAggregator Server Control on page 181 By creating a custom XSLT you can change the way an RSS feed is viewed by your site visitors This subsection contains the following topics e RSSAggregator Server Control Properties on page 179 e Using the RssAggregator Server Control on page 181 RSSAggregator Server Control Properties The RSSAggregator server control properties are described in this table Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 179 RssAggregator Server Control Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15
126. a E 392 Standard MENU erensia aesan nae EARRAN EE 394 XME Index Sancii cisini aaide 397 Standard ASP NET MethodS ccccccecceeeceeeceeeeeeeeeeeees 403 Replacement of Standard Methods ccccssssereeesseeneeeees 403 Referencing Methods in Visual BaSiC csssseeesssseeeeeees 404 Adding a New Web Forim ccccccicscssssssnsnsccseneesesscsssasnsnennenensveees 404 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 XV Requirements for Standard Methods ccccsseeesssesseneenes 405 Standard Meth dSi senpasa 406 Addcontemt sissies a 407 Add Content Example acccicccsescescansessncccsncescecananseceneccancswaccunances 409 Custom ASP FUNCIONS 0 0cccccccsssseccesscccsssssccssesconsssenss 411 Logini FU CUIOIN issus aaa 414 Login Tag Example scssiicsccsccecisscccscccictscsscecsctanseccstcsacsecsscavacceccee 414 Placing Your Login BUM wsesccieccccmscccassecntsnccecctetennccseessenssnsncss 415 Content Block PUNCUOM wsiisiiiiisicscesciscnssnccanssnacsmnrnisacesneananns 416 Content Block Exar he Sisco csc cscs cecsecsntectsececccesiccccsceestzetess 418 State Content BOCK saasina MianmecerdasTammecesdasdamasesdaaasuece 419 Dynamic Content BIOCK stcscsczcccecssenshiccuseunsteceossssncdecesseenecsextsesntees 419 AML Content BGG ssscscssasdsneadeacasanseascasssanneaseaiaraaneareaianaanarcerianies 421 The Functions ArguUmMenis sez cucns cece cenicnieeceesenciareeetceie sarees sete 421 Dynamic and S
127. a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Used in ASP NET only Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code NOTE You see only the list of Ektron CMS400 NET content blocks if you are working online 5 Click insert A graphic indicates the static content block s location on the template FF Tite Untitied Page ot p Ot G lt body gt lt form gt lt body gt Content Block lt form id formi runat server gt lt cms contentblock id ContentBlocki DefaultContentID 30 runat server gt lt cms contentblock gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 309 Shown below is an example of the code that is inserted Platform Code View NET lt cms contentblock id ContentBlock1 DefaultContentID 12 runat server gt lt cms contentblock gt ASP lt ecmContentBlock 1 gt ColdFusion lt cfmodule id 1 template request ecm AppPath ecmContentBlock cfm gt JSP lt ecmContentBlock 12 gt PHP lt php ecmContentBlock 1 gt
128. a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code GridLayout Style Positioning Info Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px lt neau 9 lt body gt 5 When completed click Insert A graphic defines where the BreadCrumb Trail appears on your template 10 lt form _id formi runat server gt 11 lt cms BreadCrumb id BreadCrumb1 CurrentPageIndicator 12 myDisplayTitle Home Page LinkLastItem True runat server gt lt cms BreadCrumb gt 13 Shown below is an example of the code that is inserted Platform Code View NET lt cms BreadCrumb id BreadCrumb1 CurrentPageIndicator myDisplayTitle Home Page LinkLastItem True runat server gt lt cms BreadCrumb gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Ektron CMS400 N
129. a list of content folders If you insert the content ID you do not need to select a category Select Content Block The drop down box is populated with a list of all the content block titles within that folder When a title is selected the content ID textbox is filled with that content block s id number If you insert the content ID you do not need to select a content block Metadata types for Select the metadata types that you do not want added to the exclusion metadata function you are inserting Hold the control key down for multiple selections 5 When completed click insert 6 The following line appears in the lt body gt of the HTML code lt coms MetaData id MetaData2 runat server DefaultContentID 12 gt lt cms MetaData gt 7 Move that line from the lt body gt tag into the lt head gt tag lt HEAD gt lt title gt WebForm5S lt title gt lt cms MetaData id Metadata2 runat server DefaultContentID 12 gt lt cms MetaData lt meta name GENERATOR content Microsoft Visual Studio NET 7 1 gt lt meta name CODE LANGUAGE content Visual Basic NET 7 1 gt lt meta name vs_ defaultClientScript content JavaScript gt lt meta name vs targetSchema content http schemas microsoft com intellisense i lt HEAD gt lt body gt lt form id Formi method post runat server gt lt form gt lt body gt Save the Web form Open the Web page in the browser 10 Right
130. amp lt ul gt This example displays the quick link for every content block in the collection formatted as a bulleted list You can use similar code to display a List Summary or search results The following explains the new red code above labell Text lt ul gt displays the opening tag for the bulleted list For Each ekitem In myColl EkItems creates a loop for all content blocks in the collection labell Text amp lt li gt lt a href amp ekitem QuickLink amp gt amp ekitem Title amp lt a gt lt 1li gt for each content block in the collection displays its quicklink and title Next loops through all content blocks in the collection labell Text amp lt ul gt closes the bulleted list Server Control Properties in Code Behind Every server control has properties associated with it that you can only access programmatically This subsection explains what they are how to access them and how to use them Displaying Properties for a Control on page 20 Mutual Server Control Properties in Code Behind on page 21 Accessing Additional Properties on page 23 Accessing Items in an Array on page 28 Referencing the Page Property on page 28 Displaying Properties for a Control You can use Visual Studio 2005 s intellisense feature to display a control s properties The intellisense box appears as soon as you insert the period after the object as illustrated below
131. appear in the list summary Libraryltem library items appear in the list summary NonLibraryContent all types of content appear in the list summary except for library items Direction DisplayXslt How to order the hyperlinks on the list The sort field is determined by the OrderKey property Determines how the information on the page is displayed either ascending or descending String ascending they are arranged A B C or 1 2 3 descending they are arranged Z Y X or 3 2 1 If sorting by date descending puts the most recent first None databind only ecmNavigation lists the title of every content block in the folder See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 85 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 137 ListSummary Server Control list summary The language property shows results in design time in Visual Studio and at run time in a browser Property Description Data Type Values FolderlD The folder that contains the ID Integer content blocks which appear in the list summary See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 T
132. are below Static Content Block EES lt td gt lt php ecmContentBlock 1 gt lt td gt lt tr gt Dynamic Content Block lt tr gt lt td gt lt php ecmContentBlock id gt lt td gt lt tr gt XML Content Block lt tr gt lt td gt lt php ecmContentBlockEx 13 W 1 gt lt td gt lt tr gt Add Content The add content function allows you to programmatically add a new content block to Ektron CMS400 NET without the need of logging in Here is the format for the add content function lt AddConient Username Password Domain content title content_comment ContentHtm SummaryHTML ContentLanguage FolderID GoLive EndDate Metalnfo gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 525 This function is basically the same as the Add Content function in ASP See Add Content on page 424 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below Add Content Example The following is an example of the add content function in a template lt tr gt lt td gt lt td gt lt tr gt lt AddContent admin admin Content Title Comment This is the lt b gt body lt b gt of the content This is the lt i gt summary lt i gt for the content OS S Gg ail a
133. below Private Sub Page Load ByVal sende Put user code to initialize Dim mycb As New Ektron Cms Cc mycb EkIten End Sub Comment a ContentStatus Class ContentType DateCreated DateModified DefaultXslt DisplayDateCreated DisplayDateModified DisplayEndDate DisplayGoLiveDate a The additional properties are listed below NOTE The following properties are read only For example you can get a content block s ID and pass it through to another part of the code however you cannot set a content blocks ID to be shown mycb Ekitem id 8 will not set a content block s ID The correct way to set a content blocks ID is DefaultContentID 8 Property Description For more information see Comment The content block s comment ContentStatus The status of the content block Ektron CMS400 NET User Manual Appendix A Content e approved Statuses e checked out e checked in e expired e pending deletion e pending expiration e pending start date e submitted Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 24 Property Description For more information see ContentType One of the following To learn about archived content e It see the Ektron CMS400 NET i at User Manual Scheduling e archived content Content to Begin and End gt Setting Archive Options e archived forms e content e forms DateCreated T
134. below lt cfmodule template request ecm AppPath ecmMetadata cfm ItemList 1 2 gt fj metadata 1 Notepad A 5 x File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cMs200 Sample web site cms200 Login Information lt Title gt lt meta name Keywords content CMs200 content management solution business users developers benefits Ektron login gt lt head gt lt body gt paa bi lt html gt lt cfmodule template request ecm AppPath ecmMetadata cfm Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 517 ItemList 1 title 2 keywords gt fj metadata 1 Notepad lol x File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cMs200 Login Information lt Tit le gt lt meta name Keywords content CMs200 content Management solution business users developers benefits gt lt head gt lt body gt lt body gt lt html gt lt cfmodule template request ecm AppPath ecmMetadata cfm ItemList 1 2 title keywords gt i metadata 2 Notepad 10l x File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cmMs200 Sample web site lt Title gt lt meta name Keywords content CMS20
135. breadcrumb trail items on this Web form enter zero 0 Separator 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 gt Dev gt ebForm Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 296 Field Description DisplayStyle Indicate how to display the breadcrumb trail horizontally or vertically The default is Horizontal This is an example of Horizontal Dev gt WebForm gt pr gt FAQ gt Meta This is an example of Vertical gt Dev gt WebForm gt pr gt FAQ gt Meta Mode Allows you to make the breadcrumb trail appear as non hyperlinked plain text The default is Normal Normal breadcrumb trail is hyperlinked PR gt Webform gt search gt Meta DisplayOnly breadcrumb trail is plain text PR gt Webform gt EN gt Meta Hide Used to hide a Language API in design time and run time Checked Hide C Unchecked Show Language API Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 297 Field Description Wrap Tag Allows
136. cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 279 Field Description Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click insert A Blog Entries icon appears and indicates the Blog Entries location on the template lt cms BlogEntries id BlogEntries1 BlogID 41 runat server gt lt cms BlogEntries gt ie lt p gt amp nbsp lt p gt BLOG Entries Ektron CMS400 NET Developer Ref
137. causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _ parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting MaxCharacters ASP NET Text Box Max Char ASP CF JSP or PHP Specify the maximum amount of characters that is accepted in the text box Max Number of results Used in ASP NET only Enter a number to specify how many results are displayed on the page O unlimited When the Ajax property is set to checked the way this property works changes from the maximum amount of results to the maximum results per page This takes advantage of Ajax s ability to have paging in the searches If zero is entered all results appear on the same page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 383 Field Description Order By Specify how you want to order the search results that are generated when a search is performed on you Web site Also specify if you Used in ASP NET only want the results in ascending or descending order e Title The title of the
138. content Visual Basic NET 7 1 name CODE_LANGUAGE gt lt meta content JavaScript name vs_defaultclientScript gt lt meta content http schemas microsoft com intellisense ie5 name Vvs_targetSchema gt lt HEAD gt Shown below is an example of the code that is inserted Platform Code View NET lt cms MetaData id MetaData2 runat server DefaultContentID 12 gt lt cms MetaData gt ASP For ASP pages see Metadata Function for ASP CF JSP or PHP Pages on page 362 ColdFusion For ColdFusion pages see Metadata Function for ASP CF JSP or PHP Pages on page 362 JSP For JSP pages see Metadata Function for ASP CF JSP or PHP Pages on page 362 PHP For PHP pages see Metadata Function for ASP CF JSP or PHP Pages on page 362 Metadata Function for ASP CF JSP or PHP Pages For a description of the Metadata function see MetaData Server Control on page 167 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function To insert a metadata function Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 362 1 Move the blinking cursor to the area that you want to place it NOTE The Ektron CMS400 NET Metadata function should be inserted within the lt head gt tags of your template to work properly 2 From the list of Ektron CMS400 NET Functions click on Metadata 3 The Insert Ektro
139. content block e Date Created The date the content block was created e Date Modified The date the content block was last modified e Last Author Last Name The last author s last name e Last Author First Name The last author s first name e Ascending Alphabetic or numerical order e Descending Reverse alphabetic or numerical order PostResultsAt ASP NET The path of the Web page where the search results will be posted Target Page ASP CF JSP or PHP The symbol appears in the text box by default The symbol tells the control to post back to the Web page that created the search Important A search control must exist on the posting page Recursive If checked search information is gathered from the folder selected and all of its child folders Remove TeaserHtml An optional search result formatting parameter that removes all the HTML from each content item s teaser summary before sending it to Used in ASP NET only the browser Checked Remove HTML Fj Unchecked Do not remove HTML ResultTagld Specify the div tag control ID to display the search results This property is only active when the EnableAjax property is set to true Used in ASP NET only See Also ResultTagld on page 198 Select Folder Select a folder path to be searched If you insert the folder path you do not need to select a folder Ektron CMS400 NET Developer Reference Manual Version 6 0 for NE
140. easily define how the list summary data appears on the Web page Shown here is the format of the ecmListSummaryXML function lt ecmListSummaryXML Folder Recursive OrderBy MaxNumber ObjType SummaryType gt The ecmListSummaryXml function attributes are explained below Attribute Description Options Folder This is the folder the summary information will come from Any folder See Also Starting Folder on page 445 Recursive Allow the tag to get summary info from the child folders 0 Not Recursive See Also Recursive on page 445 1 Recursive OrderBy ASC DESC Order the hyperlinks by See Also Order By on page 447 Title DateModified DateCreated Startdate AuthorFname AuthorLname Order the hyperlinks in ascending or descending order Title asc Title desc MaxNumber Maximum number of summaries returned See Also Max Number on page 449 0 Zero Unlimited Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 450 XML List Summary Function Attribute Description Options ObjType Determines whether the list summary is for the folder or a single piece of content For example If the folder property books and Folder is chosen as the ObjType the list summary for the folder with books appe
141. ecmCollectionXML function allows you to easily define how the collection data appears on the Web page Shown here is the format of the ecmCollection function lt ecmCollectionXML int id boolean GetHtml gt This function is basically the same as the XML Collection function in ASP See XML Collection Function on page 471 for details T Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 547 The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below lt tr gt lt td gt lt ecmCollectionXML 24 True gt lt td gt lt tr gt Random Content Function The random content function is used to randomly display the content of a content block that belongs in a specified collection Displayed here is the format for the random content function lt ecmShowRandomContent int collectionlD int xsltld gt This function is basically the same as the Random Content function in ASP See Random Content on page 476 for details Random Summary Function Slmilar to the random content function the random summary function is used to randomly display the summary of a content block that belongs in a specified collection Displayed here is the format for the random content function lt ShowRandomSummary int collectionID gt This function is basically the same as the Random Summary functio
142. example is below List Summary Example lt TR gt lt TD gt lt CFMODULE template request ecm AppPath ecmListSummary cfm Folder Marketing News MaxNumber 0 Recursive 0 ShowSummary 1 StyleInfo OrderBy Title asc ShowInfo gt lt TD gt lt TR gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 507 XML List Summary Function RSS The XML List Summary function wraps XML around the properties of a list of content created as a list summary in the Ektron CMS400 NET Workarea Once created you can use the XML to display the list summary information The ecmListSummaryXML function allows you to easily define how the list summary data appears on the Web page lt TR gt lt TD gt lt CFMODULE template request ecm AppPath ecmListSummaryXML cfm Folder Recursive _OrderBy MaxNumber _ ObjType SummaryType _ gt lt TD gt lt TR gt This function is basically the same as the List Summary XML function in ASP See XML List Summary Function on page 450 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below XML List Summary Example lt TR gt lt TD gt lt CFMODULE template request ecm AppPath ecmListSummaryXML cfm Folder books Recursive 0 OrderBy Title asc MaxNumber 0 ObjType folder SummaryType alltypes gt lt TD gt lt TR gt List Summary
143. explanation of Business Rules and how they work see the Administrator Manual gt Business Rules BusinessRules Server Control Properties The following table explains the properties of the Business Rules server control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer String and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Hide Used to hide a form block in design time and run Boolean time True Hide Business Rule False Show Business Rule Language Set a language for viewing form content The Integer language property shows results in design time in Visual Studio and at run time in a browser RulelD The ID of the Ruleset to evaluate If you don t know Integer the ID number of the Ruleset use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 73 BusinessRules Server Control Property Value Data Type WrapTag Allows a developer to specify a server control s tag String The default is Span
144. following example shows the event title cell in red erari May Jum gt gt Sunday Monday Tuesday Wednesdey Thurecey Fhar Saturday CEE E r r Er r CE eA Er r E WA 1 EET 34s Siw Baw Baw Siw Bia Waa Er Bo TAa Baa Ba Bie waa Shin Sale Ban e font weight normal e font size 9pt e background transparent e font family Arial Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 630 Style Class Description Attributes and Default Settings mv_DayCellToday Today s event title cell The following example shows the day cell today in red sc March April May gt gt Sunday Monday Tuesday Wedreadey Thuredey Frictey Seturdey SoS 1 Sd a WA 3 WA a WS s WA s WS 7 Ala We WT 20 So FB 11 5 4 y Sd SB a3 a Biss Se Alas Go Si te Fg aT BL wv Wha Bla Bile Wha JIa Blo Vl we Bia Sole Sila Baw e background transparent e font family Arial e font weight bold e font size 9pt mv_TodayCell The font for the event pop up The following example shows the today cell font in red March April mer Sunckry Monday Tuesday Wodneoduf Thureday _Feidny Seturdsy FA WA a Al a A a 98 5s A o A a Bas BAe WA a 5a a a2 Sd a wE 14 a Blas Sd Se fFoohaii Locaton Shafer Stadum Start 1200 AM Eng 1200 AN 7d Al wz 5a oa 3 Alz Was Saa aa dG ze 3 Gar oe Be Ss Ale od Bo e font weight normal e font size 9pt e backgr
145. following is an example of the add content function in a template lt tr gt lt td gt lt AddContent admin admin Content Title Comment Tris 13 ENE lt b gt body lt b gt of the content This is the lt i gt summary lt i gt for the content 1033 31 QG 14 2004 11 55 AMY nv lt metadata gt lt meta id 3 gt ContentTitle lt meta gt lt metadata gt gt lt td gt EA Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 425 Add Content The previous example has the following properties The user admin is used to be authenticated The title of the new content block is Content Title The comment for the content is Comment The body of the content is This is the body of the content The summary of the content block is This is the summary for the content The language ID 1033 or English The folder ID 31 is where the content is added The start date is 06 14 2004 No end date is specified The metadata definition ID being set is 3 and the value is ContenttTitle Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 426 Add Content When this function is executed the content is added to Ektron CMS400 NET Displayed here is the record of the content in the workarea Lenin a a SS A E Properties Content Title Content ID Content Language Status Last User To Edit Last
146. form id formi runat server gt lt cems Search id Searchi FolderID 41 MaxResults 50 DisplayXslt ecmTeaser runat server gt lt cms Search gt ktron Search Tag Shown below is an example of the code that is inserted Platform Code View NET lt cms Search id Searchl FolderID 41 MaxResults 50 DisplayXslt ecmTeaser runat server gt lt cms Search gt ASP lt ecmSearch Products 1 SearchDisplay asp 10 25 Search Verdana Blue P eae 0 wee g gt ColdFusion lt CFMODULE template request ecm AppPath ecmSearch cfm StartingFolder Products Recursive 1 TargetPage SearchDisplay cfm TextBoxSize 10 MaxCharacters 25 ButtonImageSrc _ ButtonText Search FontFace Verdana FontColor Blue FontSize 2 Horizontal 0 gt JSP lt ecmSearch Products 1 SearchDisplay jsp 10 25 Search Verdana Blue toT 0 gt PHP lt php ecmSearch Products 1 SearchDisplay php 10 25 Search Verdana Blue s 0 j gt Search Display The search display custom tag creates the area where search results appear after a search is executed This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 387 To insert a search display function 1 Move the blinking cursor to the area
147. from Select the folder or fill it in above Display Style Horizontal Hide Visible of seconds CacheInterval Positioning info GridLayout Style leave blank if none Wrap tag Span 4 Use the following table to assist you with inserting a Folder Bread Crumb Field Description Control ID A unique name for the function you are inserting FolderlD The numeric id of the folder that you want to use If you do not know the folder ID you can navigate to it using the Select folder drop down box DisplayStyle Indicate how to display the folder bread crumb horizontally or vertically The default is Horizontal Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 392 Field Description Hide Used to hide a Language API in design time and run time Checked Hide C Unchecked Show Language API Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 30
148. function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click insert A Blog Categories icon appears and indicates the Blog Categories location on the template _ lt gt Code lt 3 spit 4 Design L Title Untitled Page rr lt body gt lt form id formi runat server gt ategories Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 277 Shown below is an example of the code that is inserted Platform Code View NET lt cms BlogCategories id BlogCategoriesl BlogID 41 runat server gt lt cms BlogCategories gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extens
149. gt For example lt ecmDHTML_GenerateNextGenMenu 1 gt To display more than one menu separate each id number with a comma For example lt ecmDHTML_GenerateNextGenMenu 1 2 3 gt 2 Ifthe user clicks text to display the menu place the following code within the template file where the text would appear Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 495 DHTML Menus lt ecmDHTML_DropNextGenMenu menu id number text user clicks to display menu gt For example lt ecmDHTML_DropNextGenMenu 1 Products S gt If the user clicks a graphic to invoke the menu use this syntax lt ecmDHTML_DropNextGenMenu menu id number lt img src graphic file name gt gt For example lt ecmDHTML_DropNextGenMenu 1 lt img src mymenugraphic jpg gt gt Displaying Menus in a Multi language System If your Web site supports multiple languages and the user selects a language before viewing the menu if an edition of the menu is available in that language it appears If not nothing appears For more information see the Ektron CMS400 NET Administrator Manual section Multi Language Support gt Working with Multi Language Content gt Working with Menus in a Multi Language System Customizing the Menu s Appearance ek_Menu js You can customize a menu s appearance such as the font style color and size So you have the flexi
150. gt element s attributes and child elements lt datadesign gt lt validation gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 590 lt custom gt optional tag lt caption gt lt selections name datatype gt lt listchoice gt 0 or more lt selections name examples gt lt listchoice gt 0 or more Element or Attribute Description lt custom gt Specifies basic data types available when customizing validation The types are defined in the lt listchoice gt elements see below lt custom visible true false Controls whether the Custom Validation field appears on the Properties dialog lt custom enabled true false Controls whether the Custom Validation field is active or grayed out on the Properties dialog If set to true the Custom Validation field is active if false it is grayed out lt caption localeRef id gt Specifies text to display in the validation drop down list The default caption is Custom Selections element for Data Typ e field lt selections name datatype gt The name must be datatype lt selections enabled true false Controls whether the drop down list is active or grayed out on the Properties dialog lt selections visible true false Controls whether the drop down list appears on the Properties dialog Listchoice element for Data Type fi
151. gt lt Hyperlink gt lt DisplayStartDate gt lt DisplayStartDate gt The content block s start date It is formatted as a string that represents Ektron CMS400 s display of the date lt FolderlD gt lt FolderlD gt The ID of the folder in which the content block is contained For example lt FolderID gt 0 lt FolderID gt lt ContentStatus gt lt ContentStatus gt The status of the content block lt Language gt lt Language gt The language of the content block lt DisplayDateModified gt lt DisplayDateModified gt edited It is formatted as a string that represents Ektron CMS400 s display of the date For example lt DisplayDateModified gt 1 19 2005 4 18 06 PM lt DisplayDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt The content block s end date It is formatted as a string that represents Ektron CMS400 s display of the date For example lt DisplayEndDate gt 12 31 9999 12 00 00 AM lt DisplayEndDate gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 473 XML Collection Function XML Tags Description lt EndDateAction gt lt EndDateAction gt What should happen to the content block on its end date e archive display e archive expire e refresh report For example lt EndDateAction gt Archive_Expire lt EndDateAction gt lt Comment gt lt Comment gt Comments contai
152. iaaa i a aai 156 TroeMenu XSL COE runn sxtacauerSesedeauesessenee 158 Retrieving the XML Structure of a MenU ssssssunnnnnnnnnnnnnne 158 DhtmlMenu Server Control ccssseeeeeeeeeeeseeeeeeeeeees 160 Menu Server Control vs DhtmlMenu Server Control 161 DhtmIMenu Server Control Properties cccssseeceeseseeees 161 WSING a Sie SIMNCC waszsdestsaecercecessiesscceegs biain ieas 165 Formatting the DhtmlMenu Server Control ccsssseeeee 166 MetaData Server Control ccccccccsseeeeeeeeeeeeeeneeeeeeneeeeeeeeeeeees 167 MetaData Server Control vs MetaDataList Server Control 167 MetaData Server Control Properties eecccseseeeeeeeeeeeeeees 167 Using the Simple Dublin Core Metadata Standard 0 c 168 Using the MetaData Server Control ccccsseessseesseeensennes 169 MetaDataList Server Control cccccessseeeeeeeeeeeeeeeeeeeneees 171 MetaData Server Control vs MetaDataList Server Control 171 MetaDataList Server Control Properties sssccesssseeeee 171 Retrieving the XML Structure of a MetadataList 175 Poll Server Comer birisiz neaei in 176 Poll Server Control Properties cccssseeeeceesseeeeeeeneeeeeees 176 Automatic versus Manual Generation of Form Tags 178 RssAggregator Server Control cssssssseeeeeeeeeeeeeeeeeeeeeees 179 RSSAggregator Server Control Properties ss eeeee 179 Using t
153. idani iaka A NAERA 14 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 ix Using CMS Explorer to Browse Your Ektron CMS400 NET Site 15 Build ihe PrO 6 Cts scenose 16 Inserting Server Controls Programmatically ssseceee 16 Steps to Insert a Server Control Programmatically 0 c cccee ie Step 1 Declare the Namespace ceeeeeceeeeeteeeeeeeeeeenaeeeeee 17 Step 2 Create an Instance of the New Control 0 00 18 Stepa SOL INE Prope eS snra 18 Step 4 Call the Fill MeNnNOd aiurri 19 Step 5 Use text Property to Display the Conttrol 05 19 Server Control Properties in Code Behind cceeeceeceeeeeeeees 20 Displaying Properties for a Control cceccseeeceeeeestteeeeeeeeneaes 20 Mutual Server Control Properties in Code Behind 0 21 Accessing Additional Properties cccesesssceeeeeeeeneeeees 23 Accessing items in an AITay sicticcncccctessnctastiarencianien micas 28 Referencing the Page Property 2 ccceeessseeeeeeeeeseeneeeees 28 Customizing Server Controls weciscsecesniveveweresnaneesserdsuneexatecdewierxs tower vane 29 Recognizing the Server Control Within the HTML 30 Recognizing the Server Control Within the Code Behind 30 Customizing the Server Control in the Code Behind 30 Troubleshooting Error Creating Control Message 000 31 Using
154. implementing it The PHP example is below lt php ecmRssSummary CMS400Demo 0 Title asc 0 gt Collection Function The collection function is used to display the list of links that were created as a collection in the Ektron CMS400 NET Workarea The ecmCollection function is highly customizable allowing you to easily define how the collection data will be displayed on the Web page Shown here is the format of the ecmCollection function lt PHP ecmCollection id displayFunction gt This function is basically the same as the Collection function in ASP See Collection Function on page 465 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 529 Collection Examples Example Using the ecmNavigation Display Function The following is an example of a collection function being used as a navigation menu in the Ektron CMS400 NET sample Web site lt php ecmCollection 1 ecmNavigation gt In this example the collection with an ID 1 is displayed and the function ecmNavigation is used to define how the collection data is displayed on the Web page Here is how the collection would appear on the Web page RG international Home Products Support Neve Careers Search ALEE Products Page Products RC Cheetah el
155. isisisi ai 613 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xxii Blog Categories StyleS iascia nanen ma iaioa a 614 Blog Recent Posts SWVICS minis creatine matinee ane 615 calendar Styles CS Sissonne E EE EaR E 616 Single Day View Day ssesssesseeesssessssnsssnrsssrnnsnnrsnnssrenssenn 617 Momh View MOM s sscccecsssvacccedan ss iciseavessssmieeeweeceseieedeeash antes 620 Mine View WING ssc ese ecret ocak cinea he nnee 632 Month Up with Event monthupwithevent eee 634 Event Type Control used in month display ceeeeeee 641 GOSIQNTONMENINY CS Siina 644 E E o R A E E E E A E T 644 CMS4OODEmMO GS Scinn 645 Developer StyleS CSS ccccececcceceeseeeeeeceeeeeeeeeeeeeeeeaaaeeeseeeeeeaaeeeees 645 Default COS ninin a 645 List Summary Ordered LiStiCSs omisas 645 List Summary UNOFGEredliSt CSS seciieccesnisseascaievsesseeeneetennscadisectvas 645 Collection OrderedList cSS ccccecceeeeceeeeeeneeeseceeeeeeeeeeeeeaeeneaes 645 Collection unorderedlist CS Snir 645 CS SMENU GS Sea E E ieai 645 Search u orderedLiSt ESS susare an 645 Discussion Board CSS FileS cccceceeeeeeeeeeeececceeeeseneeeeeaeeeees 645 Additional Information cceccceceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 647 SUP POP rig DOCU I EGS osc cascades cc acetate nce cnccel 647 SUPPO anrea E 647 Sal acca caste a a aai 647 IMPOPM ATOM ss sscssctesacsessscatecietacasvdcsatacastana
156. lt ImageOverride gt False lt ImageOverride gt lt Item gt lt Item gt lt ItemID gt 2 lt ItemID gt lt ItemType gt Submenu lt ItemType gt lt ItemTitle gt Book lt ItemTitle gt lt ItemImage gt lt ItemImage gt lt ItemImageOverride gt False lt ItemImageOverride gt lt Menu gt lt TD o s lt Title gt Book lt Title gt lt Template gt lt Template gt lt Type gt content lt Type gt lt ParentID gt 1 lt ParentID gt lt ImageOverride gt False lt ImageOverride gt lt Item gt lt ItemID gt 23 lt ItemID gt lt ItemType gt content lt ItemType gt lt ItemTitle gt VB NET How to lt ItemTitle gt lt ItemImage gt lt ItemImage gt lt ItemLink gt cms400demo collection aspx id 23 lt ItemLink gt lt ItemTarget gt 2 lt ItemTarget gt lt Item gt lt Menu gt lt Item gt lt Menu gt lt Item gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 500 Custom ColdFusion Functions Ektron CMS400 NET maintains and display content through the use of custom Ektron ColdFusion functions and ComObjects When using custom ColdFusion functions the following paths must be updated in the application cfm lt cfset application WSDLpath http localhost cms400demo WorkArea WebServices ContentWS asmx WSDL gt and lt cfset application AppPath cms400demo WorkArea platforms ColdFusion gt The application WSDLpath needs to updated with the location of the WSDL f
157. membership id Membership1 runat server gt lt cms membership gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Metadata for ASP NET Pages For a description of the Metadata function see MetaData Server Control on page 167 This tag appears on the following menu s Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 359 NOTE e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a metadata function 1 Move the blinking cursor to the area that you want to place it The Ektron CMS400 NET Metadata function should be inserted within the lt head gt tags of your template to work properly 2 From the list of Ektron CMS400 NET Functions click on Metadata 3 The Insert Ektron Metadata box is displayed Insert Ektron CMS400 metadata control l Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parameter 4 Use the following table to assist you with inserting metadata Field Description Control ID A unique name for the function you are inserting Co
158. must be installed on the server for more information see http msdn microsoft com netframework e Ektron CMS400 NET version 4 5 or higher Installation of Files Below is a list of the files and their locations that make up the Web Services feature They are installed when you install CMS400 NET File or folder location Description webroot cms400demo Workarea Entry point for Web Service This Web page webservices ContentWS asmx displays examples of all methods webroot cms400demo bin Directory for compiled Web Service code webroot cms400demo bin WebService dll Web Service dll Setup Instructions After you install CMS400 NET you need to open IIS select cms 400demo workarea and make it an application To make a folder an application follow these steps 1 Open IIS 2 Right click one of the folders listed above 3 Select Properties The Properties dialog appears Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 562 4 5 6 7 webservice Properties 21x Directory Documents Directory Security HTTP Headers Custom Errors When connecting to this resource the content should come from ted on another computer A redirection to a URL Local Path cmS4005 ample webservice Script source access IV Log visits V Read IV Index this resource T Write I Directory browsing Application Settings Application name CMS4005 ample Web
159. optional Details are provided below Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 584 Validation Attributes Attribute Description Possible values visible Controls whether the Validation field appears on the field s Properties dialog true false enabled name Controls whether the Validation field is active or grayed out on the field s Properties dialog If set to true the Validation field is active if false it appears but is grayed out The field type to which the validation configuration data applies A separate lt validation gt element must exist for each field type true false plaintext calculation Validation Sub elements Element Description For more information see Choice The calculation or validation expression for standard fields Choice Sub element on page 585 Custom The calculation or validation expression for custom fields Defining Custom Validation on page 590 Choice Sub element Every item in the validation drop down list must be defined within a set of lt choice gt tags Within the lt choice gt tags you define a caption a schema and either a calculation or validation expression The default validation choices appear below Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 585 r Validation No validation 7
160. properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Archived Signifies that the selected content is archived For more information on archived content see the User Manual section Scheduling Content to Begin and End gt Setting Archive Options Boolean Authenticated CmsSitePath Content ID ContentType A read only property that indicates if you are logged in to the CMS Explorer and can use it to browse to content collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DESIGN TIME ONLY Used to find the web service required to access the CMS in Design Time Specifies the content ID to load This value must match a value that exists in the CMS database The selection of content is similar to that in the ContentBlock control The content can only be accessed if the user is logged in This value can be set only on editor load before the editor and contents are rendered After editor load this value is ignored If this value is 0 then the code behind must handle making the calls that check out content and setting the content at edit time by placing it into the Text property for the editor A hidden field named EktContentID_ ControlName is created to hold this value It is posted up with the rest of
161. root menu This property appears in the Appearance category Font Bold Checking this box allows the font to appear bold Font_ltalic Checking this box allows the font to appear italics FontNames Enter the name of a font to use Font Size The size of the font SubMenultemHeight Sets the height of each submenu item in pixels The Default is 20 Example set to 20 Example set to 30 CMS Developer SubMenultemWidth Sets the width of each submenu item in pixels The Default is 150 Example set to 150 CMS Developer Example set to 130 CMS Developer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 323 Field Description SubMenuTopOffset Sets the location of the top of the submenu This number is in pixels The default is 5 Example set to 5 ASP NET Unleashed Programming C NET VB NET How to Example set to 0 zero ASP NET Unleashed Programming C NET VB NET How to Example set to 10 ASP NET Unleashed Programming C NET VB NET How to Book gt MenuStyle A specified inline style that defines the root menu For example if you enter the following in the MenuStyle property box font bold 18px Arial color royalblue color slateblue background StyleSheet Specify the location and style sheet for the submenu For example Workarea csslib mytest css Leave blank to use the default pop_styl
162. site Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 15 Ektron CMS Explorer fe Folders Corporate amp Human_Resources Marketing MISAIT Language fA Folder Selection News Sales E Users Select Cancel Navigate through the folders select an object then click the Select button The selected object is pasted to the server control property NOTE Although you see the object in the selected language in Visual Studio 2005 the language is not stored For example if you select a German content block whose ID 2 Ektron CMS400 NET only stores content block ID 2 When a visitor to your site browses to that page the content block does not appear in the selected language Instead it is determined by a cookie or the user s language selection Build the Project After you open the solution file in Visual Studio 2005 and add the required files build the project This may take a while the first time you do so After the project is built a browser opens and it is displayed as a Web page You can also view a Web page while working on it by right clicking on the Web form and clicking View in Browser Inserting Server Controls Programmatically Besides using the drag and drop method to insert a server control explained in Inserting Server Controls Using Drag and Drop on page 12 you can insert one programmatically You might prefer to insert server controls programmatically for sever
163. that you want to place it 2 From the list of Ektron CMS400 NET Content functions click on Insert Search Display Tag 3 The Insert Ektron Search Display Tag box is displayed Ektron CMS400 Search Display Tag Creates area where search results will be displayed Maximum Number of Documents 0 Style Info Zz Show Last Modified Date F 4 Use the following table to assist you with inserting a search display function Field Description Maximum Number of Specify the maximum amount of results that will be returned to the Documents user when a search is performed Style Info Insert an inline style sheet that will be used to format all the hyperlinks that are returned Show Last Modified Date Check off this box to show the last modified date with the search result This allows users to distinguish between updated and old content Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 388 5 When completed click insert A graphic to define where the search display tag has been placed on your template is inserted LTT Common Layout Test Tables Frames Forms Templates Character Media Head Sept ASP Ay RES BR BBOOSE SARIQA til lt gt 2 SE SD tae le 0 C m 0 T 28 lt tr gt 29 lt td gt dnbsp lt ecn_search gt 30 lt ecmSearch Products 1 SearchDisplay asp 10 25 Search 31 lt ecm_search gt ecm_se
164. the User Manual Section Blogs gt Blog Properties gt The Blog Roll Typically this control is displayed along side other Individual Blog server controls Using the individual server controls such as the Blog Roll server control allows you to have more flexibility for layout and appearance than if you use Blog server control BlogRoll Server Control Properties The following table explains the properties of the BlogRoll control The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String BlogID The ID of the blog in CMS400 NET For example 41 If you don t know the ID of the blog use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred
165. the code that is inserted Platform Code View NET lt cms LanguageSelect id LanguageSelectl runat server gt lt cms LanguageSelect gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP List Summary For a description of the List Summary function see ListSummary Server Control on page 135 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 346 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a list summary 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click List Summary 3 The Insert Ektron List Summary box is displayed Ektron CMS400 List Summary Control ListSummary is used to display a list of content block from a folder Control ID ListSummary1 FolderID Select the folder or fill it in above Recursive 7 Order By Max Number of results Display Type ecmTeaser Dynamic Content Parameter Random O
166. the content block with the corresponding ID appears on the Web page in the specified template E Empoyment Opportunities Microsoft Internet Explorer File Edit View Favorites Tools Help t Favorites GA Media Ol 2 Support News Careers Search Calendar Title Servo Control Engineer Job Number 124 RC International a leading supplier of consumer level radio controlled vehicles control engineer to join our team The candidate will jain our highly skilled tea week amen stian mendiinte Maen awnenibilitinng Fae thie masikini usi tl teal The id convention is used by Ektron CMS400 NET to generate quicklinks when content blocks are created For more information see the Ektron CMS400 NET Administrator manual section Managing Content gt Forming URLs For Ektron CMS400 NET Documents The dynamic ecmContentBlock function is almost the same as the static one see Static Content Block on page 419 The only difference is the parameter which makes the function dynamic The parameter uses a query string call Request QueryString to read the URL from the browser s address bar It treats everything after the question mark as a list of key value pairs separated by ampersands So Request QueryString passes the key as a parameter and returns its associated value For example in URL lt http localhost cms400demo index asp id 1 amp LangType 1036 gt the following QueryString calls return these values
167. the ecmTeaser Display Function The following is an example of a collection function being used as a navigation menu in the Ektron CMS400 NET sample Web site lt php ecmCollection 2 MyDisplayFunction gt In this example the collection with an ID 2 is displayed and the function ecmTeaser is used to define how the collection data is displayed on the Web page Shown here is how the collection would appear on the Web page RC international Home Products Support Nevs Careers Search Employment Opportunities Plastic Molder 123 8 27 2002 2 38 34 PM RC International is looking for an experienced plastics molder Servo Control Engineer 124 8 27 2002 2 40 26 PM me rk tl a fone dd foe Lieb ABN dd ne ee a S el ee be Sel oe ee bee As stated earlier the format of the collection on the Web page depends on the displayFunction that is used Shown below is the source code for the display function ecmTeaser Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 531 Function ecmTeaser cInfo global html html lt table border 0 cellspacing 0 cellpadding 0 width 100 gt ScInfo gt count for Siloop 0 Siloop lt Smycount Siloop ScInfo gt Item Siloop l Smycount Sinfo html html html html html html html html html nuounvnrnnnnnnH Ue U A Ur Ur U Nn DH Sinto html html html
168. the properties in the properties window In this example the hide setting must be set to true Remember to set the XmlConfigID This example uses ID number 4 4 Drag and drop a Literal on the Web form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 228 IndexSearch Server Control StartPage WebForm aspx WebForm aspx vb Authenticated ButtonText Search ContentParameter DisplayXslt ecmNavigation EmptyResultMsg Your search did not match am Folderid Hide HitsMarker Labelafter Labelbefore LabelBetween LabelContains LabeldateBetween LabelEqual LabelExactPhrase LabelGreaterThan Labelinputdate Labelinputnumber LabelLessThan Labelon LabelSelect Language OrderBy OrderByDirection Recursive SearchParmXML ShowSearchBoxAlways Weighted XmIConfigId ES Properties Dynamic Help 5 Add the following code to the code behind IndexSearchl Parm XPath root subject Dim arStr As String Dim Str As String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 229 IndexSearch Server Control Dim strRet As String arStr IndexSearchl GetXPathValues root subject For Each Str In arStr strRet Str amp lt br gt Next Literall Text strRet Here is a breakdown of the code Code snippet Description IndexSearchl Parm XPath Defines the parameter XPath location root subject Dim arStr A
169. the search returns no hits The default is Search returned zero results EnableAdvancedLink Used in ASP NET only Set to true to display the link that makes the advanced properties available Checked Display Advanced link C Unchecked Hide Advanced link See Also Using the Advanced Search Properties on page 206 EnableArchived Used in ASP NET only Enables users to search archived content The archived content must be archived as Archived Remain On Site The default is False Checked Searching archived content is enabled C Unchecked Searching archived content is disabled unless Include Archived is checked in the Advanced search See Also Using the Advanced Search Properties on page 206 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 379 Field Description EnableArchivedBtn Used in ASP NET only Provides a check box so users can decide if they want to perform an archive search The default is False Checked The Include Archive check box is enabled in the advanced search properties If used with EnableArchived the check box is checked by default C Unchecked The Include Archive check box is disabled in the advanced search properties EnableContent Used in ASP NET only Enables users to search content The default is Unchecked Checked Searching content is enabled C Unchecked Searchin
170. their label names see on the site in French and LabelBet This is useful for Multi English 398198 een language issues For LabelContains example if you have a French LabeldateBetween site you change Equal to English LabelEqual Egale No Selection LabelExactPhrase No Selection LabelGreaterThan English Labelinputdate EHTE Equal Labelinputnumber Sems Than LabelLessThan French etween Labelon AHAS Egale LabelSelect Aucun Choix Note These label properties will not change based on the Egale Language property s setting Moins Que For example setting the Plus Grand Que Language property to 1036 Entre will not change these labels to French Language Set a language for viewing Integer index search results The language property shows results in design time in Visual Studio and at run time in a browser Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 222 IndexSearch Server Control Property Description Data Type Values LinkTarget Defines the way a link acts when a link is clicked String _blank This target causes the link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _parent This target makes the link load in the immediate frameset parent of the document Th
171. to its properties Create a string that contains the output myString Dim myString As String Set the object s text property to that string myString amp lt a href _ amp ListSummaryl EkItems i QuickLink amp gt amp ListSummaryl EkItems i DateCreated amp lt a gt lt br gt Wrap in a loop so it loops through each of the items Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 32 Data Binding with Plastic Molder 123 Dim i For i LBound ListSummaryl EkItems To UBound ListSummaryl EkItems Next This example outputs the date created for each content block in a List Summary PVLAMNIVUSYUTTSVVUCAaINpres live Browse WebForms 1 4 2005 4 23 36 PM 1 4 2005 7 35 38 PM 1 4 2005 7 31 25 PM 1 4 2005 4 27 47 PM 1 4 2005 7 26 08 PM 1 4 2005 4 17 18 PM Server Controls With data binding you can bind Ektron server controls to a GridView Control DataList Control or Repeater Control This gives more flexibility when you use data from the Ektron server controls Some benefits of data binding are ease of data manipulation and the ability to format data 13 RC International is looking for an experienced plastics molder The following are data bindable Ektron Server Controls e Collection e Content Block e Form Block e List Summary e Search The following is an example of code behind that uses a GridView to display a Collection Dim myCol As New Ektron Cms
172. week header in red lt lt Apr May 2005 Jun gt gt 5 5 2005 BBM ion Tue wed thu Fri Hockey Game 6 Location VWA 1 231615 7 8 9 10 11 12 113 44 15 16 17 18 19 20 21 22 23 24 25 26 27 23 Manchester Monarchs take on 29 3 301 the Portland Pirates 2004 2005 2006 e background ddddff e font family Arial e font weight Bold e font size 8pt e border right aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid e text align center Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 636 Style Class Description Attributes and Default Settings mup_weekdayDOWHeader Weekday day of week header The following example shows the weekday day of week header in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Hockey Game Sun Sat BUEN at cation VWA 8 9 10 11 12 13 44 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Manchester Monarchs take on 29 30 31 the Portland Pirates 2004 2005 2006 e background eeeeff e font family Arial e font weight Bold e font size 8pt e border right aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid e text align center mup_yearFooter The year selection cell The following example shows the year footer in red lt lt Apr May 2005
173. when you refresh you get the new time NOTE The same code can be employed in a user control to cache the output in a particular region of the page List of Server Controls To customize your Ektron CMS400 NET application you can use these server controls Server Conirol Description More Information Names Analytics Tracker Track statistics about visits to your Web Content Analytics Server Control on site page 89 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 39 Server Control Names Description More Information Blog Ektron provides eight server controls Blog Server Controls on page 43 that so to displaying a Blog ona Web Blog Server Control on page 43 eae BlogEntries Server Control on e The Blog server control page 45 e The BlogCalendar server control BlogPost Server Control on page 48 BlogCalendar Server Control on e The BlogCategories server control page 50 e The BlogEntries server control BlogRoll Server Control on page 54 The BlogPost server control BlogCategories Server Control on page 55 e The BlogRecentPost server control BlogRecentPosts Server Control on e The BlogRoll server control page s6 BlogRSS Server Control on page 57 e The BlogRSS server control BreadCrumb Creates a breadcrumb trail of where site BreadCrumb Server Control on visitors have been and allows them to navigate back to p
174. you need to drag and drop a literal box on your Web form Dim MyContentBlock As New ContentBlock MyContentBlock DefaultContentID 8 MyContentBlock Page Page MyContentBlock Fill Literall Text MyContentBlock EkItem Html To display a content block with the content block title do the following NOTE Before adding these lines of code you need to drag and drop a two literal boxes on your Web form Dim MyContentBlock As New ContentBlock MyContentBlock DefaultContentID 8 MyContentBlock Page Page MyContentBlock Fill Literall Text MyContentBlock EkItem Title Literal2 Text MyContentBlock EkItem Html Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 99 ContentList Server Control ContentList Server Control The ContentList server control is used to display 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 uses content from any CMS400 NET folder When added to a template and visited a ContentList Summary looks like this About Us AntiBody Therapy Ektron Rated Positive Phone Numbers Renal Services Depending on the setting you choose for DisplayXslt you can change the amount of information displayed for each content block See Also DisplayXslt on page 102 There are two options for the ContentList server control to display a content list First by defining a content lis
175. your site 11 Press OK Removing the Server Controls Display the Visual Studio 2005 toolbox View gt Toolbox Right click the mouse within the Toolbox Click Add Remove Items If using Visual Studio 2005 click Choose Items Po NS Click Namespace or Assembly Name to sort the Server Controls by manufacturer Uncheck all boxes that are Ektron Cms Controls Click OK Right click the Ektron Server Control Tab Click Delete Tab to remove it ONO Updating the Server Controls To update the server controls you must first remove the existing server controls in Visual Basic then add the new server controls For information on removing server controls see Removing the Server Controls on page 12 For information on adding server controls see Making the Server Controls Available on page 10 Inserting Server Controls Using Drag and Drop Because Visual Studio 2005 is a visual environment you can watch the page layout change as you add or move a control and adjust its properties And whenever you need to identify an Ektron CMS400 NET object such as content block or collection you can use the CMS Explorer to visually browse to and select it Adding a Server Control to a Template 1 Display the Visual Studio 2005 toolbox View gt Toolbox 2 Click the Ektron Server Control tab Ektron CMS400 NET s server controls appear Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 12
176. 0 Example Using the ecmNavigation Display Function 530 Example Using the ecmTeaser Display Function 000 531 Collecion VANABIES sissccssisscbsrasnaieaiosecatsasaiacaacesuaareassandaneenacsannansns 532 Display FUNUN ss seccccteisaqereneccsraceee i i aai 532 AML Collection Funictl ow isscicscccccecsaseccsccccaceccecsetastsenseatcerecteaais 532 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xix RSS Collection Function ccccccececceeecceeeeceeeeeseeceeeereeseeesens 533 Random Content Function eiiccsicccsececsescssccenensscensesennesensesereesees 533 Random Summary Function ssseecceessseeeeeeeseeeeeessseneneeeees 533 Event Calendar Function issssscsssccsasesssnsscsnnsnscnsnstasaseneasrnsisnncve 534 Event Calendar SamplErssnomnosn einh 536 Form FUNCH ON sssini aeaaaee sents etiaro Areo SANAN ESEE 536 MultiPurpose FUNGUO owiencicenescessccncendcxensncensuncncescectnaxsnncnaecsss 537 Metadata FUNCUON iit a aasa aiaiai 537 DATME MNS aeie 539 Additional Documentation in Ektron Knowledge Base 45 540 Displaying a Menu on a Web Page ceeeeeeereneeeeeeeereneeees 540 GenerateMenu and DropMemu 2 cceeeeeeeeeeneeeesteeeeeenes 540 Customizing the Menu s Appearance ccceeeeeeeeeeseeeeeeteeeeeeees 540 OK MOMU A A E N E E P 540 AME Menu FUNCHOM siinse aieiai 541 Language Select Function csecscsserssecensserssess
177. 0 content solution business users developers its gt DHTML Menus Ektron CMS400 NET s Menu feature lets users create and maintain a dropdown menu system for your Web site The Menu feature lets you display menu options that link to content blocks library assets external hyperlinks and submenus Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 518 To learn more about menus please refer to the Menu Feature chapter of the Ektron CMS400 NET User Manual Additional Documentation in Ektron Knowledge Base This chapter explains how to implement standard menus that ship with Ektron CMS400 NET Ektron s Web site also provides Knowledge Base articles that explain how to extend the standard menu features Displaying a Menu on a Web Page GenerateMenu and DropMenu IMPORTANT The menu functions described below are only one example of how to implement menus You can implement your own menu system using JavaScript Use the GenerateNextGenMenu and DropNextGenMenu custom functions to display a DHTML menu on a Web page Place GenerateNextGenMenu once on the page to provide an infrastructure for DropNextGenMenu Then place DropNextGenMenu as needed to implement individual menus Follow these steps to display a menu on a Web template 1 Place the following code directly after the page s lt body gt tag lt CFMODULE Ids menu id number template request ecm AppPath ecmDHTM
178. 0 three hundred See Also Caching with Server Controls on page 36 Style Positioning Info Set position information of a control as absolute when using a GridLayout GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 393 CMs400 5 When completed click Insert A graphic defines where the Site Map appears on your template Ie I Ge Site Map Shown below is an example of the code that is inserted Platform Code View NET lt cms sitemap id sitemapl folderid 32 runat server gt lt cms sitemap gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Standard Menu For a description of the Standard Menu function see Menu Server Control on page 152 This tag appea
179. 0 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 143 Login Server Control Properties The following table explains the properties of the Login server control Note Login Server Control The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String AutoLogin When set to true users are automatically logged in using Active Directory authentication They do not need to enter a username or password The default is False True Use Active Directory authentication when logging in False Do not use Active Directory authentication when logging in Important For this property to function properly you must be using Active Directory authentication with your CMS400 NET Site Boolean Hide Used to hide login button in design time and run time True Hide login button False Show login button Boolean Language Set a language for the Login server control The language property shows results in design time in Visual Studio and at run time in a browser Integer OnlyAllowMemberLo
180. 00 NET Xslt3 The content block s third Xslt as defined in Ektron CMS400 NET Xslt4 The developer can use this property programmatically Ektron CMS400 NET only uses Xslt1 2 and 3 in the workarea Xslt5 The developer can use this property programmatically Ektron CMS400 NET only uses Xslt1 2 and 3 in the workarea Accessing Items in an Array To access and manipulate content blocks returned by an object use the common class Ektron Cms Common ContentBase Ekltems is an array of Ektron Cms Common ContentBase Ek tem is a single Ektron Cms Common ContentBase Search Collection and ListSummary have Ekltems an array of ContentBase while and ContentBlock have a single Ekltem Here is an example of how to use this feature dim MyC as new Ektron Cms Controls Collection MyC DefaultCollectionID 1 MyC Page Page MyC Fill dim item as Ektron Cms Common ContentBase MyC Text lt ul gt for each item in MyC EkItems MyC Text amp lt li gt amp item Title amp lt lI gt next MyC Text amp lt ul gt Response Write MyC Text This example formats every item in the collection in a bulleted list Referencing the Page Property Server controls require a reference to their parent page for example utilizing the DynamicParameter property on a content block to check for a query string you must provide access to the page object if you declared your control in the code Ektron CMS400 NET
181. 1 500 pages this book covers an incredible amount of territory from the evolution of programming languages and web development all the way to advanced data structures and web services lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 3 3 2005 5 15 30 PM lt pubDate gt lt item gt lt item gt lt title gt Simply Visual Basic NET 2003 lt title gt lt link gt http ocalhost cms400demo collection aspx id 26 lt link gt lt description gt An Application Driven Tutorial Approach lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 1 8 2005 10 50 30 AM lt pubDate gt lt item gt lt item gt lt title gt Microsoft ASP NET Programming with Microsoft Visual C NET lt title gt lt link gt http ocalhost cems400demo collection aspx id 25 lt link gt lt description gt Teach yourself how to write high performance Web applications with ASP NET and Visual C NET one step at a time lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 1 4 2005 7 16 21 PM lt pubDate gt lt item gt lt item gt lt title gt HTML for the World Wide Web with XHTML and CSS lt title gt lt link gt http localhost cems400demo collection aspx id 27 lt link gt lt description gt The easiest HTML book we ve seen that still manages to be comprehensive and to stay firmly grounded in the reality of today s demanding users and comp
182. 2 0 Rev 8 92 ContentBlock Server Control Property Value Data Type WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Elektron Authenticated True DefaultContentID 28 i DisplayXslt DynamicParameter Hide False Language 1033 OverrideXslt Default In the above example the server control retrieves content block id 28 and displays it in the browser Dynamic Content Block 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 News RC International Announces the RC Cheetah Microsoft Internet Emer RE International Home Products Support News Careers Search Calendar The following table explains how to complete the ContentBlock server control s properties to insert a dynamic content block on a template Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 93 Note ContentBlock Server Control The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these propert
183. 26 27 28 Manchester Monarchs take on 29 30 31 the Portland Pirates 2004 2005 2006 The background for the event display The following example shows the event display background in red lt lt Apr May 2005 Jun gt gt Sun Mon Tue Wed Thu Fri Sat m21 3 4 5 6 i 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2004 2005 2006 e background eeeeee e font family Arial e font weight Bold e font size 8pt e text align center e background eeeeff e border right aaaaaa 1px solid e border top aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 639 Style Class Description Attributes and Default Settings mup_eventDisplay The event display The following example shows background the event display in red transparent Note mup_eventDispBkg deals with the background layer of the event display mup_eventDisplay deals with the layer the event is displayed on mup_eventDisplayDate lt lt Apr May 2005 Jun gt gt Sun Mon Tue Wed Thu Fri Sat 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 23 29 30 31 2004 2005 2006 The event display date header The following example shows the event display date in red lt
184. 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click insert An Analytic icon appears to indicate that content is being tracked If you are logged in as a CMS user and visit the web page you see the Analytic information If you are not logged in you see nothing lt body gt lt form gt A L2 Code lt 3 split L Design Title Untitled Page ol es G amp G Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 268 Shown below is an example of the code that is inserted Platform Code View NET lt cems AnalyticsTracker id AnalyticsTracker1 DefaultContentID 30 runat server gt lt cms AnalyticsTracker gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog For a description of the Blog function see Blog Server Control on page 43 and Blog Server Controls on p
185. 400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 102 ContentList Server Control Property Description Data Type Values LinkTarget Defines the way a link acts String _blank This target causes the when a link is clicked link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _ parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 103 ContentList Server Control Property Description Data Type Values MetaTag Specify a Metadata definition Integer whose type is Content Selector When you do the associated list of content items will appear where you place the server control Warning You cannot insert other metadata types This works with the DefaultContentID property See Also DefaultContentID on page 101 Using the DefaultContentID and MetaTag Properties on page 105 For more i
186. 400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 107 ContentList Server Control 7 Add the name of the Metadata field in the Workarea to the MetaTag property WrapTag span jH anant 8 Set all other properties using the table in ContentList Server Control Properties on page 100 9 Once the Web form is saved navigate to the page and the content list is displayed Untitled Page Microsoft Internet Explorer provided by Ekt File Edit View Favorites Tools Help Address http localhost CMS400Demo webform aspx i Links 4 Intranet home Ektron Inc 4 CMS400 Developer Section Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 108 ContentList Server Control Using the ContentID Property to Display a Content List 1 Ona Web form in Visual Studio add the ContentList server control 2 Add a comma delimited list of content IDs to the Contentlds property Properties ContentListi Ektron Cms Controls ContentList WrapTag span 3 Set all other properties using the table in ContentList Server Control Properties on page 100 4 Once the Web form is saved navigate to the page and the content list is displayed Untitled Page Microsoft Internet Explorer provided by Ekt File Edit View Favorites Tools Help Qa O x A GD O seah shy Favorites Address http flocalhost CMS400Demo webform aspx i Links Intranethome Ektron
187. 400 NET functions click Blog RSS Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 290 3 The Insert Ektron CMS400 NET Blog RSS box appears Ektron CMS400 BlogRSS BlogID Select the folder or fill it in above of seconds Cachelnterval Hide 1 Visible Positioning info GridLayout Style Wrap tag Span 4 Use the following table to assist you with inserting the Blog RSS function Field Description Control ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 291 Field Description Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show funct
188. 6 0 for NET 2 0 Rev 8 82 Collection Server Control Property Description Data Type Authenticated Indicates if you are logged in to the CMS Explorer String and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 ContentParameter Checks the QueryString for this value and String replaces the collection with a content block when specified Leave blank to always display the Collection or List Summary DefaultCollectionID The ID of a collection that appears where you Integer inserted 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DisplayXslt Determines how the information on the page is String displayed None databind only ecmNavigation lists the title of every content block in the collection See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of eve
189. 8 5 2 a Work Poets Hecke uarctmtes 2 2 u zs Fe z 2 2 2 xn e background transparent e font family Arial e font size 9pt e text align left e vertical align top etCtrl_selectBox The event type selection box The instructions cell for event type control The following example shows the selection box in red auna Moniy Tusedey Meien Thori Toon Sanmi i i i 4 5 amp Li ttot Gans a 2 ii 2 2 3 16 n 18 z 2a a Wort Peed Hockey Caressa 2 ro Po P u a a n e background c5daef Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 643 designformentry css Used internally by the Ektron CMS400 NET It should not be changed pop_style css This file is located in webroot CMS400Demo Workarea csslib It is used to customize the look of the DhtmlMenu server control The following is a list of style sheet properties that can be modified Style Class Description Attribute Default Value lowText Text of the floating e color e 000000 Black menu as displayed on the menu e font e 12px Arial sans serif e text align e left e text decoration e none highText Text of the floating e color e 000000 Black menu when highlighted e font e 12px Arial sans serif e text align e left e text decoration e none roothighText Text of the root e color e 000000 Black _____________ menuasdisplayed Note This class on a Web page e fon
190. AML Men scssi ipsa 499 Custom ColdFusion Functions cssccsssesseesseeseees 501 Login FUNCION sisira Eaa a a E a 503 Login Tag gt fel gale oieerrrerererrrrrrr rer rcrrrs rere ere ear retrrerterrrr rere rc 503 Content Blok Puri inisinia reren 503 Slalic Comen BIOCK rrsinannsnionkeri inps 504 Dynamic Content BlOCK riicsornesin Wintec hes eet 504 AMLE COMOn BIOO ccrann n 504 Add COmMent sariren 504 Add Content EXAmMPlE sarsies e aea 505 Random Content FUNCOM iiiriisisinisiiniaia nnns 505 Random Summary Function ssseccceessseeeeeessseeeeeeeeseeeeeeeees 506 Search FUNC UO ssccsiniaciniscansersncrtsnssreuiensncastentonsssannninnnaaes 506 DSOANC MN Tag EXIME xinssucesusatessucscneasageedaaveceadastnsvcscadeinaneeadAaapaees 506 Search Display FUNC iiscscesscccsccsnnccccsccsanancncencccccentenscccceannacs 507 Seale Display Exe Mp siseteceasacssecsdeocadeiecedasa sins dedeassnssntantoaiat sere 507 List S mmary FUNGUON sessceccccssnccccccnnssstncssanuscencsacnsecseesannoncences 507 List Summary Example ss sieteissiasnitecaspasatietssiapaicieniatessssiezatannntiess 507 XML List Summary Function cccceseseeeeeeeeeeeeeeeeeeeeeeeneeeees 508 XML List Summary Example sjin sgnneeotees 508 RSS List Summary FUNCOM acne cs cceeteecesctesccscctestseessacests 508 Wist Summary EXA mpl Esino 508 Archive List Summary Function cccceeeeeeeeeeeeeneeeeeneeeees 509 Single Summary FUNCTION ceseseeteeesseeeeseeeesseeeenesee
191. AND condition AddCondition isInEktron condition AddCondition isMemberShip 3 Execute the search SearchManager search new SearchManager UserData result search Execute condition Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 603 Cascading Style Sheets Below are descriptions of the various Cascading Style Sheets used in Ektron CMS400 NET reportchart css Class The reportchart css file allows you to change the look and feel of the postback reports used with forms This files default location is webroot CMS400Demo Workarea csslib Controls TABLE tblreport The area where the report appears The following example shows the area where the report appears in red Where did you hear about ektron Medical 24 responses Refresh Result Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 604 Class Controls A refreshlink A refreshlink ACTIVE The Refresh Results link that appears below the report The following example shows the Refresh Results link is highlighted in red Where did you hear about ektron Medical 24 responses Co Worker ME 16 67 Friend EEE 29 17 Newspaper EE 12 50 Online BEE 20 83 Other ME 16 67 No Selection E 4 17 The Refresh Reuslts link as you are clicking on it A refreshlink VISITED The Refresh Reuslts link after you have clicked on it
192. AdvancedLink on page 187 When the Advanced hyperlink is enabled this is how the search appears Search Text All the words Any of the words Exact Phrase Ph Para Wont When the Advanced hyperlink is clicked this is how the search appears This assumes all choices are enabled and automatically checked For examples of setting up an advanced search see Using Standard and Advanced Searches Together on page 209 Content Y Forms V DMS Assets images JFiles Hyperlinks JiIntranet Folders Only Sere ex All the words O Any of the words Exact Phrase C Match Partial Words Using Standard and Advanced Searches Together You can use a mix of the standard search and advanced search to force people to search by certain properties while giving them a choice on others For example you want users to always search Content yet give them an option to search forms files and images The following examples illustrate how to configure the Search server control using the advanced properties If a property is not mentioned in the examples below use its default setting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 209 Search Server Control Description How the Search Appears to Site Visitors Property Settings Search content only Do not let the site user EnableAdvancedLink False EnableContent True change advan
193. Affects the Blog and BlogRececntPosts server controls The following example shows the link area for recent posts in red Recent Posts The recent posts links Affects the Blog and BlogCategories server controls The following example shows the recent posts links in red Recent Posts What is Guillain Barre Syndrome GBS World Population to reach 6 5 Billion Welcome to ektron Medical calendarStyles css This file is located in webroot CMS400Demo Workarea csslib It is used to customize the look of the Calendar server control The table below contains the following sections Single Day View Day on page 617 Month View month on page 620 Inline View inline on page 632 Month Up with Event monthupwithevent on page 634 Event Type Control used in month display on page 641 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 616 Style Class Description Attributes and Default Settings Single Day View Day dv_HourCell The workday hour cells The following example shows these cells with a red background e background 99DDFF e font family Arial Arial Narrow Times New Roman e font size 9pt e font weight bold dv_HourCellEve The evening and morning hour cells The following example shows these cells with a red background e background 6699DD e font family Arial Arial Narrow Times N
194. Block function displays an HTML form content block For more information about HTML forms see the Ektron CMS400 NET Administrator manual chapter 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 the Ektron CMS400 NET Administrator manual chapter Managing Library Assets section Updating Default Template for Multiple Quicklinks Here is the format for the form custom function lt CFMODULE template request ecm AppPath ecmFormBlock cfm ID gt This function is basically the same as the Form function in ASP See Form Function on page 485 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below Here is an example of a form content block in an Ektron CMS400 NET template lt tr gt lt td gt lt CFModule template request ecm AppPath ecmFormBlock form_id 1 gt lt td gt lt tr gt MultiPurpose Function The ecmMultiPurpose function displays either a content block or an content block associated with a form As a result you can use one template to display both types of content block Here is the format for the Multipurpose function lt CFMODULE template request ecm AppPath ecmMultiPurpose cfm DefaultID gt To
195. BlogRoll Server Control PropertieS c cccessseseeeeeeeeeeeseaeeeeee 54 BlogCategories Server Control ccccessseeeeeseeeeeeeneeeeeeeeeeees 55 BlogCategories Server Control Properties cceceeeeecssteeeeeeeeee 55 BlogRecentPosts Server Control ccsssssseecceeeeesseeeeeeeeeeeeeeees 56 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 x BlogRecentPosts Server Control Properties ccceeeeeeeeseeeees 56 BIOGRSS Server Control nacciccencccccassncscsccpetacsocnensnaneensenantsoeccsnne 57 BlogRSS Server Control Properties ccccceceseeeeeeeeeeeesneeeeeees 58 BreadCrumb Server Control cccssssssssseeeeseeeeeeeeeeeeees 59 BreadCrumb Properties Apply to Web Forms Not Web Pages 61 Types of BreadCrumb Server Control Properties 61 Properties that Determine a Breadcrumb Trail s Appearance 61 Properties that Determine How Pages Associated with the Form Appear on a Breadcrumb Tall ccessst cecesaspssecocsastyeteceeseduadsecesssayedaes 62 BreadCrumb Server Control Properties cccsssseeeeeeeees 62 BreadGrumb Metadata Type ses sctescccesasstensdecesrsveccrnccesstassscedessanesenees 65 Using the BreadCrumb Server Control ccccccsssssssseeeeeeeees 66 Making a Content Block s Title Appear in the Breadcrumb Trail 67 Steps to Use a Content Block s Title as a Breadcrumb 554 67 FolderBreadcru
196. C Any of the words Exact Phrase I Match Partial Words 50 ooo Search All the words Any of the words Exact Phrase M nantah Nartinl Wlardan Maximum Characters This attribute determines the maximum number of characters that a user can enter for search text Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 432 Button Image Source To use an image for the search button enter the image s filename and path Search Functions Button Image Source Web Page View Search All the words C Any of the words Exact Phrase Match Partial Words search jpg ETEN All the words C Any of the words Exact Phrase I Match Partial Words http www ektron com images search jpg Search All the words C Any of the words Exact Phrase I Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 433 Search Functions Button Text If no search button image is specified the text in this field appears on the button If an image is being used for the search button this text is the image s alt text Button Text Web Page View Click Me to Search Click Me to Search All the words Any of the words Exact Phrase I Match Partial Words Click Me to Search yee Exact Phrase I Match Partial Words Font Face
197. C Cheetah Date Created 25 Apr 2002 04 43 42 PM Date Modified 27 Aug 2002 02 43 01 PM Modified By Application Administrator Content Teaser RC International a leading RC racing company has announced the availability of its new flagship product the RC Cheetah Content ID 10 Content Title RC International Hosts RC Conference Date Created 25 Apr 2002 04 42 55 PM Date Modified 27 Aug 2002 02 44 44 PM Modified By Application Administrator Content Teaser RC International the fastest growing company in the RC industry announces plans to host the 3rd annual RC conference in Atlanta Georgia Content ID 9 Content Title RC International Ships RC Sportster Date Created 25 Apr 2002 04 42 10 PM Date Modified 27 Aug 2002 02 46 12 PM Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 576 The lower portion of the page also displays the content block in a ListSummary format as described in Getting Content Blocks on page 573 Latest News RC International Announces the RC Cheetah 8 27 2002 2 43 01 PM RC International a leading RC racing company has announced the availability of its new flagship product the RC Cheetah RC International Hosts RC Conference 8 27 2002 2 44 44 PM RC International the fastest growing company in the RC industry announces plans to host the 3rd annual RC conference in Atlanta Georgia RC International Ships RC Sportster 8 27 2002 2 46 12 PM R
198. C International an emerging leader in the RC racing industry has begun shipments of its first product RC Sportster The RC Sportster is designed to compete with the entry and mid level RC racer currently on the market If the user selects a content block and clicks the blue text of any title a new page appears with e information about the block title and any XSLTs used for rendering e a demonstration of the GetContentBlock method to display the content block in raw HTML or XML format e a demonstration of the ContentBlock method to display the content block in processed HTML or XML format Here is the code that displays the top section of the page strHTML lt table gt lt tr gt lt td gt lt b gt Content Block Information from GetContentBlock Web Service lt b gt lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt lt b gt Content Block Title lt b gt amp gcbCms400ContentXml Item ContentTitle amp lt td gt lt td gt strHTML strHTML amp lt tr gt lt td gt lt b gt Xslt Used for Rendering lt b gt Select Case gcbCms400ContentXml Item DefaultXslt Case 1 strTmp gcbCms400ContentXml Item Xslt1l Case 2 strTmp gcbCms400ContentXml1l Item Xs1t2 Case 3 strTmp gcbCms400ContentXml1l Item Xs1t3 Case 4 strTmp gcbCms400ContentXml Item xXs1t4 Case 5 strTmp gcbCms400ContentXml Item Xs1t5 End Select If Len strTmp 0 Then strTmp None Used HTML Content assumed Th
199. CMS400 NET search function into the template Search on page 375 XML Index Search Inserts an Ektron CMS400 NET XML Index Search into the template XML Index Search on page 397 CMS Module Controls Analytics Track statistics about visits to your Web site Analytics on page 266 Folder Bread Crumb FolderBreadcrumbs show you the path through the sitemap to the current page Folder Bread Crumb on page 336 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 263 Command Description More Information BreadCrumb Creates a breadcrumb trail of where site BreadCrumb on page 293 visitors have been and allows them to navigate back to previous pages Calendar Inserts an Ektron CMS400 NET event Calendar on page 299 calendar function into the template RssAggregator Aggregates an RSS feed from an RSS RSS Aggregator on page 373 Web site Standard Menu Inserts an Ektron CMS400 NET standard menu into the template Standard Menu on page 394 DHTML Menu Inserts an Ektron CMS400 NET DHTML DHTML Menu on page 319 menu into the template Site Map The Sitemap server control utilizes the Site Map on page 392 folder breadcrumb information in the Workarea to display a sitemap of your site Community Controls Membership Adds a Membership form to your Web form This allows site visitor
200. Content Block on page 419 To insert a dynamic content block tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 333 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click on Dynamic Tag 3 The Insert Ektron Dynamic Tag box is displayed CMS400 Dynamic Content Tag This tag can be used where the Content ID is being passed in as a URL parameter The Default Content ID will be used if an ID is not passed through the URL Insert Default Content Default Content ID Select the category to retrieve list of content Select the content block to insert into the page 4 Use the following table to assist you with inserting a dynamic content block function Field Description Insert Default Content If you want a static content block to be displayed if no ID is passed through the URL place a check in this box Default Content ID Specify the ID number of the content block that you wish to use as a default content block on the Web page Select Content If you are working online you may select the content block to use as a default content block from the list Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 334 5 When completed click Insert A graphic to define where the dynamic content block has been pl
201. Content gt lt ID gt 25 lt ID gt lt Title gt Microsoft ASP NET Programming with Microsoft Visual C NET lt Title gt lt QuickLink gt cms400demo collection aspx id 25 lt QuickLink gt lt Teaser gt lt p gt Teach yourself how to write high performance Web applications with ASP NET and Visual C NET one step at a time lt p gt lt Teaser gt lt Html gt lt Html gt lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt lt DateModified gt 1 4 2005 7 16 21 PM lt DateModified gt lt EndDate gt 12 31 9999 12 00 00 AM lt EndDate gt lt LastEditorFname gt Application lt LastEditorFname gt lt LastEditor_Lname gt Administrator lt LastEditor_Lname gt lt Hyperlink gt lt a href cms400demo collection aspx id 25 gt Microsoft ASP NET Programming with Microsoft Visual C NET lt a gt lt Hyperlink gt lt DisplayStartDate gt lt DisplayStartDate gt lt FolderlD gt 0 lt FolderlD gt lt ContentStatus gt lt ContentStatus gt lt Language gt 0 lt Language gt lt DisplayDateModified gt 1 4 2005 7 16 21 PM lt DisplayDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt lt EndDateAction gt Archive_Expire lt EndDateAction gt lt Comment gt lt Comment gt lt Content gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 475 Random Content Random Content The random content function is used to randomly display the content of a content block that belongs in a specif
202. Control scccseeeeseeeeeeeeeeeeeeeeeeeeees 91 Static Content BlOEK scccssissssssssisiersivsvaedevsasassssssnivacanysoansseanvieniave 91 ContentBlock Server Control PropertieS ccceceseeeeeteeeeeeseees 91 Dynamic Content BIOCK ccccscctcc cere ce 93 AML Content Bl cken 95 The OverrideXslt and DisplayXslt Properties cececeeeeeeee 96 Retrieving the XML Structure of an XML Content Block 98 Using the ContentBlock Server Control Programmatically Ex AMPIE aicina eee een eneeeNOnEne seer nner 98 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xi ContentList Server Control 2 2cceeceeeeeeceeecceseeeceeceeneeees 100 ContentList Server Control Properties cssseeeeesseeeeees 100 Using the DefaultContentID and MetaTag Properties 4 105 Using the ContentID Property to Display a Content List 109 ContentRating Server Control ccccesssseeeeeeeeeeeeeeeeees 110 Content Rating Server Control Properties cesssseeee 110 EKO MiP NOP OMUleS nioi 110 Ektrom Label Propentes emisiami aT iaia 112 Mnal Graph DIS Play rsisi A 112 ntal Graph Prope nie S issrstesssccedesdhseszads cece ste otveceesesheciectsbtnesces 113 G mplete Graph DISplaY siarane aa 114 Gomplete Graph Properties se cisscrcsceetccetictiseseteaccesentesceriesaventcs 114 DesignTimeDiagnostic Server Control ssssssssensssennnnnnnnn
203. Control on page 59 and FolderBreadcrumb Server Control on page 69 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 42 Blog Server Controls Blog Server Controls IMPORTANT In addition to reading this section on the Blog server controls reading the User Manual section Blogs is recommend Ektron provides eight server controls that relate to displaying a Blog on a Web site One of these the Blog server control allows you to display all of the pieces that typically make up a blog site on a form These items are blog entries blog posts blog categories a blog s recent posts a blog s RSS feed a blog calendar and a blog roll The other seven Blog server controls allow you to display each of these items individually The seven individual Blog server controls offer additional ways to customize the page layout and appearance of the items The eight Blog server controls provided by Ektron are e Blog Server Control on page 43 e BlogEntries Server Control on page 45 e BlogPost Server Control on page 48 e BlogCalendar Server Control on page 50 e BlogRoll Server Control on page 54 e BlogCategories Server Control on page 55 e BlogRecentPosts Server Control on page 56 e BlogRSS Server Control on page 57 Using the Blog Server Control vs Using the Individual Blog Server Controls When you use the Blog server control to display a blog you only ha
204. DataList Server Control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer String and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 ContentType One of the following String e all types e archived content e archived forms e content e forms To learn about archived content see the Ektron CMS400 NET User Manual Scheduling Content to Begin and End gt Setting Archive Options DisplayXslt Determines how the information on the page is String displayed None databind only ecmNavigation lists the title of every content block in the folder See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser
205. Display on page 85 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 172 MetaDataList Server Control Property Value Data Type ExactPhrase Determines whether the KeyWordValue needs to Boolean match the phrase exactly For example if site is the KeyWordValue and 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 True Match the exact phrase False Doesn t need to match exact phrase FolderlD The root folder content will be pulled from Integer GetHtml Set to True if you want to retrieve and display Boolean content html body for all content blocks in the collection For example display content inside a web server control such as a GridView Hide Used to hide a metadata list in design time and run Boolean time True Hide metadata list False Show metadata list KeyWordName The KeyWordName is the container where the String KeyWordValues are located Some examples of a KeyWordName might be Keywords or Title For information on creating KeyWordNames for Metadata see the Ektron CMS400 NET Administrators Manual gt Managing Content gt Metadata gt Managing Metadata Definiti
206. Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click insert A Blog Calendar icon appears and indicates the Blog Calender s location on the template lt gt Code split 5 Design L47 Title Untitled Page lt body gt lt form id form1 runat server gt lt cms blogcalendar id blogcalendari BlogID 41 runat server gt lt cms blogcalendar gt lt form gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 274 Shown below is an example of the code that is inserted Platform Code View NET lt cms blogcalendar id blogcalendarli BlogID 41 runat server gt lt cms blogcalendar gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog Categories For a description of the Blog Categories function see BlogCategories Server Control on page 55 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog Categories function 1 Move the blinking cursor to the ar
207. EJ es Hockey Game 35 EE GB GE e GB 2 ae e background f0e9c5 e border bottom c9bda5 1px solid e font family Arial e font size 9pt a3 s EE E e E Eae sta font weight bold 332 E GS GE e E x 3 2 GE GB mv_eventContainer The popup window that appears when the event e visibility is hovered over The following example shows the hidden event container circled in red ition mean May positio Sumisy Monday Tuesday Wednesday Thuradey freisy Saturchey absolute SS 1 Sl 2 S82 Ss SS 5s Ws aA a Hockey Game Locaton Vwa Start 12 00 AM Wale Bale BAw Bane J 13 laa dss d Blas do Alar S Be T wT ao S Alas 50 8 22 Td Bl 2a Daa Te Bas TS A ae We Qa a Ble IA 6 Bw WAH Note When the visibility property is set to visible the event container appears upon page load Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 628 Style Class Description Attributes and Default Settings mv_dayBorderToday The today cell that holds listed events The e border right following example shows the day border today in b38b3b 2px tag solid lt lt Macch April Noe Smd Mady teveder Nirtnester Tomot fide Sherday e border top EE EE b38b3b 2px solid e background Ala 8s Sa s Al a A a Wale Bale ffe354 e border left b38b3b 2px Fan To Bat 2s aa n dQ s T Sloe solid e border bot
208. ET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 298 Calendar For a description of the Calendar function see Calendar Server Control on page 75 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt CMS Modules Controls To insert an Calendar function NOTE Inserting a calendar function does not add a reference to a calendar style sheet This step must be performed manually 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click on Calendar 3 The Insert Calendar box is displayed Insert Ektron cms400 Calendar Displays and manages a content block Dynamic Content Parameter CalDisplayType ShowXML Hide Visible Positioning info GridLayout Style Wrap tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 299 IMPORTANT When inserting an event calendar using ASP CF JSP or PHP the dialog box that appears only allows you to set the Calendar ID or choose one from the list Ektron CMS400 Calendar Tag List of Calendars canter Select the calendar to insert into the page 4 Use the following table to assist you with inserting a calendar Field Description Control ID A unique name for the function you are inserting U
209. Ektron 3 Copyright The Software including any images applets photographs animations video audio music and text incorporated into the Software as well as any accompanying written materials the Documentation is owned by Ektron or its suppliers is protected by United States copyright laws and international treaties and contains confidential information and trade secrets CUSTOMER agrees to protect the confidentiality of the Software and Documentation CUSTOMER agrees that it will not provide a copy of this Software or Documentation nor divulge any proprietary information of Ektron to any person other than its employees without the prior consent of Ektron CUSTOMER shall use its best efforts to see that any user of the Software licensed hereunder complies with this license 4 Limited Warranty Ektron warrants solely that the medium upon which the Software is delivered will be free from defects in material and workmanship under normal proper and intended usage for a period of three 3 months from the date of receipt Ektron does not warrant the use of the Software will be uninterrupted or error free nor that program errors will be corrected This limited warranty shall not apply to any error or failure resulting from i machine error ii Customer s failure to follow operating instructions iii negligence or accident or iv modifications to the Software by any person or entity other than Company In the event of a breach of w
210. Ektron CMS400 NET Site on page 15 The Recursive property determines whether the IndexSearch server control will use this folder s child folders in the search Hide Used to hide output of the Boolean True Hide results index search in design time and run time For example you want to pass the results to code behind for further manipulation False show results Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 220 IndexSearch Server Control Property Description Data Values Type HitsMarker This symbol shows how many String search criteria each hit matched The following example shows the first hit met three of the criteria The second group met one criterion Ce Microsoft ASP NET Prog This property is used when the weighted property is set to true See Also Weighted on page 225 Custom Custom lets you choose the marker to use The custom marker can be any text numeric or symbol character except amp and lt For more Information see The Ektron CMS400 NET Administrator Manual section XML Indexing gt Displaying Search Results Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 221 IndexSearch Server Control Property Description Data Values Type Labelafter All of these properties let you String Examples of what the user will Labelbefore change
211. Ektron CMS400 DhtmiMenu Control Control ID phtmiMenu1 DefaultMenulD Select the from a list of menus Align Center V HorizontalDisplay C CssClass SubMenuBackColor CCCCDD BackColor 92BED7 Font Bold _ Font_Italic L of seconds Cachelnterval E Font Size SubMenultemWidth 150 MenuStyle Stylesheet p Dynamic menu Parameter None v Wrap tag Span v Visible Hide C Positioning info GridLayout Style leave blank if none 3 Use the following table to assist you with inserting a DHTML Menu Field Description Control ID A unique name for the function you are inserting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 320 Field Description DefaultMenulD The numeric id of the menu that you want to insert If you do not know the DefaultMenulD path you can navigate to it using the Select Menu drop down box Select Menu Select a menu to be used When a menu is selected the DefaultMenulD textbox is filled with that menu s id number If you insert the DefaultMenulD you do not need to select a menu Align Specifies the horizontal alignment of the root menu text The default is Center NotSet Use the default setting Left Aligns text to t
212. Explorer to Browse Your Ektron CMS400 NET Site on page 15 DisplayXslt Specify an external XSLT file See Also The String OverrideXslt and DisplayXslt Properties on page 96 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 95 ContentBlock Server Control Property Value Data Type DynamicParameter To make this content block dynamic select id When String you do this server control uses the content block passed as a URL parameter Hide Used to hide a content block in design time and run Boolean time True Hide content block False Show content block Language Set a language for viewing content The language Integer property shows results in design time in Visual Studio and at run time in a browser OverrideXslt An internal Xslt file used to display XML content if one is must be one of not identified in the Xslt property these values See Also The OverrideXslt and DisplayXslt Properties default one two on page 96 three WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag The OverrideXslt and DisplayXslt Properties The DisplayXslt property is optional If used it specifi
213. FT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 396 4 When completed click insert A graphic defines where the Standard Menu appears on your template Ln Shown below is an example of the code that is inserted Platform Code View NET lt cms Menu id Menul DefaultMenuID 15 runat server gt lt cms Menu gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP XML Index Search For a description of the XML Index Search Function see IndexSearch Server Control on page 218 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert an XML Index Search 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click XML In
214. L_GenerateNextGenMenu cfm gt For example lt CFMODULE Ids 1 template request ecm AppPath ecmDHTML_GenerateNextGenMenu cfm gt To display more than one menu separate each id number with a comma For example lt CFMODULE Ids 1 2 3 template request ecm AppPath ecmDHTML_GenerateNextGenMenu cfm gt 2 Ifthe user clicks text to display the menu place the following code within the template file where the text would appear lt CFMODULE MenuId menu id number Title text user clicks to display menu template request ecm AppPath ecmDHTML_DropNextGenMenu cfm gt For example lt CFMODULE Menuld 1 Title Products template request ecm AppPath ecmDHTML_DropNextGenMenu cfm gt If the user clicks a graphic to invoke the menu use this syntax lt CFMODULE Menuld menu id number Title lt img src graphic file name gt template request ecm AppPath ecmDHTML_DropNextGenMenu cfm gt For example lt CFMODULE MenuId 1 Title lt img src mymenugraphic jpg gt template request ecm AppPath ecmDHTML_DropNextGenMenu cfm gt Customizing the Menu s Appearance You can customize a menu s appearance such as the font style color and size So you have the flexibility to coordinate a menu with the design your Web site Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 519 To customize a menu in Ektron CMS400 NET you can change the ek_Menu js file ek_Menu js You can chan
215. Layout Style Wrap tag 4 Use the following table to assist you with inserting a Membership Control Field Description ID A unique name for the function you are inserting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 356 Field Description DisplayMode The type of membership form displayed Choose from the following e UserRegistration Lets a site visitor to register as a membership user e ResetPassword Lets a membership user to reset his password e UnsubscribeSecured Lets a membership user unsubscribe The membership user needs to enter his username and password to unsubscribe e UnsubscribeUnsecured Lets a membership user unsubscribe by entering his membership username only e AccountActivate Let a site visitor activate his membership account by entering the ID number sent him in the account verification email For more information on the DisplayMode property see DisplayMode on page 150 RedirectedFailedURL The URL where a membership user is sent if the registration fails If the page resides in the same folder as the registration page you only need to enter the name of the page For example RegFailed aspx If the redirect page is located in a subfolder you need to add the folder path For example members RegFailed aspx RedirectedSuccessURL The URL where a membership user is sent if the registration fails If the page resi
216. LoggedIn Tells if a user is logged in to Ektron CMS400 NET Boolean True User is logged in False User is not logged in LoggedInUserName Gets the Ektron CMS400 NET user name to display String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 21 Property Value Data Type LoggedInUser ID Gets the Ektron CMS400 NET ID of the user to display Integer NOTE These properties will allow you to personalize any page with your users names and IDs and show if they are logged in Here is an example of using these properties in code behind You must be logged in to Ektron CMS400 NET for this example to show your name and ID 1 Drag an Ektron CMS400 NET server control onto a Web form 2 Drag three Literals onto the Web form tl Normal a Xx StartPage WebForm5 asp ContentBlock ID 0 f Literal Literall f Literal Literal f Literal Literal3 3 Open the code behind for the Web form 4 Add the following code to the Page_Load event Literall Text ContentBlockl IsLoggedIn If ContentBlockl IsLoggediIn Then Literal2 Text ContentBlockl loggedInUserName amp is logged in Literal3 Text ContentBlockl loggedInUserID amp End If 5 Build and run the solution 6 Browse to the login page and log in 7 Browse to the new Web form you added is the User ID Ektron CMS400 NET Developer Reference Manual Version
217. MS Asset search The default is Unchecked Checked The DMS Asset check box is enabled in the advanced search properties If used with EnableContent the check box is checked by default C Unchecked The DMS Asset check box is disabled in the advanced search properties EnableForms Used in ASP NET only Enables users to search Forms The default is Unchecked Checked Searching Forms is enabled C Unchecked Searching Forms is disabled unless Forms is checked in the Advanced search See Also Using the Advanced Search Properties on page 206 EnableFormsBtn Used in ASP NET only Provides a check box so users can decide if they want to perform a Forms search The default is Unchecked Checked The Forms check box is enabled in the advanced search properties If used with EnableContent the check box is checked by default C Unchecked The Forms check box is disabled in the advanced search properties EnableLibFiles Used in ASP NET only Enables users to search Library Files The default is Unchecked Checked Searching Library Files is enabled C Unchecked Searching Library Files is disabled unless Files is checked in the Advanced search See Also Using the Advanced Search Properties on page 206 EnableLibFilesBtn Used in ASP NET only Provides a check box so users can decide if they want to perform a Library Files search The default is Unc
218. MS Developer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 164 DhtmIMenu Server Control Property Value Data Type SubMenuTopOffset Sets the location of the top of the submenu This Integer number is in pixels The default is 5 Example set to 5 ASP NET Unleashed gt Programming C NET VB NET How to Example set to 0 zero ASP NET Unleashed gt Programming C NET VB NET How to Example set to 10 ASP NET Unleashed gt Programming C NET VB NET How to WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Using a Style Sheet You can create your own style sheet or modify the existing default one pop_style css Itis located in webroot cms400demo Workarea csslib For a description of the classes contained in pop_style css see pop style css on page 644 Style Sheets let you choose different text colors text alignment text fonts and text size to create a customized menu Best Practice Ektron recommends copying and renaming the default style sheet This insures you always have a clean file to start with
219. More Information DropHTMLMenu Used to display a DHTML menu DHTML Menus on page 518 GenerateMenu Works with DropHTML menu to display DHTML menus DHTML Menus on page 518 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu Function the menu items properties on page 520 Metadata Functions Metadata Displays the metadata for the current Web page Metadata Function on page 517 Search Functions Search Inserts a text box with a search button Search Function on page 506 Search Display Creates an area to display search results Search Display Function on page 507 Login Function This tag is responsible for displaying the following buttons on the Web page This function is basically the same as the Login function in ASP See Login Function on page 414 for details The only difference is the syntax used to implement the function This is listed below Login Tag Example lt tr gt lt td gt lt cfmodule template request ecm AppPath ecmLogin cfm gt lt td gt lt tr gt Content Block Function The content block and content blockEX tags are used to display a content block on an Ektron CMS400 NET Web page Shown here is the format for the content block function lt CFMODULE template request ecm AppPath ecmContentBlock cfm Ip gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 503 Shown here i
220. Place all of your files within the new folder 4 Using a development tool that supports Web Service integration for example Visual Studio 2005 create a NET aspx file that manages page layout The file must refer to a Visual Basic or C file via a codeBehind commana which manages the page s functionality 5 Add to each NET project a Web Reference to the WSDL file by default webroot cms400demo Workarea webservices ContentWS asmx The environment then builds the appropriate proxy class to access the Web Service s methods You can use the proxy class within the application to invoke those methods CMS400 NET sample aspx pages demonstrate how to do this 6 Provide to your consumers a URL to the NET aspx file Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 579 Syndicating Web Content as RSS This section explains how to add RSS syndication to Ektron CMS400 NET for ASP NET RSS syndication allows you to prepare Ektron CMS400 NET content for reading by RSS news feed aggregators To make this task easier Ektron provides sample files to illustrate RSS syndication You should customize the files to meet your needs What is RSS Syndication RSS stands for Really Simple Syndication a common method of syndicating Web content as an XML document There are several versions of RSS Ektron has implemented version 2 0 In Ektron CMS400 NET you use RSS to prepare a collection list or a lis
221. RE OR BY PLACING OR COPYING THE SOFTWARE ONTO YOUR COMPUTER HARD DRIVE YOU AGREE TO BE BOUND BY THIS AGREEMENT S TERMS AND CONDITIONS YOU FURTHER AGREE THAT EXCEPT FOR WRITTEN SEPARATE AGREEMENTS BETWEEN EKTRON AND YOU THIS AGREEMENT IS A COMPLETE AND EXCLUSIVE STATEMENT OF THE RIGHTS AND LIABILITIES OF THE PARTIES Copyright 1999 2006 Ektron Inc All rights reserved LA10031 Revision 1 7 Securing Ektron CMS400 NET Security Checklist The following is a checklist of things an Administrator must do to secure Ektron CMS400 NET Change Admin user password O Change builtin user password IMPORTANT If you changed the builtin user password during the site setup you do not need to change it again See Editing Builtin on page ii for additional information J Remove Sample users IMPORTANT Some users in this list might not appear in your User list This depends on which version of the software you have installed L Admin2 C jedit L tbrown L jsmith LJ vs Ll EkExplorerUser Q Explorer Ektron CMS400 NET Administrator Manual Version 6 0 for Net 2 0 Revision 9 i Securing Ektron CMS400 NET Additional Information You do not need to make these changes if you are using the CMS400 NET for demonstration or evaluation purposes These changes should be completed once the decision is made to purchase the product and go live with your site IMPORTANT Ektron recommends creating your own Admin
222. Rotator System Web UI MobileCont System web Mobile 1 0 5000 0 AdRotator System Web UI WebControls System Web 1 0 5000 0 O AssemblyInstaller System Configuration Install System Configuration Install 1 0 5000 Button System Windows Forms System CF Windows Forms 7 0 5000 0 Button System Web UI WebControls System Web 1 0 5000 0 Button System Windows Forms System Windows Forms 1 0 5000 0 C Buttonarray Microsoft isualBasic Comp Microsoft YisualBasic Compatibility 7 0 1 s I rores tA n I sa iy fe mR mann A Browse ma Calendar ServerControlLibrary ServerControlLibrary 1 0 1787 20128 Va ADODC Language Invariant Language Invariant Country Version 7 0 5000 0 Cancel Reset Help 9 Select the NET Framework Components tab Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 11 10 Browse to the directory that stores Ektron CMS400 NET s dll files localhost cms400demo bin and add the Ektron Cms Controls dl1 file This file provides access to Ektron CMS400 NET s server controls Alternatively you could use the following location c Program Files Ektron CMS400v60 bin The file is identical in both places Using the bin folder in your site provides better speed when loading Web pages However if you use the bin folder located in Program Files you do not have to worry about deleting the dll file if you change or delete
223. S Explorer to CMS Explorer and can use it to browse Browse Your Ektron to the folder needed for the FolderID CMS400 NET Site on property page 15 ButtonImgSrc If you want to display an image on the String Button Image Source submit button enter the server path to Examples on page 199 it ButtonText The text used for the button if no image String Search Button Text source is identified If an image source Examples on page 200 is identified this is alternative text for the button ContentFieldsetLegend Text that appears in the fieldset border String Fieldset Properties on around the content check boxes This page 212 property is used only when the See Also EnableContentFieldset property is set EnableContentFieldset to True The default is on page 188 Content Items Display Determines if the search options are in String Display Examples on a row Horizontal or a column page 201 Vertical DisplayXslt Determines how the information on the String ecmNavigation page is displayed None databind only ecmNavigation lists the title of every content block in the folder ecmfTeaser lists the title of every content block in the folder plus the content summary Path to Custom Xslt Enter the path to an Xsit that determines the display of the page Example of ecmNavigation Display on page 85 ecmTeaser Example of ecmTeaser Display on page 85 Ektron CMS400 NET Developer Refer
224. S400 NET form Form on page 338 content block into the template Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 262 Command Description More Information Poll Displays a poll or survey created from Poll on page 367 an Ektron CMS400 NET form on a Web page Collection Inserts an Ektron CMS400 NET Collection on page 302 collection function into the template List Summary Inserts an Ektron CMS400 NET list summary function into the template List Summary on page 346 Metadata Inserts an Ektron CMS400 NET metadata function into the template Metadata for ASP NET Pages on page 359 Display By Meta Value Inserts an Ektron CMS400 NET display by meta value block into the template Display By Meta Value on page 328 Content List Displays a list of content blocks created from a comma delimited list Content List on page 310 Language Select Inserts an Ektron CMS400 NET language select box into the template Language Select Box on page 344 Language API Inserts an Ektron CMS400 NET Language API into the template Language API on page 342 ContentRating Place a rating scale on any page of your Web site The scale lets Ektron CMS400 NET collect feedback by giving site visitors the opportunity to rate a particular content item Content Rating on page 315 Search Inserts an Ektron
225. See Also Caching with Server Controls on page 36 Integer Hide Used to hide language select dropdown box and label in design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Boolean Language Set a language for the Language Select Box The language property shows results in design time in Visual Studio and at run time in a browser Integer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 54 Blog Server Controls Property Value Data Type SuppressWrapperTags Suppresses the output of the span div tags around the Boolean control The default is False True Suppress wrap tags False Allow wrap tags BlogCategories Server Control The BlogCategories server control displays the blog categories for a blog ona Web form Blog categories are created in the Workarea for each blog This control reads that list and displays a clickable list of links When a link is clicked it displays all the posts associated with the category Typically this control is displayed along side other Individual Blog server controls Using the individual server controls such as the BlogCategories server control allows you to have more flexibility for layout and appearance than if you use Blog server control BlogCategories Server Control Properties The following table explains the properti
226. Server Control These steps show how to use the RssAggregator server control 1 Drag an RssAggregator server control into a template 2 Set the URL property with the path of the RSS feed you want to display This example use the following RSS feed http ax phobos apple com edgesuite net WebObjects MZStore woa wpa MRSS topsongs limit 10 rss xml This feed displays the top 10 songs according to the iTunes Music Store NOTE In addition to the URL property other Ektron properties are available to customize this server control For more information on these properties see RSSAggregator Server Control Properties on page 179 3 Build the Web form 4 Browse to the Web page in your browser Address http flocalhost CMS400Example webform aspx i Go Links EktronNet Welcome Ektron Inc CMS400 Example 4 Welcome to RC International 2 a iTunes Top 10 Songs iTunes Music Store Today s Top 10 Songs 1 These Boots Are Made for Walkin Radio Edit Jessica Simpson t These Boots Are Made for Walkin Radio Edit by Jessica Simpson from the album These Boots Are Made for Walkin Single 2 Pon de Replay Radio Edit Rihanna Pon de Replay Radio Edit by Rihanna from the album Pon de Replay Single E 3 Don t Cha featuring Busta Rhymes io Edit The Pussycat Dolls amp Busta Rhymes Don t Cha featuring Busta Rhymes Radio Edit by The Pussycat Dolls amp Busta Rhymes from the album Don t Cha 4 Be
227. Service ContentWS class to retrieve the collection or list summary data Then they create CollectionToRSS20 or ListSummaryToRSS20 These classes fill the RSS 2 0 data classes and serialize them to an XML document which can be returned as an HTTP response Since these pages are part of the CMS400 NET sample you should modify them or create your own aspx pages for your Web site Place your custom pages in the yourwebsite WebServices folder so that the web config file is within the path Retrieving a Collection or List Summary as an RSS Feed The left frame of the corporate aspx page is hardcoded to retrieve the News Collection The right frame retrieves a ListSummary Creating Your Own aspx Collection Page To create your own collection page copy the collection object to an RSS 2 0 object and serialize it To accomplish this use these methods ConvertToRSS ByVal result CMS400WS CollectionResult ByVal title As String ByVal description As String As RSS20 rss Serialize Optional ByVal stream As System 1IO Stream Nothing Optional ByVal o As Object Nothing Example Dim objRSSConverter As New CollectionToRSS20 Request Response objRSSConverter ConvertToRSS objResult objResult CollectionTitle objResult CollectionDescription objRSSConverter Serialize Remarks The ConvertToRSS method returns the RSS 2 0 object so that you can fill in or modify additional fields as desired before calling Serialize The Serialize method
228. Service Remove Starting point lt Default We WebService Configuration Execute Permissions Scripts only kd Application Protection Low IIS Process M Unload OK Cancel Apply Help ema LHe Make sure you are on the Directory tab which is selected by default Press the Create button next to the Application Name field Assign the folder s name in the Application name field Press OK If you are creating a new directory for your Web site you must copy the following files into it from webroot cms400demo bin WebService dll Ektron Cms BE Content dll Ektron Cms BE Font dll Ektron Cms BE Library dll Ektron Cms BE License dll Ektron Cms BE Message dll Ektron Cms BE Module dll Ektron Cms BE Site dll Ektron Cms BE ToolBar dll Ektron Cms BE User dll Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 563 e Ektron Cms BE UserMgmt dll e Ektron Cms Common dll e Ektron Cms DataAccess dll e Ektron Cms DataRW dll e Ektron Cms Global dll e Ektron Cms UI CommonuUIL dll e Ektron Cms Ul dll e Ektron Cms WebserviceUI dll Providing Web Service Information in Your CMS CMS400 NET Methods CMS400 NET implements a single Web Service ContentWS asmx that exposes several methods for retrieving CMS400 NET content These methods mirror those in the WebService dll file The methods determine the kind of content that is made available for example a content
229. ShowSearchOptions property to false E A standard search allows a site user a few more options when searching your site These options listed below allow a site user to decide how the text should match the information they are searching for e All the words e Any of the words e Exact phrase e Match Partial words With basic and standard searches you decide which properties are used in the search At least one advanced search property must be set to true in the server control Otherwise the search returns no matches When added to a template and visited a standard search looks like this Search Text Search J All the words Any of the words Exact Phrase CI Match Partial Words Users enter text change the way the text matches the items being searched and click the search button to search for the types of content you allow For examples of setting up a standard search see Using Standard and Advanced Searches Together on page 209 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 208 Search Server Control Advanced Search In an advanced search you decide which content types are available From those choices site visitors decide which content types they want and perform a search To let a site visitor choose which content types to search the Advanced Hyperlink must be turned on Otherwise users can only search properties you have enabled See Also Enable
230. Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 134 ListSummary Server Control ListSummary Server Control The ListSummary server control is used to display a list of content blocks on a Web page 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 This subsection contains the following topics e ListSummary Server Control Properties on page 135 e OrderKey Property on page 140 e List Summary Example on page 141 e Retrieving the XML Structure of a List Summary on page 142 ListSummary Server Control Properties The ListSummary server control properties are described in this table Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 135 ListSummary Server Control Property Description Data Type Values Authenticated I
231. Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 74 Calendar Server Control Calendar Server Control The Calendar server control displays a calendar that was created in the Workarea By using the Calendar server control s properties you can select multiple views of the calendar to display See Also DisplayType on page 78 You can adjust a calendar s look and feel by using a style sheet See Also Calendar Style Sheet on page 80 and calendarStyles css on page 616 The Calendar server control can output the raw XML data of the calendar You can use this XML data to create a completely customized calendar Below is a Calendar displayed on the Web Page When logged in you can add and view calendar events When logged out calendar events only appear Login Calendar display Status Logged in oo vember December 2004 Januar et n Thu Ba eN 6 FAS E40 g Eda g Fal S aal 13740 140 1570 16 Fa Jal 20 Fa 8 21 a0 22 al 23 E40 aal 27 al 26 Bal 29 Bal 30 EdE 3 Bal 4 Fal 10 al PREE EN 170 ig Fal 24 E00 25 E0 a Faa Ektron CMS400 NET Developer Reference Manual Version 6 0
232. Stephen Walther identifies the mistakes ASP NET developers are most likely to make and presents detailed solutions lt Html gt lt StartDate gt lt StartDate gt The content block s start date formatted as a NET date type For example lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt lt DateModified gt lt DateModified gt The last date the content block was modified For example lt DateModified gt 1 19 2005 4 18 06 PM lt DateModified gt lt EndDate gt lt EndDate gt The date the content block stops running on the Web site For example lt EndDate gt 12 31 9999 12 00 00 AM lt EndDate gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 472 XML Collection Function XML Tags Description lt LastEditorFname gt lt LastEditorFname gt The first name of the last person who edited the content block For example lt LastEditorFname gt John lt LastEditorFname gt lt LastEditor_Lname gt lt LastEditorLname gt The last name of the last person who edited the content block For example lt LastEditorLname gt Johnson lt LastEditorLname gt lt Hyperlink gt lt Hyperlink gt The hyperlink shown in the collection for linking to the content block For example lt Hyperlink gt lt a href cms400demo collection aspx id 27 gt HTML for the World Wide Web with XHTML and CSS lt a
233. T 2 0 Rev 8 145 Membership Server Control Membership Server Control The Membership server control creates a form on a Web page that allows a user to create or update a profile of themselves in your membership list The control creates the form based on the standard Ektron user properties and any custom user properties that exist Below is an example of the Membership server control when viewed on a Web page Standard User Properties Custom User Properties l Rock amp Roll l Rythem amp Blues M Soul Notification will send in language English U S Register Reset When you create custom user properties they appear for both membership users and Ektron CMS400 NET users If you create a property such as Employee ID number the property appears when a membership user views this form on a web page The Membership server control allows you to decide if want the custom user properties to appear when the form is viewed It is recommended that you review the following documentation when using the Membership server control Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 146 Membership Server Control e The Administration Manual section Managing Users amp User Groups e The Administration Manual section Custom User Properties e The Administration Manual section Web Alert Feature Understanding these topics along with using this server control extends the most functiona
234. T 2 0 Rev 8 384 Field Description ShowExtendedSearch Allows a user to search via the metadata type Searchable Property Checked Show extended search C Unchecked Hide extended search See Also ShowExtendedSearch on page 202 For more information on Metadata and Searchable Property see the Administrator Manual section Metadata ShowSearchBoxAlways If unchecked the search box does not appear on PostBack Used in ASP NET only ShowSearchOptions If set to true the following choices appear along with the search box This type of search is also known as a Standard search The default Used in ASP NET only setting is Checked e All the words e Any of the words e Exact phrase e Match Partial words Checked Show search options C Unchecked Hide search options See Also Basic and Standard Searches on page 208 Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page Used in ASP NET only For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 385 Field Description TargetFolderDescriptionList A comma delineated list of folders to search The target folder list uses the Description property of a folder to define which folders are searched This is an optional property If you use th
235. T User as a NET date type Manual Scheduling Content to Begin and End gt Setting an End Date on a Content Block EndDateAction e archive display Ektron CMS400 NET User Manual Scheduling Content to e archive expire Begin and End gt Setting e refresh report Archive Options FolderlD The ID of the folder that contains each content block GoLiveDate The content block s start date formatted Ektron CMS400 NET User as a NET date type Manual Scheduling Content to Begin and End gt Setting a Start Date Html The content that makes up the content block If content block is in XML it will return it as raw XML content Hyperlink Content block title wrapped by lt a href gt tags Id The content block s ID number InheritedFrom If folder permissions are inherited the Ektron CMS400 NET folder from which they are inherited Administrator manual Setting Permissions gt Inheritance IsInherited Whether a content block s permissions Ektron CMS400 NET are inherited Administrator manual Setting Permissions gt Inheritance IsPrivate Whether or not a content block is private Ektron CMS400 NET Administrator manual Managing Users amp User Groups gt Private Content amp Memberships Language The content block s language Ektron CMS400 NET Administrator manual Multi Language Support gt Working with Multi Language Content Ektron CMS400 NET Developer Refe
236. T login Login on page 352 function into the template Content Inserts an Ektron CMS400 NET content Content Block on page 306 block function into the template Dynamic Inserts an Ektron CMS400 NET dynamic Dynamic Content Block on content block placeholder function into page 333 the template Collection Inserts an Ektron CMS400 NET Collection on page 302 collection function into the template List Summary Inserts an Ektron CMS400 NET list summary function into the template List Summary on page 346 Metadata Inserts an Ektron CMS400 NET Metadata for ASP NET Pages on metadata function into the template page 359 Search Inserts an Ektron CMS400 NET search Search on page 375 function into the template Search Display Tag Inserts an Ektron CMS400 NET search display function into the template Search Display on page 387 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 265 Command Description More Information Single Summary Tag Inserts an Ektron CMS400 NET single summary function into the template Single Summary on page 390 Random Content Tag Inserts an Ektron CMS400 NET random content function into the template Random Content on page 370 Random Summary Inserts an Ektron CMS400 NET random Random Summary on page 371 Tag summary function into the template Calendar
237. Tag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Using DisplayXslt Samples Two DisplayXslt samples are provided with the Menu server control SampleMenu and TreeMenu This section explains how to use them SampleMenu The SampleMenu DisplayXslt lets you display an Ektron CMS400 NET menu as a bulleted item list See below for an example Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 154 Menu Server Control e MenuExample o CMS Developer o Book a ASP NET Unleashed a Programming C NET a VB NET How to o News All Stars Customer Web Design Firms Enhanced Workflow Visual Rapid CMS Integration Ektron Partners and Customers When you are logged in to your Ektron CMS400 NET site two 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 a menu Item see Ektron CMS400 NET Users Manual gt Working with Menus gt Managing Menus gt Adding a New Content Block to a Menu via Navigation Link on a Web Page For Information on a editing a menu see Ektro
238. There are two options for this attribute Value Description By leaving the value blank all the summaries from the root content folder will be displayed Folder You can specify a specific folder to display the Path summaries from by inserting the folder path Recursive When you setup the search to be recursive you are allowing the search to search all the subfolders associated with the starting folder you had specified You have two options for this attribute Value Description 1 Recursive summaries in the starting folder s subfolders will also be displayed 0 Non recursive only summaries in the starting folder will be displayed Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 445 List Summary Function Show Summary The show summary attribute displays or suppresses the summary in the summary list You have two options for this attribute Attribute Web Page View 0 RC International Ships RC Sportster RC International Hosts RC Conference RC International Announces the RC Cheet RC International Announces the RC Cheetah 8 27 2002 2 43 01 PM RC International a leading RC racing company has announced the availability of its new flagship product the RC Cheetah RC International Hosts RC Conference 8 27 2002 2 44 44 PM RC International the fastest growing company in the RC industry announces plans to host the 3rd annual RC con
239. This also gives you something to reference if you are not getting the results you expect Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 165 DhtmIMenu Server Control The style sheet must be located in the site root You can only define one menu style sheet for each Web page If you have more than one menu on a single Web page they share the style sheet For more information on style sheets visit http www w3 org Style CSS Formatting the DhtmlIMenu Server Control Additional information on formatting the DhtmlMenu server control can be found in the following Knowledge Base article http dev ektron com kb_article aspx id 2441 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 166 MetaData Server Control MetaData Server Control 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 by dynamically passing a content ID from a URL This subsection contains the following topics e MetaData Server Control vs MetaDataList Server Control on page 167 e MetaData Server Control Properties on page 167 Using the Simple Dublin Core Metadata Standard on page 168 e Using the MetaData Server Control on page 169 MetaData Server Control vs MetaDataList Serve
240. Use the following table to assist you with inserting the Blog Roll function Field Description Control ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 288 Field Description Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Sp
241. Version 6 0 for NET 2 0 Rev 8 89 Content Analytics Server Control Property Value Data Type Hide Select False to display this server control on the page Boolean Select True to suppress it Language Set a language for viewing content The language Integer property shows results in design time in Visual Studio and at run time in a browser WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Lets you use custom tag EnableAnalytics Determines if the Analytics feature is enabled for this page and if identified content item ConfigSpecified Take the value from the web config file s enableAnalytics property True Enable Analytic tracking False Disable Analytic tracking See Also Ektron CMS400 NET Administrator Manual Section Content Analytics Feature gt Enabling the Content Analytics Feature Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 90 ContentBlock Server Control ContentBlock Server Control The ContentBlock server control displays a content block on an Ektron CMS400 NET Web page Ektron CMS400 NET has two types of content blocks e Static displays one specified content block e
242. XSLT An absolute or relative path to an XSLT file An external does not matter XSLT file not if XSLT value specified in the exists Edit Smart OverrideXSLT Form is ignored Configuration screen For example sample xslt See Also The Managing XML chapter of the Ektron CMS400 NET Administrator manual Retrieving the XML Structure of an XML Content Block WARNING NOTE 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 1 Open anew Web form 2 Drag and drop a Content Block server control onto it 3 Set the DefaultContentID to an XML content block This does not work with HTML content blocks as there is no XML structure to output 4 Drag and drop a Text box on the Web form 5 Set the TextMode property to MultiLine It is also recommended that you set the width of the text box to at least 400px 6 On the code behind page add the following line TextBoxl Text ContentBlockl EkItem Html 7 Build the project 8 View the form in a browser 9 The XML structure of the content block appears in the text box Using the ContentBlock Server Control Programmatically Example The following code will display a content block Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 98 ContentBlock Server Control NOTE Before adding these lines of code
243. a 9 12 21 2005 nie 2005 gt gt Christmas Party Mon Tue Wed Thu Fri Location Event Room 112 Start 7 30 PM End 11 00 PM 5 6 T 8 g 12 13 14 15 16 Come to the Christmas p 19 20 21 212 26 27 28 29 30 2004 2005 2006 Note The URL parameters hevt ype and evhighlight do not work They are reserved for future use DynamicParameter String To make this calendar dynamic select calendar_id When you do this server control uses the calendar passed as a URL parameter Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 79 Calendar Server Control Property Value Data Type EndDate Specify the end date the calendar displays Used in conjunction with the StartDate property For example you have a calendar that shows only classes for the next three month semester Date Hide Used to hide output of calendar in design time and run time True Hide calendar False Display calendar Boolean Language ShowXML Set a language for viewing calendar The language property shows results in design time in Visual Studio and at run time in a browser At runtime output the raw XML data instead of the calendar With this XML data you can apply your own XSL to create your own custom display formats Default is False True Show raw XML data False Show Calendar Integer Boolean StartDate Specify the start da
244. a 3 Ea 5 6 5 7 E 8 eN 9 Ega Centaurs Online Centaurs Online Marketing 2005 Marketing 2005 Fa 5 13 Fad E 14 Pa E 15 Fa O 16 Fa 6 Internet World Ea 20 Fa 5 21 Fa a 22 Eg E 23 al i 28 Bq 5 29 Eg 5 30 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 479 Event Calendar Function If Calendar Display Logged Out Monday Tuesday Wednesday Thursday Friday 1 2 3 6 7 8 9 10 Centaurs Online Centaurs Online Marketing 2005 Marketing 2005 13 14 15 16 17 Internet World 20 21 22 23 24 28 29 30 As you can see when you are logged into the Web site you can add and view Calendar events When logged out you can only view calendar events Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 480 Calendar Function Calendar Function NOTE The ecmCalendar function displays a calendar that has been created in Ektron CMS400 NET Here is the format for the event calendar custom function lt ecmCalendar id DisplayType gt While you can display a month view calendar with ecmCalendar you can also use ecmEvtCalendar to display a month view calendar For more Information see Event Calendar Function on page 478 The ecmCalendar function attributes are explained below Attribute Description id The id argument represents the ID number of the event calendar in the
245. a Menu on a Web Page GenerateMenu and DropMenu IMPORTANT The menu functions described below are only one example of how to implement menus You can implement your own menu system using JavaScript Use the GenerateNextGenMenu and DropNextGenMenu custom functions to display a DHTML menu on a Web page Place GenerateNextGenMenu once on the page to provide an infrastructure for DropNextGenMenu Then place DropNextGenMenu as needed to implement individual menus Follow these steps to display a menu on a Web template Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 553 1 Place the following code directly after the page s lt body gt tag lt ecmDHTML_GenerateNextGenMenu menu id number gt For example lt ecmDHTML_GenerateNextGenMenu 1 gt To display more than one menu separate each id number with a comma For example lt ecmDHTML_GenerateNextGenMenu 1 2 3 gt 2 Ifthe user clicks text to display the menu place the following code within the template file where the text would appear lt ecmDHTML_DropNextGenMenu menu ID number text user clicks to display menu gt For example lt ecmDHTML_DropNextGenMenu 1 MyMenul gt If the user clicks a graphic to invoke the menu use this syntax lt ecmDHTML_DropNextGenMenu menu ID number lt img src graphic file name gt gt For example lt ecmDHTML_DropNextGenMenu 1 lt img src my
246. able as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 369 Random Content For a description of the Random Content function see Random Content on page 476 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function To insert a Random Content function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click on Insert Random Content Tag 3 The Insert Random Content Tag box is displayed Ektron CMS400 Random content Tag Random item of a collection Collection 1D Select the collection to insert into the page XSLT to Apply Select if an XLST is to be applied v 4 Use the following table to assist you with inserting a Random Content tag Field Description Collection ID Type in the collection ID or select it from the drop down list of the collection where the random content function will retrieve content from XSLT to apply XML Content only If desired you may specify an XSLT to apply to the content that gets displayed Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 370 5 When completed click Insert
247. aced on your template is inserted Test page for rendering contre rr a ecm dcontent gt lt if request QueryString id lt gt then gt lt 3 ecmContentBlock request QueryString id gt lt else gt lt ecmContentBlock 30 gt lt 3 end if gt lt ecm_dcontent gt WON Fr oO Of he Content Block Dynamic URL pagename id xx Shown below is the code that will be inserted according to the platform that has been specified in the setup Platform Code View NET For ASP NET pages use the CMS400 NET Server Control Content Block tag and set the dynamic parameter to id See Content Block on page 306 ASP lt if request QueryString id lt gt W then ecmContentBlock request QueryString id else ecmContentBlock 1 end if gt ColdFusion lt cfif isdefined url id gt lt cfmodule id url id template request ecm AppPath ecmContentBlock cfm gt lt cfelse gt lt cfmodule id 1 template request ecm AppPath ecmContentBlock cfm gt lt cfif gt JSP Inserting a Dynamic Content Block using Ektron s Dreamweaver Extensions is not supported in JSP PHP lt php id GetURL_Id 1 ecmContentBlock id gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 335 Folder Bread Crumb For a description of the Folder Bread Crumb function see FolderBr
248. acer currently on the market nferdQce 8 27 2002 2 44 44 PM growing Sat t a aes at host the 3rd annual RC conference in Atle DateCreate Displays the ove when me i level RC racer currently on the mark d content was first created 2rdice 4 25 2002 4 42 55 PM owinG eeaapany in the 6 st the 3rd annual RC conference in A AuthorFname Displays the first name of the s user who l stedited the nid level RC racer currenth content block host the 3rd annual RC cc Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 448 List Summary Function Value Description Web Page View AuthorLname Displays the last name of the user who last edited the content block Ct KRU Sporcster ine KRU gt p d mid level RC racer currentl Zonfere st grows to host the 3rd annual RC ci Max Number This attribute determines how many summaries appear on a page Enter the number of summaries to be displayed To display all summaries enter O zero and you will display unlimited results Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 449 XML List Summary Function XML List Summary Function The XML List Summary function wraps XML around the properties of a list of content that s created as a list summary in the Ektron CMS400 NET Workarea Once created you can use the XML to display the list summary information The ecmListSummaryXML function allows you to
249. act Phrase I Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 436 Search Functions Attribute Web Page View P horizontal Search All the words Any of the words Spare 1 At the end of the Search tag is a attribute called Spare 1 This attribute has not yet been assigned an function As of now when you enter a search tag you must pass this attribute Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 437 Search Search Display Function Display Function The search display custom tag creates the area where search results appear after a search is executed Here is the format of the ecmSearchDisplay tag lt ecmSearchDisplay MaxNumberReturn Stylelnfo ShowDate gt Below is a description of the tag s attributes Attribute Description Required For more information see Max Number of Maximum number of content Yes Max Number of Content Blocks content blocks blocks returned 0 Unlimited Returned on page 440 Returned Style Info An HTML style string used No Style Info on page 441 within the HTML hyperlink generated by the search output Can control font color size etc ShowDate Displays the last modified date No Show Date on page 441 of the content block O No 1 Yes Search Display Example Insert the following o
250. age 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 269 3 The Insert Ektron CMS400 NET Blog box appears Ektron CMS400 Blog Control ID Blogi Blog Select the folder or fill it in above ShowRSS of seconds CacheInterval Hide LC Visible M Positioning info GridLayout Style leave blank if none Wrap tag Span x 4 Use the following table to assist you with inserting the Blog function Field Description Control ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box ShowRSS Displays the icon for the RSS feed BD when the box is checked The default is Checked Checked Display RSS feed C Unchecked Do not display RSS feed of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 th
251. age 494 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 520 Custom PHP Functions IMPORTANT IMPORTANT Ektron CMS400 NET maintains and displays content via custom Ektron PHP functions and ComObjects For the custom PHP functions to work properly do the following e Make sure the php_soap d11 file is in the c php folder on the server where you installed PHP e Add the following line to the php ini file extension php_soap dll The php ini file is located in c windows php ini e Inthe applicationAPI php file set the WSDLpath The applicationAPI php file is located by default in http localhost cms400demo WorkArea platforms PHP applicationAPI php ContentWS asmx is the web services WSDL file that the custom PHP functions use to talk to Ektron CMS400 NET The WSDLpath located in the applicationAPI php file must be set to location of the WSDL file The default WSDLpath is http localhost cms400demo WorkArea WebServices ContentWS asmx If you have changed the location of ContentWS asmx you need to update the WSDLpath For example if your site is www myektronsite com the WSDLpath would be http www myektronsite com WorkArea WebServices ContentWS asmx e Add the following line to the top of each template lt php include applicationAPI php gt This file
252. age 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 Property Determines this aspect of Web For more information see form when it appears on breadcrumb trail DisplayTitle Text to describe it DisplayTitle on page 63 IconAlt Alt text associated with image specified IconAlt on page 64 in lconPath property IconPath Image to define it IconPath on page 64 BreadCrumb Server Control Properties The BreadCrumb server control properties are described in this table Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 62 BreadCrumb Server Control Property Response Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can String use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 CurrentPagelndicator If desired enter one or more symbols or characters that String identify the current page in the breadcrumb trail See example below Dev gt
253. ait ates 580 RSS Syndication in Ektron CMS400 NET ccsssseesseeeeee 580 Syndicating via NE T sinnno 581 Architecture of RSS Syndication cccceesseeeeeeeeeeeeeeeee 581 ASPX PaO SS enia a anit amet etete 581 Retrieving a Collection or List Summary as an RSS Feed 581 Creating Your Own aspx Collection Page eecessseeeees 581 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xxi Teee EREE E A E E E E 581 ROMO San eE 581 EXAM OG aosa 582 Creating Your Own aspx List Summary Page sssssee 582 Cll allcreerrrreateer terres rerrrrer Crrertrere ret rer rer tereeerertreer errr 582 PUG IMG Gassteccestpesccscsncen se accaccupenccecsacnaenccecaaces S 582 Example naninira a 582 Learning About Visual Studio ssssssssssssnnsunnnnnnnnnnnnnnnnnnn 583 Grid Layout vs Flow Layout csccecasicic ses ccacscctectwcscesentecsseeentetes 583 Customizing Validation iissssissscisesiscsivestserimevessesmnsinascons 584 Customizing Validation OptionS ssssssnssennnnnennnnnnnnnnnnnnnnnne 584 Validation Elements in the Configuration Data 0 ceeeeeeee 584 Validation Ati OUteS ivscccccssstndeccesssentioscecdspamosseedvacnnnstecesnemmnesecess sence 585 Validation S b elemens raons manupean 585 Ghoice S b 6lement 2eiasc cccszecetssieccretetoscsgtessatecaactenses iai 585 Choice AMODU Sarminnai nea a 586 CHOICE SUD EISMIGIMNS ss sceceystetecsecerssecsceecathetbedsecetuceencceet
254. al 0 gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 506 Search Display Function The search display custom tag created the area where all the search results show after the search has been executed Shown here is the format of the ecmSearchDisplay tag lt CFMODULE template request ecm AppPath ecmSearchDisplay cfm MaxNumber StyleInfo ShowDate This function is basically the same as the Search Display function in ASP See Search Display Function on page 438 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below Search Display Example lt tr gt lt td gt lt CFMODULE template request ecm AppPath ecmSearchDisplay cfm MaxNumber 0 StyleInfo ShowDate 1 gt lt td gt lt tr gt List Summary Function The list summary function is used to display the list of content summaries on a Web page Shown here is the format of the list summary function lt CFMODULE template request ecm AppPath ecmListSummary cfm Folder MaxNumber Recursive ShowSummary StyleInfo OrderBy ShowInfo This function is basically the same as the List Summary function in ASP See List Summary Function on page 442 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion
255. al reasons such as e you want the control to be loaded into memory only under certain conditions In this case insert the logic that only displays the control if the condition exists e you want to display only certain properties of an object such as the title of last edited date of a content block Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 16 Note that you can drag and drop controls on your page then customize them using code behind For more information see Using Drag amp Drop and Programmatically Together on page 31 The following sections explain how to use the server controls programmatically e Steps to Insert a Server Control Programmatically on page 17 e Server Control Properties in Code Behind on page 20 e Customizing Server Controls on page 29 Steps to Insert a Server Control Programmatically To insert an Ektron server control programmatically follow these steps Step 1 Declare the Namespace on page 17 Step 2 Create an Instance of the New Control on page 18 Step 3 Set the Properties on page 18 Step 4 Call the Fill Method on page 19 Step 5 Use text Property to Display the Control on page 19 Each step is described below These steps show an example of using the Collection Server Control Step 1 Declare the Namespace Before inserting the server control you can declare the namespace at the top of the code behind Visual Basic file as s
256. alendar Displays a month view event calendar Event Calendar Function on page 546 Collection Functions Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 543 Function Description More Information Collection Displays links generated by collections Collection Function on page 547 CollectionXML Creates XML for a collection by wrapping tags around all of the collection items and their properties This allows you to use an XSLT to define how the XML collection is displayed XML Collection Function on page 547 Random Content Randomly displays the content of a collection item Random Content Function on page 548 Random Summary Randomly displays the summary of a collection item Random Summary Function on page 548 RSS Collection Creates an RSS feed out of the items in a collection RSS Collection Function on page 548 Content Functions Add Content Allows a user to add content to Ektron CMS400 NET progammatically Add Content on page 549 Content Block Displays and manages a content block Content Block Function on page 549 Form Displays a content block associated with a form Form Function on page 550 Language Functions Language Select Lets a site visitor select a language in which to view site Language Select Function on page 552 Login Func
257. ame Returns the name of a node string name node string Converts the value argument to a string string value string 314 Result 314 concat Returns the concatenation of all its string concat val1 concat The XML arguments val2 Result The XML starts with Returns true if the first string starts with bool starts starts with XML X the second string Otherwise it returns with string substr Result true false contains Returns true if the second string is bool contains val contains XML X contained within the first string substr Result true Otherwise it returns false substring Returns the part of the string in the string string substring substring after 12 after argument that occurs after the substring after string substr 10 in the substr argument Result 10 substring Returns the part of the string in the string string substring substring before 12 before argument that occurs before the before string subs 10 substring in the substr argument tr Result 12 substring Returns a part of the string in the string string substring st substring Beatles 1 argument ring start length 4 Result Beat string length Returns the number of characters in a number string string string length string length Beatles Result 7 normalize Returns the whitespace normalized normalize normalize space space version of a passed string All leading space string some text would and trailing whi
258. an The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click Insert A Blog Roll icon appears and indicates the Blog Roll s location on the template de a it cal Desion A Untitled Page lt form id formi runat server gt lt form gt lt p gt amp nbsp lt p gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 289 Shown below is an example of the code that is inserted Platform Code View NET lt cms BlogRoll id BlogRoll1l BlogID 41 runat server gt lt cms BlogRoll gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog RSS For a description of the Blog RSS function see BlogRSS Server Control on page 57 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog RSS function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS
259. an randomly display a content block summary that belongs to a specified collection Here is the format for the random content function lt CFMODULE template request ecm AppPath ecmShowRandomSummary cfm Ip gt This function is basically the same as the Random Summary function in ASP See Random Summary on page 477 for details Search Function The search tag is used to display a text box with a search button on the template When seen on the template on the Web page the users will be allowed to enter text and click on the search button to search through all the content on the Web site Shown here is the format for the ecmSearch tag lt CFMODULE template request ecm AppPath ecmSearch cfm StartingFolder Recursive TargetPage TextBoxSize MaxCharacters ButtonImageSrc ButtonText FontFace FontColor FontSize Horizontal This function is basically the same as the Search function in ASP See Search Functions on page 428 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below Search Tag Example lt tr gt lt td gt lt CFMODULE template request ecm AppPath ecmSearch cfm StartingFolder marketing Recursive 1 TargetPage search display cfm TextBoxSize 25 MaxCharacters 200 ButtonImageSrc _ButtonText Search FontFace Verdana FontColor 808080 FontSize 2 Horizont
260. an example of form tags lt form name myform action onsubmit return EkFmValidate this method post gt lt form gt For more information about HTML forms see the Ektron CMS400 NET Administrator manual chapter 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 the Ektron CMS400 NET Administrator manual chapter Managing Library Assets section Updating Default Template for Multiple Quicklinks Here is the format for the ecmFormBlock function lt ecmFormBlock int id boolean formTagReqd gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 550 The ecmFormBlock function attributes are explained below Attribute Description id The id argument represents the form s ID number visible when viewing the form from the View Form screen View Form Email Contact Form English U S Form Properties Form Form Title Email Contact Form FormID 259 Status Approved Published Description formTagReqd Allows form tags to be added automatically This is an example of form tags lt form name myform action onsubmit return EkFmValidate this method post gt lt form gt true Add form tags automatically false Add for
261. an gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag String Using the BreadCrumb Server Control Add the FolderBreadcrumb server control to each Web form for which you want to create a breadcrumb sitemap Follow these steps to use the FolderBreadcrumb server control 1 Open a Web form for which you want to create a folder breadcrumb map 2 Oe OW sae 00 Drag and drop the FolderBreadcrumb server control onto an appropriate location of the Web form Set the DefaultContentID or DefaultFolderID property Save the Web form Open a browser View a Web page with the FolderBreadCrumb server control in it Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 71 FolderBreadcrumb Server Control 7 The FolderBreadcrumb now appears on your site as a sitemap breadcrumb ome gt Conditions gt Wellness Articles 1 WELLNESS ARTICLES Subscribe to Web Alerts Unsub Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 72 BusinessRules Server Control The BusinessRules server control allows you to add a Business Rule created in the Workarea to a Web form It also allows you to add a place holder for a Business Rule Then a CMS400 NET administrator can create a business rule at a later date For an
262. ance such as the font style color and size So you have the flexibility to coordinate a menu with the design your Web site To customize a menu in Ektron CMS400 NET you can change the ek_Menu js file ek_Menu js You can change the look and feel of a menu by changing the ek_menu js file If you used the default settings when installing Ektron CMS400 NET this file is in Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 540 webroot cms400demo Workarea java For a description of the ek_menu js file see ek_Menu js on page 496 XML Menu Function The ecmGetMenuXML function wraps XML around the properties of a menu created in the Ektron CMS400 NET Workarea Once created you can use the XML to display the menu The ecmGetMenuXML function allows you to easily define how the menu data appears on the Web page lt php ecmGetMenuXML ld gt This function is basically the same as the XML Menu function in ASP See XML Menu on page 499 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below lt php ecmGetMenuXML 1 gt Language Select Function This function lets a visitor to your Web site select a language in which to view the site Here is what the function looks like when published on a Web page Site Language English US X Danish English US French Standard German Standard Sho
263. and Menus The following section explains how to locate Ektron CMS400 NET commands in Dreamweaver There are two Ektron command menus available One menu is for ASP NET pages and the other is used for ASP ColdFusion JSP and PHP pages Commands gt Ektron CMS400 NET Server Controls Commands gt Ektron CMS400 ASP CF JSP PHP To locate a command menu in Dreamweaver perform the following steps 1 2 Open Dreamweaver In the top menu follow one of these paths If you are using ASP NET pages click Commands gt Ektron CMS400 NET Server Controls If you are using ASP ColdFusion JSP or PHP pages click Commands gt Ektron CMS400 ASP CF JSP PHP For a list of commands in Ektron CMS400 NET Server Controls see Ektron CMS400 NET Server Controls Functions on page 262 For a list of commands in Ektron CMS400 ASP CF JSP PHP see Ektron CMS400 ASP CF JSP PHP Functions on page 265 The Ektron CMS400 NET commands menu is displayed In Ektron CMS400 NET Server Controls the functions are broken up into the following groups Content Controls CMS Module Controls Community Controls In Ektron CMS400 ASP CF JSP PHP the functions are broken up into the following groups CMS Function XML Function NOTE For a description of the Setup and Edit via Dreamweaver groups see Setup on page 243 and Editing and Saving Ektron CMS400 NET Content in
264. and renaming the default style sheet This insures you always have a clean file to start with This also gives you something to reference if you are not getting the results you expect The style sheet must be located in the site root You can only define one Search style sheet for each Web page If you have more than one Search on a single Web page they share the style sheet For more information on style sheets visit http www w3 org Style CSS Formatting the Search Server Control Additional information on formatting the Search server control can be found in the following Knowledge Base article http Awww ektron com developers cms400kb cfm id 2322 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 217 IndexSearch Server Control IndexSearch Server Control Use the IndexSearch server control to display an Smart Form s search screen on any Web form This lets a user search your site based on XML parameters See Also The Ektron CMS400 NET Administrator Manual section XML Indexing Below is a sample screen that can be generated via the IndexSearch server control Genre novel x Price Between s 1 Last Name Jones v Paperback Publishdate Select i Tite Contains ems Submit Search You can also predefine a search and have the results appear on a Web form template by using the SearchParmXML property This subsection contains the following topics e I
265. and run time True Hide login button False Show login button Boolean Language Set a language for the server control The language property shows results in design time in Visual Studio and at run time in a browser Integer RedirectFailedURL The URL where a membership user is sent if the registration fails e If the page resides in the same folder as the registration page enter the name of the page For example RegFailed aspx e If the redirect page is located in a subfolder add the folder path For example mem bers RegFailed aspx String RedirectSucessURL RegisterButtonImg The URL where a membership user is sent when the registration succeeds e If the page resides in the same folder as the registration page enter the name of the page For example RegSucceed aspx e If the redirect page is located in a subfolder add the folder path For example mem bers RegSucceed aspx Lets you add an image in place of the text on the register button Enter a path to the image For example http www ektron com buttons registerbutton gif If the image is located in the site root you do not need to enter the full path Only enter the subfolder path and image name For example outtons registerbutton gif String String RegisterButtonText Text that appears on the Register button The default is Register If you use a register button image you do not see this text
266. andom content from a collection 1 Drag and Drop a Collection server control on your Web form 2 Set the properties in the properties window In this example the Random property and the GetHiml property must be set to True StartPage randomcontent Idisplay aspx randomcontent_htmidisplay aspx vb El Ektron Authenticated CmsSitePath ContentParameter DefaultCollectionD DisplayXslt DynamicParameter GetHtml Hide Language Random 8 Layout Height Width B Misc ID ES Properties 2 Dynamic Help 3 Add the following code to the code behind Dim str As String str lt hl gt Hello There lt hl1 gt lt br gt str amp Collectionl EkItems 0 Html Collectionl Text str 4 Build and browse your web form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 87 Collection Server Control Address http localhost cms400example randomcontent Go Links 4 CMS300 Samples Menu 4 Welcome to RC International A Hello There Gail Elliott gelliott test com Sales 603 555 1113 Responsible for the Northeast region 1 e CT e Maine e Mass e NH e NY E e VT v Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 88 Content Analytics Server Control Content Analytics Note NOTE Use the Analytics Tracker server control to track statistics about visits to your Web site such as e how often your c
267. ant 10 Save the file You are now ready to Install the Ektron CMS400 NET extension See Also Installing the Extensions on page 239 Installing the Extensions There are two extensions that can be installed on your server e Ektroncms400 mxp Adds ASP NET extensions e C400_ASP_PHP_CF_JSP mxp adds ASP PHP CF and JSP extensions Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 239 You can have both extensions installed at the same time The extensions do not affect each other When you install the second extension you might receive the following message Macromedia Extension Manager An older copy of the file C Documents and Settings Application Data Macromedia Dreamweayer configuration T hirdPartyT ags EKT RONLogin gif already exists Do you want to replace it No Cancel If you see this message or one that say the files are newer click Yes to All to continue Overwriting the files will not affect the extensions Before you can insert the Ektron CMS400 NET custom functions through Dreamweaver you must install at least one of the extensions Listed below are the steps to install an extension NOTE For additional information about installing an extension refer to your Dreamweaver Manual To install an extension follow these steps 1 Begin by following the path in Dreamweaver Commands gt Manage Extensions File Edit View Insert Modif
268. archdisplay gt 32 lt ecmSearchDisplay 0 1 gt 33 lt fecn_searchdisplay gt lt td gt RA oe ftrs ram RG international Ettttttttttietictitiitirt itt it it iii tit iit ii tii i titi ii tit iii titiitiiiitii iii tit iit iitiiiitiiti ii ii titi ii tii ti itt i tii i itr rir rity ktron ektron Search Tag S arch Display mag Shown below is the code that will be inserted according to the platform that has been specified in the setup Platform Code View with no default content block set NET In ASP NET you do not need to add a separate search display ASP lt ecmSearchDisplay 0 1 gt ColdFusion lt cfmodule template request ecm AppPath ecmSearchDisplay cfm MaxNumber 0 StyleInfo ShowDate 1 gt JSP lt ecmSearchDisplay 0 1 gt PHP lt php ecmSearchDisplay 0 1 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 389 Single Summary For a description of the Single Summary function see Single Summary Function on page 456 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function To insert a Single summary 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click on Single Summary Tag 3 The Insert Ektron Single Summary Tag box is displayed Ektron CMS400 Single Summary Tag
269. arranty Customer s sole and exclusive remedy is repair of all or any portion of the Software If such remedy fails of its essential purpose Customer s sole remedy and Ektron s maximum liability shall be a refund of the paid purchase price for the defective Products only This limited warranty is only valid if Ektron receives written notice of breach of warranty within thirty days after the warranty period expires 5 Limitation of Warranties and Liability THE SOFTWARE AND DOCUMENTATION ARE SOLD AS IS AND WITHOUT ANY WARRANTIES AS TO THE PERFORMANCE MERCHANTIBILITY DESIGN OR OPERATION OF THE SOFTWARE NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED EXCEPT AS DESCRIBED IN SECTION 4 ALL WARRANTIES EXPRESS AND IMPLIED ARE HEREBY DISCLAIMED NEITHER COMPANY NOR ITS SUPPLIERS SHALL BE LIABLE FOR ANY LOSS OF PROFITS LOSS OF BUSINESS OR GOODWILL LOSS OF DATA OR USE OF DATA INTERRUPTION OF BUSINESS NOR FOR ANY OTHER INDIRECT SPECIAL INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND UNDER OR ARISING OUT OF OR IN ANY RELATED TO THIS AGREEMENT HOWEVER CAUSED WHETHER FOR BREACH OF WARRANTY BREACH OR REPUDIATION OF CONTRACT TORT NEGLIGENCE OR OTHERWISE EVEN IF COMPANY OR ITS REPRESENTATIVES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS 6 Miscellaneous This License Agreement the License granted hereunder and the Software may not be assigned or in any way transferred without the prior written consent of Ektron T
270. ars If the folder property 1 and you choose Content as the ObjType a single summary for content with an id 1 appears See Also Single Summary Function on page 456 The default ObjType is Folder when left blank ecet Folder Content SummaryType Used as a filter this property determines the type of content that appears in the list summary The default is Content when left blank AllTypes displays all of the content types for the given folder Content displays a list of content blocks Forms forms appear in the list summary Archive_Content archived content blocks appear in the list summary Archive _Forms archived forms appear in the list summary Assets assets such as offices documents appear in the list summary Archive_Assets archived assets appear in the list summary Libraryltem library items appear in the list summary NonLibraryContent all types of content appear in the list summary except for library items Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 451 XML List Summary Function When using the XML list summary function the following tags are created around the properties of each item in the list summary XML Tags Description lt Content gt lt Content gt Declares a new section of content in the XML collect
271. as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 343 5 When completed click insert A graphic defines where the Language API appears on your template i k2 Code 3 spit L3 Design YF Tite LanguageAPl me amp E Cc Tisfantt Tanmane IFACDT tarafl Shown below is an example of the code that is inserted Platform Code View NET lt cms LanguageAPI id LanguageAPI2 runat server gt lt cms LanguageAPI gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Language Select Box For a description of the Language Select Box see LanguageSelect Server Control on page 133 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a Language Select Box 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Language Select Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 344 3 The Language S
272. ateSuccessMessage The message that appears when a membership user successfully updates their information The default message is You have successfully updated your information Hide Used to hide a Language API in design time and run time Checked Hide C Unchecked Show Language API Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 358 Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 When completed click insert A graphic defines where the Membership Control appears on your template E lt neaa gt 13 lt body gt amp 3 Membership Shown below is an example of the code that is inserted Platform Code View NET lt cms
273. ational Home Products Support News Careers Search Cal Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 430 Search Functions Search Tag Attributes The search tag s attributes are described below Starting Folder In this attribute specify the content folder where the search begins There are two options for this attribute Value Search begins in N root folder folder path specified folder Recursive When you setup the search to be recursive you are allowing the search to search all the sub folders associated with the starting folder you had specified You have two options for this attribute Value Search begins in 1 Recursive search will search sub folders of the starting folder 0 Non Recursive search will only search starting folder Target Page The page that displays the search results You may enter any form of a URL for this page NOTE The target page must include the searchdisplay function to display search results To use the same page enter a pound sign into the field Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 431 Search Functions Text Box This attribute sets the size of the search text box It can be any number depending on the size of the search text box that you want Text Box Web Page View Size 10 BE Search All the words
274. ats folder If the Advanced link is enabled and a site visitor clicks it he has the choice to search the Football Stats and Home The Football Stats check box is checked by default while the Home check box is not Properties 4 X Searchi Ektron Cms Controls Search v Jsi ShowExtendedSearch True TargetFolderList football stats 1 home 0 CXLDOXS WrapTag Span E wi Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 205 Search Server Control F Content Forms DMS Assets ages M Files M Hyperlink V Football Stats Folders Only Home Folders Only Search Text All the words O Any of the words Exact Phrase CI Match Partial Words Using the Advanced Search Properties There are three ways to use the advanced search properties One way is to create a basic or standard search in which the user must search by properties you choose Another way is let users decide which properties they want use for the search The last way is a mix of both See Also Basic and Standard Searches on page 208 Advanced Search on page 209 and Using Standard and Advanced Searches Together on page 209 The following is a list of advanced properties These properties appear in the list of properties for the server control For descriptions of these properties see Search Server Control Properties on page 183 EnableArchived EnableArchivedBtn EnableCont
275. atted as a folder tree You can expand the tree by clicking on the folder icon For more information on using the SampleMenu and TreeMenu Display see Using DisplayXslt Samples on page 154 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 395 Field Description Dynamic Menu Parameter Checks the QueryString for the menu value and replaces the menu with content when ID is specified Leave blank to always display the menu None Use Default menu_ID The control uses the menu passed as a URL parameter Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a menu in design time and run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Style Positioning Info Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Set position information of a control as absolute when using a GridLayout Web GridLayout page For example style Z INDEX 101 LE
276. aving the content back to Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 250 Save Content Content that has been created or edited in Dreamweaver can be saved to your Ektron CMS400 NET Web site by using the Save Content command The following section explains how to save content created and edited to Ektron CMS400 NET Saving New Content To save a content block that was created in Dreamweaver perform the following steps 1 If you haven t already create the new content in Dreamweaver File Edit View Insert Modify Text Commands Site Window Help ommon E6 28 6 8O B 8 23 Spit L4 Design ff Title New CMS400 NET Content X Of C F lt 3 Page Language VB ContentType text html ResponseEncoding iso0 88 A lt DOCTYPE HTML PUBLIC W3C DID HTML 4 01 Transitional EN http lt html gt lt head gt lt meta http equiv Content Type content text html charset iso 8859 1 lt title gt New CMS400 NET Content lt title gt lt style type text css gt lt stylel font family Arial Helvetica sans serif font weight bold gt 1 2 3 4 5 6 7 8 9 we O lt style gt lt head gt lt body gt lt span class stylel gt This is a new Content block that is created in Dre lt span gt erer ON This is a new Content block that is created in Dreamweaver but added to Ektron CMS400 NET lt body gt lt span style1 gt
277. bility to coordinate a menu with the design your Web site To customize a menu in Ektron CMS400 NET you can change the ek_menu js file See Also ek_Menu js on page 496 You can change the look and feel of a menu by changing the ek_menu js file If you used the default settings when installing Ektron CMS400 NET this file is in webroot cms400demo Workarea java Use the following table to help you change menu attributes Attribute name Specifies the Default value fontSize Size of menu text 14 fontWeight Thickness of menu text Plain You can set FontWeight by name Bold or Plain or value Values range from 0 1000 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 496 DHTML Menus Attribute name Specifies the Default value fontFamily Font style of menu text arial helvetica espy See Also FontFamily on page 498 sans serif fontColor Color of menu text 000000 Note When changing the color you can specify the color name or code fontColorHiLite Color of text when menu item is highlighted ffffff bgColor Color of border between menu items 555555 menuBorder Width in pixels of border around main menu 1 menultemBorder Width in pixels of border around each menu item 1 menultemBgColor Background color of menu items 6699ff menuLiteBgColor Color of main menu border highlight ffffff See Also menuLiteBgColor on page 498 m
278. block a collection of content blocks a summary list along with the presentation of that information for example an HTML string or an XML data structure representing content block information Below is a list of methods that ContentWS exposes with a brief description of functionality and differences from the applicationAPI implementation All methods are demonstrated on the sample page webroot cms400demo Workarea webservices ContentWS asmx For more information see The CMS400 NET Content Sample Page on page 567 Method Exposes this Returns Changes to applicationApi standard method as a web parameter values service method ContentBlock ecmContentBlock The content block as an HTML string ContentBlockEx ecmContentBlockEx The content block as an XML string If necessary performs XSLT transformation on content prior to its return GetContentBlock ecmContentBlock An XML data structure representing information in the ContentBlock Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 564 Collection ecmCollection A Collection presented as an HTML string whose format is determined by the display function that you specify You can create a custom display function in a separate NET dll GetCollection ecmCollection An XML data structure additional parameter representing information GetHTML Possible about a Collection values 1 returns html content
279. block summary Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 467 Collection Function Collection Attributes ID The collection ID number is assigned to the collection when it is created View Collection Intranet Press IS English U S v l Title B Ektron Announces Winner of All Stars Customer Competition E Ektron Expands Presence with Marketing Interactive and Web B Ektron Introduces an Enhanced Workflow Suite B Ektron Offers a Visual Development Environment for Rapid CMS B Ektron Supports Rapid and Efficient Globalization Strategies on E Ektron Inc Named One of New England s Fastest Growing Tect B eWebEditPro XML V4 2 supports the vision of create content or Intranet Press Template CMS400Example intranet pr aspx Last User To Edit Application Administrator DisplayFunction A display function determines which elements of the content blocks in a collection appear on a Web page Via ASP scripting you can create display functions or use any of the three included functions You must define the display function in two places e Inthe ecmCollection function as a case e In the API file as a function Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 468 RSS Collection Function RSS Collection Function The RSS collection function is used to create an XML list of links that were created as a collection in the Ektron CMS400 NET Workar
280. calls the Ektron custom functions file to allow the page to function properly It must appear at the top of the template file e If you have upgraded your Ektron CMS400 NET from an Ektron CMS300 version add the following line between the head tags for each template This only needs to be done if you are upgrading from CMS300 to CMS400 NET lt meta http equiv Content type content text html charset utf 8 gt To customize you Ektron CMS400 NET application you need to be familiar with these functions Function Description More Information Calendar Functions Event Calendar Displays a month view event calendar Event Calendar Function on page 534 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 521 Function Description More Information Collection Functions Collection Displays links generated by collections Collection Function on page 529 CollectionXML Creates XML for a collection by wrapping tags around all of the collection items and their properties This allows you to use an XSLT to define how the XML collection is displayed XML Collection Function on page 532 Random Content Randomly displays the content of a collection item Random Content Function on page 533 Random Summary Randomly displays the summary of a collection item Random Summary Function on page 533 RSS Collection Creat
281. capitalize text The expression must return a value of the same data type and format as the original value Several sample calculations are delivered with Ektron CMS400 NET They appear when the user clicks the Examples drop down on the Calculated Field dialog These calculations are explained in the Explanation of Examples section of the Using the Data Designer chapter of the Administrator Manual Select Field Examples Add two numbers s Y Lyd Subtract two numbers Y Multiply two numbers R Y Divide two numbers format number gt div Y O Format as a percentage format number div Y O Absolute value of a number lt number X gt 0 2 1 Minimum of two numbers gt lt number x lt Y number X gt Y Maximum of two numbers Pas You can only define one expression for lt calculate gt and lt validate gt The expression element choices are listed below Use whichever language is easiest e Regular Expression JScript e JavaScript e XPATH Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 588 Expression Description Regular Expressions JScript lt regexp gt Defines a regular expression supported by JScript You can define a regular expression either between the tags or using attributes If between the tags the expression must begin with a slash character The g i and m flags are allowe
282. ce Manual Version 6 0 for NET 2 0 Rev 8 45 Blog Server Controls 02 14 2006 Writing a Masterpiece Music I m gonna write the melody That s gonna make history Yeah and when I paint my masterpiece I swear I ll show you first Posted by John Edit at 02 14 2006 10 37 55 AM Comments 0 This is the story of my life And I write it everyday I know it isn t black and white And it s anything but gray Posted by Application Administrator at 02 14 2006 10 35 34 AM Comments 2 You can use the BlogCalendar and BlogEntries server controls together to allow blog readers to choose which day s blog posts they see For information on using these server controls together see Using the BlogCalendar and BlogEntries Server Controls Together on page 51 BlogEntries Server Control Properties The following table explains the properties of the BlogEntries control The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 46 Blog Serv
283. ced Search i i i Set all other properties with the options appear This is a Basic search See Also Basic and Standard Searches on page 208 Search content forms EnableAdvancedLink False an aie Be EnableContent True only Do not let the Search user change advanced Text EnableF obs True settings No standard EnableLiblmages True options appear Set all other properties with the This is a Basic word Enable to False search See Also Basic and Standard Searches on page 208 Search content only EnableAdvancedLink False Do not let the site user Search EnableContent True a a Text j ShowSearchOptions True options appear All the words Set all other properties with the This is a Standard Any of the words word Enable to False search See Also Basic and Standard O Exact Phrase Searches on C Match Partial Words page 208 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 210 Search Server Control Description How the Search Appears to Site Visitors Property Settings Let the user choose whether to search content forms library Cl Content C Forms EnableAdvancedLink True EnableContentBtn True EnableFormsBtn True images or all of them Imag also mix and match ShowSearchOptions True properties Standard Set all other properties with the options appear All the words word Enable to False F
284. chnologies Because Web Services allow heterogeneous systems to communicate with each other in a standard way they have received quick acceptance for data interchange over the Web It s easy for anyone to integrate your WS into their application The client application can be a Web application a Windows application a Java application a Visual Studio net application or a host of others it does not matter as long as it supports Web Services A Web Service consists of one or more methods that expose functionality In this sense a Web Service is an API that can be accessed using SOAP over HTTP SOAP is an XML based lightweight protocol that defines the message format of Web Services For example you might develop a purchasing application that automatically obtains price information from several vendors lets the user select a vendor submits the order and then tracks the shipment until it is received The vendor application in addition to exposing its services on the Web might in turn use XML Web services to check a customer s credit charge the customer s account and set up the shipment with a shipping company This manual does not explain how Web Services work To learn more about them try these sites e http msdn microsoft com webservices understanding readme default aspx e http aspalliance com jnuckolls articles introws default aspx e http aspnet 4guysfromrolla com articles 062602 1 aspx e http www 15sec
285. cify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 332 4 When completed click insert A graphic defines where the Display By Meta Value appears on your template i ot e lt form id Form1 method post runat server gt lt cms metadatalist id Metadatalisti FolderId 6 DisplayXslt ecmTeaser runat server gt lt cms metadatalist gt ektron display by Metadata Descrintion Shown below is an example of the code that is inserted Platform Code View NET lt cms metadatalist id Metadatalistl FolderId 6 DisplayXslt ecmTeaser runat server gt lt cms metadatalist gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Dynamic Content Block This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function For a description of a dynamic content block see Dynamic
286. cify more than one value for the font family Ektron CMS400 NET uses the default IE settings menuLiteBgColor Example Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 498 XML Menu XML Menu The ecmGetMenuXML function wraps XML around the properties of a menu created in the Ektron CMS400 NET Workarea Once created you can use the XML to display the menu The ecemGetMenuXML function allows you to easily define how the menu data appears on the Web page Shown here is the format of the eemGetMenuXML function lt ecmGetMenuXML id gt The ecmGetMenuXml function attributes are explained below Attribute Description Id The id that associated with the menu Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 499 XML Menu Here is how the raw XML Menu output appears before an XSLT is applied lt Item gt lt ItemID gt 1 lt ItemID gt lt ItemType gt Submenu lt ItemType gt lt ItemTitle gt MenuExample lt ItemTitle gt lt ItemImage gt lt ItemImage gt lt ItemImageOverride gt False lt ItemImageOverride gt lt Menu gt lt ID gt 1 lt ID gt lt Title gt MenuExample lt Title gt lt Template gt lt Template gt lt Type gt content lt Type gt lt Link gt lt Link gt lt ParentID gt 0 lt ParentID gt lt AncestorID gt 1 lt AncestorID gt lt FolderID gt 0 lt FolderID gt lt Description gt lt Description gt
287. ck The content block is inserted into Dreamweaver im lt DOCTYPE HTML PUBLIC W3C DID HTML 4 01 Transitional EN gt S lt html gt ee lt head gt lt link rel OSUNA href http Roce heat eS noDeey cetants css t t m e these xmi tags lt ektron head gt lt ext a lt p gt lt strong gt Ektron CMS400 NET Server Controls lt strong gt lt p gt ea lt p gt Developer productivity is a critical issue among Web teams Faced wi ii lt p gt Ektron CMS400 NET delivers that advantage It now offers eight visua iS lt p gt With CMS400 NET s new toolbox of pre built reusable data bindabl fa lt p gt As a result developers can dynamically build and deploy robust Ekt J lt p gt In addition to visual controls Web developers can access CMS data oi IES lt p gt Ektron CMS400 NET is pure NET content management solution So it su ie lt body gt re Ektron CMS400 NET Server Controls Developer productivity is a critical issue among Web teams Faced with the challenge of reduced IT budgets smaller teams and compressed schedules to roll out new Internet and intranet sites and rich Web applications developers need every advantage tilted in their favor to help their organizational Web strategies succeed PT E TREAT EPOP rT sienna rin and 5 Make the necessary changes to the content block using Dreamweaver s editing capabilities See Saving Existing Ektron CMS400 NET Content on page 254 for information about s
288. click on the Web page and click View Source Look in the head tag The meta tags from the content block are added to the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 364 The metadata information added is shown below WebForm5 1 Notepad lt DOCTYPE HTML PUBLIC W3C DTD HTML 4 0 Transitional EN gt lt HTML gt lt HEAD gt lt title gt webForm5 lt title gt lt title gt cmMs Developer lt title gt lt meta name keywords content CMS400 NET CMS gt lt meta name description content CM5400 developer section gt lt meta content Microsoft visual Studio NET 7 1 name GENERATOR gt lt meta content Visual Basic NET 7 1 name CODE_LANGUAGE gt lt meta content JavaScript name vs_defaultclientScript gt lt meta content http schemas microsoft com intellisense ie5 name Vvs_targetSchema gt lt HEAD gt Shown below is an example of the code that is inserted Platform Code View NET For ASP NET pages see Metadata for ASP NET Pages on page 359 ASP lt ecmMetadata 1 Title 9 3 Keywords Title gt ColdFusion lt cfmodule template request ecm AppPath ecmMetadata cfm ItemList 1 Title 9 3 Keywords Title gt JSP lt ecmMetadata 12 keywords Title gt PHP lt php ecmMetadata 1 Title 9 3 Keywords Title gt Multipurpose Content Block This tag appears on the fo
289. cmSearchNoFormTag Starting Folder Recursive Target Page Text Box Size Maximum Characters Button Image Source Button Text Font Face Font Color Font Size Horizontal Spare gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 428 Search Functions The following table provides information about all the attributes for the search tags Attribute Description Required For more information see Starting Folder The folder you wish to search Yes Starting Folder on page 431 Recursive Whether to search subfolders Yes Recursive on O No 1 Yes page 431 Target Page The Web page to output the Yes Target Page on search results page 431 Text Box The size of the text box for user Yes Text Box on input page 432 Maximum Characters The maximum number of No Maximum characters that the input text Characters on box can accept page 432 Button Image Source The image location for the No Button Image search button Blank Source on standard submit button page 433 Button Text The text used for the button if No Button Text on the standard submit button is page 434 chosen or alternative text for the button if an image is chosen Font Face The font of the search tag text No Font Face on page 434 Font Color The font color of the search tag No text Blank Black Font
290. come to RC International product page Whether you ar RC Lily just a beginner you will find fun and adventure in RC Intern RC Redstar RC Sportster RC Cars RC Sportster RC Internationals first entry RC Cheetah in to the competitive RC racina world was successful e The format of the collection on the Web page depends on the displayFunction that is used Below is the source code for the display function ecmNavigation Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 530 Function ecmNavigation S cInfo global html Sinto Shtml lt table border 0 cellspacing 0 cellpadding 0 width 100 gt cInfo gt count for Siloop 0 Siloop lt Smycount Siloop Sinfo S cInfo gt Item Silooptl Smycount html html html html html html return html html html html html html lt tr gt lt td gt amp nbsp amp nbsp lt a href info gt Item ContentLinks MMSI Sinfo gt Item ContentTitle lt a gt lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt Shtml lt table gt As you can see the ecmNavigation function is a simple PHP function that creates a table of the links that belong to the collection specified The ecmNavigation function also displays the title of the content blocks by using the info ContentTitle building block Example Using
291. content block ID number e Date Created The date the content block was created e Date Modified The date the content block was last modified e LastEditorLname The last editor s last name e LastEditorFname The last editor s first name Recursive Whether to search sub folders of the identified root Boolean folder The root folder is identified in the FolderlD property SortOrder Ascending or Descending String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 174 MetaDataList Server Control Property Value Data Type WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Retrieving the XML Structure of a MetadataList NOTE 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 1 Open anew Web form 2 Drag and drop a MetadataList server control onto it 3 Set the KeyWordName and KeyWordValue properties 4 Drag and drop a Textbox on the Web form 5 Set the TextMode property to MultiLine It is also recommended that you set the width of the text box to at lea
292. content when an ID is specified Leave blank to always display the Display By Meta Value Control None Use Default ID The control uses the content block passed as a URL parameter GetHtml Set to True if you want to retrieve and display content html body for all content blocks in the collection For example display content inside a web server control such as a GridView Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 331 Field Description Content Type Defines what type of list summary appears Content Displays only content blocks in the folder All Types Displays all content in the folder Forms Displays only forms in the folder Archive_Content Displays archived content from the folder Archive_Forms Displays archived forms from the folder Hide Used to hide the function in design time and run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info Set position information of a control as absolute when using a GridLayout Web GridLayout page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to spe
293. creen illustrated below These are the valid values for the treeImg attribute Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 595 Select a Field or Group book Books 1 or more lab title Insert the title of the book c genre 1 authors lab price v Paperback fin Field1 CH Field2 ab Field3 fn AB AB 12 A 12 B B mee Field4 current field Icon Name im calculation WD calendar checkbox a droplist i fieldset m hidden hyperlink number password picture Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 596 Icon Name richarea abl text E textbox Learn More about XPath Xpath Operators Content copied from www w3schools com xpath Operator Description Example Result Numerical expressions perform arithmetic operations on numbers XPath converts each operand to a number before performing an arithmetic expression addition 6 4 10 subtraction 6 4 2 E multiplication 6 4 24 div division 8 div 4 2 mod division 5 mod 2 1 remainder Equality greater less than expres sions test equality between two values equals price 9 80 true if price is 9 80 l is not equal price 9 80 false lt less than pric
294. ct Box on English U S v page 344 aktron List Summary J Fi heel List Summary m Login Logout Login on button Y vA page 352 Membership Fa Membership gt Control on 3 Membership No symbol appears when Metadata is Metadata Metadata for inserted in a Web page vA Y ASP NET Pages on page 359 or Metadata Function for ASP CF JSP or PHP Pages on page 362 Multipurpose Multipurpose ektron content block v4 Content Block Content Block on page 365 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 258 Symbol Represents ASP NET ASP CF More JSP PHP Information Poll Poll on CMS400 aL Y page 367 Random Random ektron Content vA Content on Random Content page 370 Random Random ektron Summary v4 Summary on Random Summary page 371 RSS RSS Aggregator vA Aggregator on page 373 Search Search on tron Y vA page 375 Search Tag Search Search Display ektron 4 display v4 on page 387 S arch Display function w Single Single ktron Summary v4 Summary on Single Summary page 390 CMS400 Site Map wf Site Map on z Site Map page oae Standard Standard Menu ektron Me u Menu Y on page 394 XML Index XML Index Search vA Search on Search Tag page 397 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 259 Ektron CMS400 NET Comm
295. ctions etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String BlogID The ID of the blog in CMS400 NET For example 41 If you don t know the ID of the blog use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer Hide Used to hide language select dropdown box and label in design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Boolean Language Set a language for the Language Select Box The language property shows results in design time in Visual Studio and at run time in a browser Integer NumberofPosts Sets the number of post links to display Integer SuppressWrapperTags Suppresses the output of the span div tags around the control The default is False True Suppress wrap tags False Allow wrap tags Boolean BlogRSS Server Control The BlogRSS server control displays the icon BD for the blog s RSS feed on the W
296. d For example lt regexp gt S lt regexp gt lt regexp patternings exp A regular expression pattern without the chars pattern lt regexp global true false Specifies whether the pattern matches only the first occurrence or all occurrences within the text This corresponds to the g flag lt regexp ignorecase true false Specifies if the match is case sensitive This corresponds to the i flag lt regexp multiline true false Specifies if the match when using and is applied to each line in text that has multiple lines This corresponds to the m flag lt regexp wholeline true false Specifies whether the pattern applies to the whole text or not This is the same as placing at the beginning of the pattern and at the end of the pattern JavaScript lt script value javascript Specifies a JavaScript expression to be evaluated The expression field s value is available in a property named this text For example lt script value this text toUpperCase gt XPATH See Also Learn More about XPath on page 597 lt xpath select xpath Specifies an XPath expression to be evaluated The field s expression value is available using Defining Validation Use the lt validate gt element to define an expression that determines if a value is valid The expression must return a Boolean true or false result For exa
297. d Searches Togethe 00 209 Pleldset Properties ssscscsiccscacccsdacscscsesiacseccseccacstsestesaccescovtsacnadere 212 Retrieving the XML Structure of a Search ccccssseeseeeeees 213 Displaying Search Results on a Separate Pag 00 214 Usingia Style SI s sisien 216 Formatting the Search Server Control cccccssssssesseeeeees 217 IndexSearch Server Control sssssssssssseeeeeeneeennnnnnnnnnnnnnnnnnnnnnn 218 IndexSearch Server Control vs Search Server Control 218 IndexSearch Server Control Properties sssseccesssseeees 218 SearchParmxML Propety s cieca ccascmssasscomastectgasheseneaceaaiesiadasadies 225 Using the IndexSearch Server Control Programmatically Ex Ample aie cscccce a cedtccnce sceacaccacnnnntenaacennsecuceininnd pentatncgnbebdesnbcecseeccacees 228 Programmatically Predefined General Search Results Re placed By Specific Search Results cccceeeeeseseeeeseenes 231 Turn Off Caching In Netscape Navigator and Mozilla Firefox 234 SiteMap Server Control c ccssssseeeeeeeeeeeseesseeeeeeeeeeeeeenees 235 Sitemap Server Control Properties cccsssseecceeeeeeeeeeeeees 235 Using the Sitemap Server Control s eeeeeeeeeseeeeesneeeeees 237 Dreamweaver Extension Suppott seeee 238 PREQUIP GINNING wei cisascscccccsnccceccstsscnastsscsnansetieeceandnecnsscanseecntevandeccte 238 Preparing Dreamweaver for Ektron CMS400 NET F
298. d value as a url parameter see Dynamic Content Block on page 419 If the id value or ekfrm value does not exist a blank template appears If the url parameter is not passed in or recognized the function calls ecmContentBlock and passes the DefaultID value as the id argument If the DefaultID value is zero 0 ecmContentBlock is not called Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 487 Metadata Function Metadata Function The metadata tag is used to display the metadata for one or more content blocks in the Ektron CMS400 NET Web site This custom tag lets you generate the list of metadata edited by the authors and insert it in the source of the Web page Below is an example of the metadata custom tag lt ecmMetaData liemList Spare1 gt The attributes are described below Attribute Description Required ItemList List of the content block ID numbers and No exclusions See Also Creating an Item List on page 488 and Item List on page 491 Spare1 Not yet implemented See Also Spare 1 MUST BE on page 493 Creating an Item List The Item List for the ecmMetadata tag has the following format content block id Exclusion list content block id Exclusion list Attribute Description Required left Delineates the beginning of a content block id exclusion list pair Yes bracket Content The
299. date The Start Date assigned to the content block when created AuthorFname author s first names AuthorLname author s last name Ascending Descending This attribute is an addition to the previous OrderBy attribute By default the list of the summaries are descending meaning they will follow the path of A B C or 1 2 3 When set to ascending they will order by Z Y X or 3 2 1 You will have the option to re arrange these to display either in ascending or descending order To do this add the following to the OrderBy attribute Value Description This will order the Summaries in an ascending order Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 447 List Summary Function Value Description desc 0 This will order the Summaries in a descending order This is the default setting By using the ascending descending option you will have the option to set the order of content blocks from most recent to oldest or vice versa As well as ordering the list by the user s first names or last names in ascending or descending order Show Info The show info field determines what sort of information is displayed to the right of the hyperlinked title There are four different options that you may choose from Value Description Web Page View DateModified Displays the date the content was last modified RC Sportster The RC Sportster ts design nid level RC r
300. day calendar month view Monday Tuesday Wednesday Th e Day Single day view e Inline Display events that occur from the start date of the calendar through the end date Thursday Dec Saturday Dex 12 15 2005 Monthly Audit Riisiness Offire e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt December Jan Eg OJ Nov 2005 gt Christm Mon Tue Wed Thu Fri Location 112 Start 7 3 End 11 0 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 535 Event Calendar Sample Here is an example of the event Calendar in an Ektron CMS400 NET template lt tr gt lt td gt lt td gt lt tr gt lt php ecmEvtCalendar 24 MonthUpWithEvent gt Form Function IMPORTANT The ecmFormBlock and ecmFormBlockNoFormTag functions display an HTML form content block Both functions have the same parameters and display the form the same way The only difference is ecmFormBlock automatically inserts form tags ecemFormBlockNoFormTag does not The following is an example of form tags lt form name myform action onsubmit return EkFmValidate this method post gt lt form gt When using ecmFormBlock form tags are added automatically When using ecmFormBlockNoFormtTag form tags need to be added manually For more information about HTML forms see the Ektron
301. dd Content on page 504 Content Block Displays and manages a content block Content Block Function on page 503 Form Multipurpose Language Functions Displays a content block associated with a form Displays either a content block or a form Form Function on page 516 MultiPurpose Function on page 516 Language Select Lets a site visitor select a language in which to view site Language Select Function on page 520 List Summary Functions Archive ListSummary Displays summaries of archived content blocks Archive List Summary Function on page 509 List Summary Displays a list of content block summaries List Summary Function on page 507 List Summary XML Creates XML for a list summary by wrapping tags around all of the collection items and their properties This allows you to use an XSLT to define how the XML collection is displayed XML List Summary Function on page 508 RSS List Summary Creates an RSS feed out of the items in a list summary RSS List Summary Function on page 508 Single Summary Displays the summary for a content block Single Summary Function on page 509 Login Functions Login Adds the login or logout button Login Function on page 503 Menu Functions Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 502 Function Description
302. des in the same folder as the registration page you only need to enter the name of the page For example RegFailed aspx If the redirect page is located in a subfolder you need to add the folder path For example members RegFailed aspx RegisterButtonlmg Lets you add an image in place of the text on the register button RegisterButtonText Text that appears on the Register button The default is Register If you use a register button image you do not see this text ResetButtonlmg Lets you add an image in place of the text on the reset button ResetButtonText Text that appears on the reset button The default is Reset If you use a reset button image you do not see this text Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 357 Field Description ShowExtended Decide if the Custom User Properties are available when using this control The default setting is True True Show Custom User Properties False Hide Custom User Properties Note For more information on Custom User Properties see the Administration Manual section Custom User Properties UserExistsMessage The message that appears when a membership user already exists The default message is Username email already exists UserSuccessMessage The message that appears when a membership user successfully registers The default message is You have registered successfully UserUpd
303. description of the BreadCrumb function see BreadCrumb Server Control on page 59 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt CMS Module Controls To insert a BreadCrumb Trail 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click BreadCrumb Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 293 3 The BreadCrumb dialog box appears Ektron CMS400 Bread Crumb Used to display a Bread Crumb Control ID Meta tag to use MetadataName DisplayTitle CurrentPagelIndicator Content ID Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parameter None Vv IconPath IconAlt LinkTarget _self v Link Last Item H Create Hyperlinks L Maxitems 5 _ Seperator gt Display Style Horizontal Normal Mode C Hide C1 Visible LZ Wrap tag Positioning info GridLayout Style 4 Use the following table to assist you with inserting a BreadCrumb Trail Field Description Control ID A unique name for the function you are inserting Meta tag to use Specify the name of a Metadata Type that you want to associate with the MetadataName page For more information see BreadCrumb Metadata Type on page 65
304. dex Search Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 397 3 The Insert XML Index Search box is displayed Ektron CMS400 Index Search Used to display a list of content block from a folder Control ID XML ConfigID Select the XML Configuration FolderID Select the folder or fill it in above Search Parm XML Weighted ShowSearchBoxAlways Recursive LinkTarget _self v Order By Title v Ascending Max Number of results 9 Display Type eomTeaser Dynamic Content Parameter None EncodeContentHtml Hide O Visible Positioning info GridLayout Style Wrap tag Button Text Hits Marker 4 Use the following table to assist you with inserting an XML Index Search Field Description Control ID A unique name for the function you are inserting XML ConfigID ID of the Smart Form whose indexed fields appear on the search screen If you do not know the XML ConfigID you can navigate to it using the Select Smart Form drop down box Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 398 Field Description Select XML The drop down box is populated with a list of all the XML Configuration titles Configuration When a title is selected the XML ConfigID textbox is filled with tha
305. dress http localhost CMS400Example webform aspx Links EktronNet Welcome Ektron Inc CMS400 Ektron on Any of the words O Exact Phrase Cl Match Partial Words 9 The search results display on the second Web form pe DL LB Ga PU Sen oes QI OT GM ka Address 4 http localhost CMS400Exampl webform2 aspx Links 2 EktronNet Welcome 8 Ektron Inc 4 CMS400 Example 4 Welcome to RC International 4 Welco Web Server eWebEditPro XML V4 2 supports the vision of create content once reuse many times Ektron Inc Named One of New s Fastest Growing Technolo anies Ektron Supports Rapid and Efficient Globalization Strategies on the Web Ektron Offers a Visual Development Environment for Rapid CMS Integration and Deployment Ektron Introduces an Enhanced Workflow Suite Ektron Expands Presence with Marketing Interactive and Web Design Firms Ektron Announces Winner of All Stars Customer Competition Corporate CMS Developer Using a Style Sheet You can create your own style sheet or modify the existing default one global css Itis located in webroot cms400demo Workarea csslib Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 216 Search Server Control Style Sheets let you choose different text colors text alignment text fonts and text size to create a customized feel for your search Best Practice Ektron recommends copying
306. dth AN harder N nal lonanina N nallnaddiner KAT RG international ort News Careers Search Calen TTET ETETE St Teeter terete ert Si ererteererier tir oreredy Home Products Supp TEtttttetiritiretiitiiiiiiiititiitiiiictiiiitiit ii iiiiitiiliititiitiitiiiit iit iitii iit ir titi iri ir irri dy ektron Single Summary Shown below is the code that will be inserted according to the platform that has been specified in the setup Platform Code View ASP lt ecmSingleSummary 1 1 DateModified gt ColdFusion lt cfmodule template request ecm AppPath ecmSingleSummary cfm ContentID 1 ShowSummary 1 StyleInfo ShowInfo DateModified gt JSP lt ecmSingleSummary 1 1 DateModified gt PHP lt php ecmSingleSummary 1 1 DateModified gt php g y Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 391 Site Map For a description of the Site Map function see SiteMap Server Control on page 235 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt CMS Module Controls To insert a Site Map 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Site Map 3 The Site Map dialog box appears Ektron CMS400 Site Map Control ID sitemap1 FolderID Where to start Site Map
307. dy CE WH a ana A a VAs WA N taocem vame GEJ oa 2 Tn Wn an a Ea CAB s Dw Al Aw Al eS ofa Ge sia vila Bie Vale BAe r ak Ejo 2c es Aa e background C5DAEF e border bottom c9bda5 1px solid e font family Arial e font size 9pt e font weight bold mv_DateCellEmpty Today Note This cell appears empty when you are not logged in to Ektron CMS400 NET The today cell that holds the Add Event and View Event buttons The following example shows the date cell empty today in red lt lt March April M gt Sunday Monday Tussdiy Woedhesday Thurecey trictay Saer cty a5 1 aA a TA WE a Bl s A a WA s Sale Falu Se SB no Sod A a3 Sd Bl aa Bd B as a Blas 6 Alar Sd SJ 1 d 8 19 Sd Al 20 Se Blan Sd Baz Se Sa Tala Sd SJ as 3 S 29 Sd Sl az Ss Size Sd 5 22 ed A ao e background FFE354 e border bottom B38B3B 1px solid e font family Arial e font size 9pt e font weight bold Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 627 Style Class Description Attributes and Default Settings mv_DateCellEmpty Note These cells appear empty when you are not logged in to Ektron CMS400 NET The weekday cells that holds the Add Event and View Event buttons The following example shows the date cell empty in red lt April May Ame Sunday Moedey Tuesdsy Wednesday Thursday Friday Saturday 33 GAB CEN CEN CEN G
308. e blog post comments and comments form on the web page The second way is if a user is not logged in the control displays only the blog post NOTE the Enable Comments property in the workarea must be enabled for comments and the comments form to appear BlogPost Server Control Properties The following table explains the properties of the BlogPost control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 48 Blog Server Controls Property Value Data Type Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer DefaultContentID The ID of a blog post that appears where you inserted this server control if no other conte
309. e lt 9 80 false if price is 9 80 lt less than or equal price lt 9 80 true to Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 597 Operator Description Example Result gt greater than price gt 9 80 false gt greater than or price gt 9 80 true equal to Boolean expressions compare two values or or price 9 80 or price true if price is 9 80 9 70 and and price lt 9 80 and false price 9 70 Identifying a path and element the current gt 100 true if element exceeds 100 element the current count counts the number of element s parent elements at the same level as the current element Grouping and separating predicate 0 0 returns the parent s first child element specify multiple sum X Y Z If X 1 and Y 2 and Z 3 elements sum X Y Z 6 Xpath Functions Content copied from www w3schools com xpath Operator Description Syntax Example last Returns the position number of the last number last node in the processed node list position Returns the position in the node list of the number position node that is currently being processed Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 598 Operator Description Syntax Example count Returns the number of nodes in a node number count no set de set n
310. e Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below lt CFMODULE template request ecm AppPath ecmCollectionXML cfm id 3 getHtml 0 gt RSS Collection Function The RSS collection function is used to create an XML list of links that were created as a collection in the Ektron CMS400 NET Workarea and display them in RSS Syndication Shown here is the format of the ecmRssCollection function lt CFMODULE template request ecm AppPath ecmRssCollection cfm gt id 2 This function is basically the same as the RSS Collection function in ASP See RSS Collection Function on page 469 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it Event Calendar Function The ecmEvtCalendar function is used to display an event calendar that has been created in the Ektron CMS400 NET Workarea Displayed here is the format for the event calendar custom function lt CFMODULE template request ecm AppPath ecmEvtCalendar cfm Calendar_ID DisplayType gt This function is basically the same as the Event Calendar function in ASP See Event Calendar Function on page 478 for details Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 513 The only differences between the Coldfusion function and the ASP one are the use of the DisplayType parameter and the syntax for implementing it T
311. e SearchParmXML property is used to create a predefined XML search whose results appear upon page load Clicking on the gray box in this property opens a window where you define the search The parameters in this window are defined by the xmlConfigID you choose Using this property launches the CMS Explorer login if you are not already logged in For more information on the CMS Explorer login see Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 The following example uses the SearchParmXML property to create a list of books based on publishers with press in their name Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 225 IndexSearch Server Control 1 To activate the window click the gray box in the SearchParmXML property i a 2 The Build Search Parameter screen appears Build Search Parameter Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 226 IndexSearch Server Control 3 Click the check boxes for the parameters you want to search with HE Build Search Parameter Search Parameter root publisher root authors author lastname string 4 Define the parameter HE Build Search Parameter The drop down box in this example contains the following variables Select One Prompts you to choose a variable Exact Phrase You enter a phrase and search for that exact phrase contained within the XML c
312. e XSLT to apply to the content Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 318 Click insert A graphic showing you where the XML content block will be placed on the template is inserted lt gt Code split L Design Title fe lt BODY gt lt ecn nante lt 3 ecmContentBlockEx 30 0 gt lt ecm_content_xslt gt ektron XML Content Block Shown below is the code that will be inserted according to the platform that has been specified in the setup Platform Code View NET This function is not available as an Ektron Dreamweaver Extension for NET ASP lt ecmContentBlockEx 30 1 gt ColdFusion lt cfmodule id 5 xsltpath xslttype 1 template request ecm AppPath ecmContentBlockEx cfm gt JSP lt ecmContentBlockEx 24 0 gt PHP lt php ecmContentBlockEx 5 1 gt DHTML Menu For a description of the DHTML Menu function see DhimlMenu Server Control on page 160 This tag appears on the following menu s Commands gt Ektron CMS400 NET Server Controls gt CMS Module Control To insert a DHTML Menu Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 319 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click DHTML Menu The DHTML Menu Control box appears
313. e css s the default style sheet It is located in webroot cms400demo Workarea csslib For more information on style sheets see Using a Style Sheet on page 165 The Stylesheet property can be used in conjunction with the CssClass property to define the root menu Dynamic Menu Parameter Checks the QueryString for the menu value and replaces the menu with content when ID is specified Leave blank to always display the menu None Use Default menu_ID The control uses the menu passed as a URL parameter Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 324 Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Hide Used to hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info Set position information of a control as absolute when using a GridLayout GridLayout Web page For example style Z INDEX 101
314. e for the Language Select Box The Integer language property shows results in design time in Visual Studio and at run time in a browser SuppressWrapperTags Suppresses the output of the span div tags around the Boolean control The default is False True Suppress wrap tags False Allow wrap tags BlogRecentPosts Server Control The BlogRecentPosts server control displays a list of recent blog posts links on a Web form when a link is clicked it takes you to the blog post You can control how many recent post links are displayed by setting the NumberofPosts property Typically this control is displayed along side other Individual Blog server controls Using the individual server controls such as the BlogRecentPosts server control allows you to have more flexibility for layout and appearance than if you use Blog server control BlogRecentPosts Server Control Properties The following table explains the properties of the BlogRecentPosts control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 56 Blog Server Controls Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can use it to browse to Content Colle
315. e if you change the location or name of the ServerControlWS asm x file Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 14 Using CMS Explorer to Browse Your Ektron CMS400 NET Site Ektron CMS400 NET provides a window called the CMS Explorer that lets you browse through your Web site to identify CMS objects such as folders calendars blogs and content blocks For example if you insert a List Summary Server Control its FolderlD property identifies the folder whose contents are displayed If you are not sure of the folder path click the gray button VICLLIV ASCCHUHIY DisplayXslt ecmNavigation a Hide False anniuane 10337 When you do a login screen appears illustrated below NOTE A user cannot be logged into the CMS Explorer and the CMS400 NET Workarea at the same time If you log into the CMS Explorer while logged into the Workarea you will receive the following error when you try to use the Workarea Error The current user does not have permission to carry out this request CBR R31 If you log into the Workarea while logged into the CMS Explorer you will need to re login to the CMS Explorer when you return to using it CMS Login Status Logged Out Username i Password Domain Select Close Login Logout Enter your Ektron CMS400 NET username and password When you do the CMS Explorer window appears providing a visual way to browse your Ektron CMS400 NET Web
316. e the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click Form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 338 3 The Insert Form box is displayed Insert Ektron CMS400 Form Displays and manages a Form Control ID of seconds Cachelnterval Add Validation default true Indude Form Tags default false Hide Visible Positioning info GridLayout Style sid leave blank if none Wrap tag Span KOO IMPORTANT When inserting a form tag using ASP CF JSP or PHP a different dialog box appears CMS400 Forms Tag List of Forms FormID Select the Form to insert into the page 4 Use the following table to assist you with inserting a form Field Description Control ID A unique name for the function you are inserting Used in ASP NET only Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 339 Field Description Form ID Type in the form ID that you want to insert If you do not know the Form ID you can navigate to it using the Select Form drop down box Select Form The drop down box is populated with a list of all the form titles When a title is selected the form ID textbox is filled with that form s id number If you insert the Form ID you do not need to select a form Dynamic For
317. e the word Title from the DisplayTitle property op hy gt Add the following line code to the page load event code behind BreadCrumbl DisplayTitle ContentBlockl EkItem Title 6 Build the project 7 View the Web form in a Web browser Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 67 BreadCrumb Server Control The following is an example content block titles used as breadcrumbs Address http flocalhost CMS400Example webform5 aspx v E Links 4 EktronNet Welcome 4 Ektron Inc CMS400 Example Welcome to RC International Paid Time Off PTO gt CMS Developer A Native NET Content Management Solution Improve developer productivity and experience with drag and drop CMS components ektron fortemplate development C M S ne t CMS400 NET s visual development environment supports rapid integration and deployment Blaran CMSANN NET ic a noawerfnl XMT cantent manacement 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 e
318. e way a link acts when a link is clicked _blank This target causes the link to always be loaded in a new blank window This window is not named _self This target causes the link to always load in the same window the anchor was Clicked in This is useful for overriding a globally assigned base target _parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 399 Field Description Order By Specify how you want to order the search results that are generated when a search is performed on you Web site Also specify if you want the results in ascending or descending order e Title The title of the content block e Date Created The date the content block was created e Date Modified The date the content block was last modified e Last Author Last Name The last author s last name e Last Author First Name The last author s first name e Ascending Alphabetic or numerical order e Descending Reverse alphabetic or numerical order When you choose weighted search results Ascending and Descending use how many criteria matc
319. eFormsBtn True EnableLibFiles False OAI the words EnableLibFilesBin False Any of the words EnableLibHyperlinks False Exact Phrase EnableLibHyperlinksBin False C Match Partial Words EnableLibImages False EnableLibImagesBin False FolderPath xf You can force a user to search using only properties you define preventing him from changing any properties For example to create a forms only search set all properties with Enable in the name to false except for EnableForms This is known as a standard search See Also Basic and Standard Searches on page 208 NOTE When setting up a server control for a standard search you must choose the actual property to search with not the property that enables the check box For example to search forms use the EnableForms property not the EnableFormsBtn property Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 207 Search Server Control Basic and Standard Searches A basic search contains only three items when displayed on a page e text to describe the text box e a search text box e a submit or search button A basic search takes the least amount of real estate on your page and provides the fewest number of options to a site visitor Below is an example of a basic search This is handy when you want to have a search perform specified functions with little user control To make your search control appear as a basic search set the
320. ea The ecmRssCollection function is highly customizable allowing you to easily define how the collection data appears on the Web page Shown here is the format of the ecmRssCollection function lt ecmRssCollection id gt The ecmRssCollection function attributes are explained below Attribute id The id of the collection that you would like to be displayed is defined here Description See Also The Ektron CMS400 NET User Manual Section Working with Collections gt Comparison of Collections Menus and the List Summary Features Here is how an RSS Collection appears when viewed without an RSS reader on a web page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 469 RSS Collection Function lt xml version 1 0 gt lt rss xmlins xsd http Awww w3 org 2001 XMLSchema xmins xsi http www w3 org 2001 XMLSchema instance version 2 0 gt lt channel gt lt title gt Books lt title gt lt link gt http localhost cms400demo WorkArea WebServices ContentWS asmx lt link gt lt description gt lt description gt lt item gt lt title gt Visual Basic NET How to Program lt title gt lt link gt http localhost cms400demo collection aspx id 23 lt link gt lt description gt Visual Basic NET How to Program Second Edition is an awesome resource for the beginning VB NET developer who is serious about the craft of programming In
321. ea that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Categories Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 275 3 The Insert Ektron CMS400 NET Blog Categories box appears Ektron CMS400 BlogCategories Select the folder or fill it in above of seconds Cachelnterval Hide O visible M Positioning info GridLayout Style Wrap tag Span vi 4 Use the following table to assist you with inserting the Blog Categories function Field Description Control ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 276 Field Description Visible Used to show or hide the
322. eadcrumb Server Control on page 69 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt CMS Module Controls To insert a Folder Bread Crumb Trail 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Folder BreadCrumb 3 The Folder Bread Crumb dialog box appears Ektron CMS400 Folder Bread Crumb Control ID FolderBreadcrumb1 Have the breadCrumb either be derived by the folderID OR the ContentID FolderID Select the folder or fill it in above ContentID Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parameter None v Display Style izontal j v Hide Visible of seconds Cachelnterval Positioning info GridLayout Style Wrap tag span v 4 Use the following table to assist you with inserting a Folder Bread Crumb Field Description Control ID A unique name for the function you are inserting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 336 Field Description FolderlD The numeric id of the folder that you want to use If you do not know the folder ID you can navigate to it using the Select folder drop down box Content ID Gets or Sets the ContentID If you do not know the Content ID
323. eb page contains a link to another piece of content you can display the second piece of content in the same Web page space None Displays a static content block id Content block is passed as a URL parameter Important If you are using an ASP CF JSP or PHP page you must use the Dynamic Content Block Tag to create a dynamic content block See Dynamic Content Block on page 333 Hide Used in ASP NET only Used to hide a content block in design time and run time True Hide content block False Show content block Note If Hide and Visible are both checked the property is hidden Visible Used in ASP NET only Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 308 Field Description of seconds Cachelnterval Used in ASP NET only Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Style Positioning Info GridLayout Used in ASP NET only Set position information of
324. eb form When the icon is clicked the RSS feed for the blog appears Typically this control is displayed along side other individual Blog server controls Using the individual server controls such as the BlogRSS server control allows Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 57 Blog Server Controls you to have more flexibility for layout and appearance than if you use Blog server control BlogRSS Server Control Properties The following table explains the properties of the BlogRSS control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 BlogID The ID of the blog in CMS400 NET For example 41 String If you don t know the ID of the blog use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data fo
325. eeeeeneeseees i What s New in the 6 0 Release cscssscssssssssssssseenseeeees iii About This Manual isiciscccissccssanisissisiemmnaiiecsseesmamianeeuan 1 List of Developer ReSoOUrCeS sssssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 2 Introduction to Ektron CMS400 NET Server Controls 7 Blog Server CONO S sirsiran iaaii 43 BreadCrumb Server Control cccssssssseeeecessesseeeeesnseeeeenes 59 FolderBreadcrumb Server Control ccccsssssseeeeeessseeeeeees 69 BusinessRules Server Control cccccsesseeeeeeecesnseneeeees 73 Calendar Server Control cccsssssscsssesccsseeeessesesseeenssesenas 75 Collection Server Control sececcsssseeeeeeeessseeeseeeeeneees 82 Content Analytics Server Control sc ceeeeeeeeeeeeeeeeeeees 89 ContentBlock Server Control ccccsssseeeeeseeesseeeeeeenennees 91 ContentList Server Control cccssseccssseeeessseseseesenseenes 100 ContentRating Server Control ccccccessseeeeeeeeeeeeeeeeeeees 110 DesignTimeDiagnostic Server Control ssssseeeessseees 115 FormBlock Server Control ccsssssessseecessseeeseeeenseeseneees 117 Forumi Server Contr Ol cirrus 120 HTMLEditor Server Control c cccccssssccssseeeessseeeeseseeeneees 122 LanguageAPI Server Control ccccccccsssseeeeeeeeeeeeeeeeeeeeeees 130 LanguageSelect Server Control sssssnsssesnnnnrennnnnnnnnnnnnnnn 133 ListSummary Se
326. eeeseeeees 133 LanguageSelect Server Control vs LanguageAPI Server Con MO ecesoez sazecceticcstececszetiaicncsetetecceedectieceetaecersesteeccstccesseseeesesee edie 133 LanguageSelect Server Control Properties s eee 133 ListSummary Server Control cccccccssseseeeeeeeeeeeeeeeeseeeeees 135 ListSummary Server Control Properties ccccessseeeeees 135 OrderKey Propertysia ema e 140 List Summary Example sscscsscsncsctessctnctncccdnsdiesccsncsnoeceketesdeetetece 141 Retrieving the XML Structure of a List Summary 142 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xii Login Server Control siscccscsiscesscacscsweneesnunsnssnasensiacaanneiesacennnas 143 Placing a LOGIN BUT OM jicsiccsescccssccsosccnascacmrenasencocanunseeemtensnestass 143 Login Server Control Properties css seccesssseeeeesseseeeeees 144 Membership Server Control cccccceessseeeeeeeeeeeseeeeeeeeees 146 Membership Server Control Properties ssseccesssseceees 147 Display ModE iiinis arii aeina a RE 150 Men Server Contr Ol sassisisssciesssesssascansvacvscsvsncesnseierversesnsveveves 152 Menu Server Control vs DhtmiMenu Server Control 152 Menu Server Control PropertieS cccsssseeecseseeneeeeeseeeees 153 Using DisplayXslt Samples ccccsssseeeceeeeeeeeeeeeeeeeeeeeeseeeees 154 Sample MON UN sinaia ea 154 SampleMenu XSL COJE sarisaring 156 MESME MU
327. eerrrrrrrrererrerrrrreeetrercrreererrererrrerererrrrr ee 3 TONA clerrreeeerererer rete errrerrrecerrrerre errr tr tear rr rere errr errr terre 3 Exe imal RESOUNCES orsa e at reatt anette 3 Knowledge Base AMiCleS icccscccisessteesanentinecaveistes mune saeereneieaeecawen 3 Ektron s Developer Training COUrSC ccccsssseeeeseseeteeneeeees 3 Developer Site Provided with Ektron CMS400 NET Install 3 Ektron CMS400 NET API Documentation sssssssseeeeeeeeeees 4 API Help Inside Visual Studio 2005 cccccceeesceeeecteeteeeeeeeeaeeeees 4 APL GIO m PDF ORM a sssaaa AE 5 From ihe Desktop sessiosta 5 From the WOK ANE S acts sccaunicnet sec teeazedeageatesssgiemisasiearannialitatens 5 Froni WWWLGKMON COM casino e 5 Ektron Support and Product Pages sccccccccccssesseeeseeeeeeees 5 Supporting DOCUMICTUG ssrsnun na 6 Introduction to Ektron CMS400 NET Server Controls 7 Opening the Sample Project ssssssecesssseeeeesssseneeeeeseneeeeeeens 7 Setting Up a Template wesc sssssisccicscsccsectecessacecentstdecenencaseecenennucssesnis 9 Making the Server Controls Available ccsssseccseeseneees 10 Removing the Server Controls c cccccssceeeeeecceeeseeeeeeeeeeeeeaeeeeesens 12 Updating the Server Controls sipisayki 12 Inserting Server Controls Using Drag and Drop 000 12 Adding a Server Control to a Template ccceceeeeeseeeeeetteeeeeees 12 SarvorContro WS ASMK ana
328. eeseees 509 Single Summary Exam ple sssscccssieresccceeisedeencieisideensiieieash assess 509 Collection FUNCION sarsana annin nn 509 Example Using the ecmNavigation Display Function 510 Example Using the ecmTeaser Display Function 0 ceeee 511 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xviii Collection Vatlables setzscccaisiaazccceiaiosscaces aiiaasace taagiansancnaiseroreeteeiens 512 DISPIAVE UMGUO E E A E E E TA 512 XML Collection FUnCtlon iccsccsscecccssecccccsecsassceccecanteseenstaseatecuscces 513 RSS Collection FUNCUOM sicicsincscsccccsncissccesenctntenenseneccnassensnccnneae 513 Event Calendar FUNCOM scscscsisccsccccccasacccccccancsiecstsecseteneaiccneacce 513 Event Calendar Sample ecactccstc acct sgsatcett ia cnes srtns a 516 Form FUNCTION i siscsistcascscscsiscisiencsevatscasinseacseatactataasasestinasdddacsacdee 516 MultiPurpose FUNCIION cnsiicsiscescscestccczncaiesscstesticeasicestucientcececwes 516 M t data FUNCGHOM issisisgiiscininscinoniesaniosninine iingie ieie oiii 517 DATME MENUS natn cette Shakes eee adi niena 518 Additional Documentation in Ektron Knowledge Base 45 519 Displaying a Menu on a Web Page sscceeeeeseereeeeeeesereeeees 519 GenerateMenu and DropMenm ccccceeeeeeeeeeeesteeeeeenes 519 Customizing the Menu s Appearance ccceceeeeeeeesteeeeetteeeeeees 519 SK MONI eria teimadiasiubentinsasin
329. eesseesenses 541 Custom AP isiireenecesnstnnneninnnnernain 542 Custom JSP Functions ssssssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 543 Calera ar FUNCIO ciccccacsictecescecccsecccsseccsecncsetesicacccceccimesccesecicns 545 Calendar Sampl Gece ry cies descesivensteceeceedascerastosecadaceaeaceszegyetbadiccssseihoss 546 Event Calendar Function cccccccccsssssesseeeeeeeeeseseeeseessnees 546 Event Calendar SAM ples iain icadsneetssececeweinnesacqnesssteusduesssnsedsameonas 546 Collection FUMCHON scccccsc csc ceeteccoccccccecnetcscctetecteccctececactiaiicnccteus 547 Collection SAM PIC sareni eq vsnstazeensoevanincsndeeds 547 AML Collection FURGHON scssi 547 Random Content FUuNCtiON s cccccesssssseesssssseeeeseeseeseeessenees 548 Random Summary Function ssseecceseseeeeeeesseeeeesseneeneeeees 548 RSS Collection FUNCH OM arnan 548 Add Coment sensan 549 Add C ntent Example sriisroipidesn aa 549 Content Block FUNCHON snesen 549 Static Content BOCK scasssssssatasanassannaasanassasnusdenaapnannssenraanannadeacaaannars 550 Dynamic Content BOCK sesssssscttccasansaitlersaiisitiedussininteataaantcadaasnie 550 AML Contem BICK seccions aai 550 FOr FUNCH OM ersinnen raid eiai SEA neoni SAAS Rai 550 Language Select FUNCTION csseeccesssseeeeesseeseeeeessseneneeeees 552 Login URN CUI case ccace tasccrcaesstscnecccsnateciaderiecedecstciateceetteseateeaaeeend 552 Login Function EXAMP Essia 553 DHTML MenUSinucrcnanneniminna n
330. eference Manual Version 6 0 for NET 2 0 Rev 8 52 Blog Server Controls __ Webform aspx vb Webform aspx _9 BlogCelendert _ Selectionchanged 25 Partial Class Webform Inherits System Web UI Page 5 Protected Sub BlogCalendari SelectionChanged ByVal sender As Object 6 ByVal e As System EventArgs Handles BlogCalendari SelectionChanged B BlogEntries1 DateToStart BlogCalendari SelectedDate End Sub End Class 9 Click the Build Menu gt Build Page 10 When you view page in a browser and click on a date in the calendar that has blog posts you see the posts for that day 02 14 2006 Writing a Masterpiece Music I m gonna write the melody That s gonna make history Yeah and when I paint my masterpiece I swear I ll show you first Posted by John Edit at 02 14 2006 10 37 55 AM Comments 0 N Op o X z vo we RS This is the story of my life And I write it everyday I know it isn t black and white And it s anything but gray Posted by Application Administrator at 02 14 2006 10 35 34 AM Comments 2 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 53 BlogRoll Server Control The BlogRoll server control displays the blog roll for a blog on a Web form Blog rolls are created in the Workarea for each blog This control reads that list and Blog Server Controls displays a clickable list of links For more information on the blog roll see
331. ehieenes 587 Defining a Schema Fragment ccccceeeeeeeesceeeeeeeeeeeneeeees 587 DS tiMmingsa Galculator ensaca 588 Defining VANOAMUOM ssia 589 Defining an Error MeSSage ii sccsccccccssasciecceeessacnedecessusnesceeessanece 590 DEMING CUSTONT VANGATOM siccscncsaciacosasssccontanaderaastennssaspszaceananssncss 590 Saving Invalid DOCUMENTS sas iniceavassavectesinteat istceinians etiaai 594 Custom Script that Handles Saving Invalid Files 594 Tho OMEMMOF EVO iteresccnececcrcactievecessecincdecevstcstedeceystdendecezesesinnss 595 Gel e 0 e ire olll als le Sansz A 595 Icons on the Select Field or Group SCreen ccccceeeeeeeeeeseeeees 595 Leam More about AP Ali sicteass txntadasistertdasasdsiitiiedasdinenieiesndaiaete 597 KPM OM SAMOS iczcecdessansaccest cintzcceeserastzecaueuniteceessiseseceeersstezs 597 APAM FUNGUO NS axsrsscctceacaasnesdstscsaa dears scseeaeatrancsacansiesasaaanaeiete 598 MPatmRElOnenc GS cicrsiescilecscucdetdiecreasasiioectetansdieemnataceaceccnececets 601 Programmatic Search AP sssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 602 Guidelines for Creating a Search cccssseeeeeeessseeeeeesseeeeees 602 Cascading Style Sheets ccccceceseeeeeeeeeeeeeeeeeeeeeeeeeeeees 604 EEIE EE Si EE A EE T AE E T T 604 DOGS TE rnn EE 608 EVO SE Soni amiini iai a a AiE 608 Header Siles aproicinpna aa a 609 EMV SNE ausan a a aa 610 Calendar SUVS sasaoeran raa aa 610 Blogroll SIES
332. ehind Response Cache SetNoStore Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 234 SiteMap Server Control SiteMap Server Control 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 is displayed as indented list when viewed on a Web page Home About Us Staff News Careers Services Therapies Conditions Wellness Articles Contact Information Blog The contents of the sitemap are defined on the Breadcrumb tab located in the Workarea folder properties See Also The Administrator Manual gt Managing Content Folders gt Breadcrumbs This subsection contains the following topics e Sitemap Server Control Properties on page 235 e Using the Sitemap Server Control on page 237 Sitemap Server Control Properties The Sitemap server control properties are described in this table Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 235 SiteMap Server Control Property Response Data Type Authenticated I
333. ekdayCell The week day cell The following example shows the week day cell in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri Sat E eien Game F Location VWA 8 15 2 28 hanchester Monarchs take on 2 the Portland Pirates 2004 2005 2006 e background eeffff e font family Arial e font weight normal e font size 8pt e text align center e border right aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 635 Style Class Description Attributes and Default Settings mup_weekdayEventCell Highlights the weekdays that have events The following example shows the weekday event cell in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri pedere 1 2 gt Il3le oy siz Location 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2g Manchester Monarchs take on 29 30 31 the Portland Pirates 2004 2005 2006 e background ffffee e font family Arial e font weight normal e font size 8pt e text align center e border right aaaaaa 1px solid e border bottom aaaaaa 1px solid e border left aaaaaa 1px solid e cursor pointer mup_weekendDOWHeader Weekend day of week header The following example shows the weekend day of
334. eld lt listchoice gt Defines the values in the Custom Validation dialog Data Type drop down list Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 591 Element or Attribute Description lt listchoice value simple data type Enter each data type that should appear in the Custom Validation dialog s Data Type drop down list Data Type Data Type Plain text Ya ninr so a Decimal number Floatina point number The simple data types are defined by W3C XML Schema definition language 1 0 See Also Defining a Schema Fragment on page 587 lt listchoice treelmg id Specifies the icon to display for this field in the Select Field or Group dialog See Icons on the Select Field or Group Screen on page 595 Unlike toolbar icons you cannot create your own lt listchoice localeRef id The text that describes this Data Type on the Custom Validation dialog This element can refer to a string in the localeNNNN xml file Or you can enter the string between the lt listchoice gt tags lt listchoice default true false Use this attribute to indicate the default choice in the Custom Validation dialog s Data Type drop down list Selections element for Example s field lt selections name examples gt The name must be examples Ektron CMS400 NET Developer Reference Manual Version 6 0 fo
335. elect box appears Insert Ektron CMS400 Language Select Language Select Control 4 Use the following table to assist you with inserting a Language Select box Field Description Control ID A unique name for the function you are inserting Hide Used to hide a function in design time and run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info Set position information of a control as absolute when using a GridLayout GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 345 Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 When completed click insert A graphic defines where the Language Select appears on your template o amp amp CE Language English U S Shown below is an example of
336. elow Line lt S Page Language vb AutoEventWireup fals lt Import Namespace Ektron Cms UI CommonUI gt Ektron CMS UI CommonuUI to display information Description A generic net line of code that should always be placed 5 gt in the template An import statement that calls the namespace from the net assembly file Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 405 Line Description lt Dim AppUI As New ApplicationAPI gt used by each method Creates an instance of the ApplicationUI class that is These lines call the Ektron net assembly object to allow the page to function properly They must appear at the top of each template file Standard Methods To customize your Ektron CMS400 NET application you need to be familiar with these methods Method Description More Information Add Content Programmatically adds a content block s to Ektron CMS400 NET Addcontent on page 407 Collection Displays links generated by collections Collection Server Control on page 82 Content Block Displays and manages a content block ContentBlock Server Control on page 91 Event Calendar Displays an event calendar Calendar Server Control on page 75 Form Displays a content block that is associated with a form FormBlock Server Control on page 117 IndexSearch Display
337. ems request ecm AppConfStr Attributes nId 0 request ecm cmsPreview request ecm user_id request ecm site_id ErrorString gt lt cfset tString lt table border 0 cellspacing 0 cellpadding 0 width 100 gt gt lt cfif cTeasers Count gt lt cfloop collection cTeasers Item cT gt lt cfset tString tString amp lt tr gt lt td gt gt lt cfset tString tString amp lt a href gt lt cfif len Attributes href gt lt cfif FindNoCase Attributes hrefs gt lt cfset tString tString amp Attributes href amp amp id amp cT Item ContentID gt lt cfelse gt lt cfset tStringi tString amp Attributes href amp id amp cT Item ContentID gt x eftif gt lt cfelse gt lt cfset tString tString amp cT Item ContentLinks gt lt etit gt lt cfset tString tString amp gt lt cfif len Attributes target gt lt cfset tString tString amp target _ amp Attributes target amp gt lt efit gt lt cfset tString tString amp gt gt lt cfset tString tString amp cT Item ContentTitle amp lt a gt amp amp nbsp amp DateFormat cT Item DateModified mm dd yyyy amp amp TimeFormat cT Item DateModified h mm ss tt amp lt td gt lt tr gt lt tr gt lt td gt amp cT Item ContentTeaser gt lt cfset tString tString amp lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt
338. ence Manual Version 6 0 for NET 2 0 Rev 8 186 Search Server Control Property Description Data For more Type information see EmptyResultMsg The return message displayed if the String search returns no hits The default is Search returned zero results EnableAdvancedLink Set to true to display the link that Boolean Using the Advanced makes the advanced properties Search Properties on available page 206 True Display Advanced link False Hide Advanced link EnableAjax Set to true to enable Ajax searches Boolean Ajax Search on When enabled the MaxResults page 197 property determines the maximum See Also number of results per page and the F ResultTagId property becomes ey ak page 193 and active j True Enable Ajax Search Be aj on False Original HTML Search i EnableArchived Enables users to search archived Boolean Using the Advanced content The archived content must be archived as Archived Remain On Site The default is False True Searching archived content is enabled False Searching archived content is disabled unless Include Archived is checked in the Advanced search For more information on archiving content see the User Manual section Scheduling Content to Begin and End gt Setting Archive Options Search Properties on page 206 See Also EnableArchivedBtn on page 188 Ektron CMS400 NET Developer Reference Manual Version 6 0 for
339. ent EnableContentBtn EnableDMSAssets EnableDMSAssetsBtn EnableForms EnableFormsBitn EnableLibFiles EnableLibFilesBtn EnableLibHyperlinks EnableLibHyperlinksBtn EnableLiblmages Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 206 Search Server Control e EnableLiblmagesBtn WARNING If you set all above properties to false the search returns no results This happens because there are no parameters to search against These properties can be used individually or in combination For example you could have a search that only searches Forms or a search that searches Forms and DMS Assets Each advanced property has an enable check box property These properties have Btn at the end of their name They create a check box that appears when the Advanced link on a search is clicked The check boxes only appear when the properties are set to true Using the Advanced link and check boxes to search is known as an Advanced Search See Also Advanced Search on page 209 The following example shows the Forms check box enabled on the site search and the EnableFormsBtn property set to True in Visual Studio Z WebForm5 Microsoft Internet Explorer Sela ap ouuu LAP cI Sg Ha gt vicyy p Searchi Ektron Cms Controls Search Se J mi ee eng 4 DisplayXstt ecmNavigail aj EmptyResultMsg Search retu EnableDMSAssets False EnableDMSAssetsBin False EnableForms False Enabl
340. enter any Alt text that should appear when a site visitor hovers the cursor over that image Here is an example LinkTarget Determines the type of window that appears on this Web form when a user clicks an item in the breadcrumb trail The default is _ self _Self opens in same window _Top opens in parent window _Blank opens in new window _Parent opens in the parent frame Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 295 Field Description Link Last Item 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 True last item is a hyperlink False last item is an image and or text only the user cannot click on it Create Hyperlinks Unchecking this box makes the breadcrumb trail appear as non hyperlinked plain text The default is Checked Checked breadcrumb trail is hyperlinked PR gt Webform gt search gt Meta C Unchecked breadcrumb trail is plain text PR gt Webform gt ean gt Meta Maxltems 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 To allows an unlimited number of
341. enuBorderBgColor Color of the main menu border 6699ff menuHiLiteBgColor Background color of highlighted menu item 000084 menuContainerBgColor Background color of the container 6699ff Note The container is like a lt div gt tag that displays the menu When you set the container color it appears at the top and left side of the menu frame only Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 497 DHTML Menus Attribute name Specifies the Default value childMenulcon Path to the submenu icon the image used to Workarea indicate that a submenu is available from this images menu item application arrows gif To display a different image either provide an external path to it or upload the image to Ektron CMS400 NET then provide a local path childMenulconHiLite The path to the icon that appears when you hover Workarea the mouse over a menu item that leads to a images submenu application To display a different image either provide an arrows2 gif external path to it or upload the image to Ektron CMS400 NET then provide a local path FontFamily NOTE Use the fontFamily attribute to specify the menu font It must be supported by the browser You can assign to this property several comma separated values To display a font family other than the browser default specify only the font name and no other comma separated values If you spe
342. enus You manipulate DhtmlMenus with a style sheet Dhtm Menus save space on the Web page by having the drop down menus and submenus float over content WARNING You cannot create a DHTML menu using the code behind you must drag and drop it Once the menu is on the template you can manipulate its properties using the code behind Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 152 Menu Server Control gt MenuExample CMS Developer Book ASP NET Unleashed Programming C NET VB NET How to News Menu Server Control Properties Menu Server Control DhtmiIMenu Server Control ASP NET Unleashed Pr ogramming C NET VB NET How to The Menu server control properties are described in this table Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for
343. equired if Active Directory has been enabled for your Web site Enter the domain corresponding to the username entered Server File Specify the location and file name for the dreamweaver aspx file needed for the extension to properly work and make connection with your Ektron CMS400 NET database Include Each Ektron CMS400 NET template requires an include file to point to the API with the definitions for the custom functions Here specify the include file Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 245 Ektron CMS400 ASP CF JSP PHP Dreamweaver Setup Table Field Description Username Valid username of a user of your Ektron CMS400 NET Web site When using the extension the username is used to log in to the database to retrieve information about content blocks and other Web site information Password Enter the password for the user Domain Only required if Active Directory has been enabled for your Web site Enter the domain corresponding to the username entered Server File Specify the location and file name for the dreamweaver aspx file needed for the extension to properly work and make connection with your Ektron CMS400 NET database Server Choose the language of the server e ASP for Active Server Pages e CFM for ColdFusion pages e JSP Java Server Pages e PHP Hypertext Preprocessor Note If you want to use a different language you need to run
344. er developing XSLs The following is an example of how to retrieve the XML structure 1 Open anew Web form 2 Drag and drop a Menu server control onto it 3 Set the DefaultMenulD properties 4 Drag and drop a Textbox on the Web form 5 Set the TextMode property to MultiLine NOTE It is also recommended that you set the width of the text box to at least 400px 6 On the code behind page add the following line Textboxl Text Menul XmlDoc InnerXml 7 Build the project Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 158 Menu Server Control 8 View the Web form in a browser 9 The XML structure of the menu appears in the textbox Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 159 DhtmIMenu Server Control DhtmIiMenu Server Control NOTE For optimal performance Ektron recommends using at minimum Internet Explorer 5 5 Netscape 6 0 or Mozilla Firefox 1 0 The DhtmlMenu server control lets you display a menu with drop down boxes and submenus This lets developers add a menu to a page without taking up a lot space You can modify the menu s style via a style sheet News Before using the DhtmlMenu server control you must add items to a menu in the Ektron CMS400 NET workarea To learn about creating menus see Working with Menus in the CMS400 NET User Manual The DhtmlMenu server control also lets developers add content to a men
345. er Controls Property Value Data Type BlogID The ID of the blog in CMS400 NET For example 41 If you don t know the ID of the blog use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Integer BlogPostParameter Works like the DynamicParameter for content blocks When id is selected this server control passes the blog post 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 Blank the list of blog posts is static The links in the blog posts are inactive id the id of the blog post is passed to the URL asa parameter and None use default the list of blog posts is static The links in the blog posts are inactive String Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer DateToStart The date of the last blog entries you want to appear For example if you want to display blog entries for January 1 2006 and before you enter 1 1 2006 Clicking the dropdown box provides you with a calendar
346. er than HttpResponse You can add code to serialize a different object such as an RSS 1 0 data class or to run an XSLT on the serialized XML document prior to returning it as the HTTP response Example Dim objRSSConverter As New ListSummaryToRSS20 Request Response Dim objRSS20 As rss RSS20 rss objRSSConverter ConvertToRSS objResult Title Description objRSS20 channel language en us objRSSConverter Serialize Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 582 Learning About Visual Studio This section introduces some background information about using Microsoft s Visual Studio For more information use the help feature installed with Visual Studio 2005 and Microsoft s developer Center http msdn microsoft com vstudio Grid Layout vs Flow Layout NOTE The following definitions are from Visual Studio Help Grid Layout Absolute positioning attributes are inserted into elements that are added and updated in elements that are moved Elements can be dragged across the Design view surface The positioning grid and Snap to Grid are available Flow Layout Elements are added without absolute positioning attributes Web browsers arrange elements in the order that they occur on the page from top to bottom You cannot drag elements across the Design view surface or use the positioning grid Grid layout is the default which means that all controls drawn to the Web form i
347. er to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Integer Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer ShowHeader Shows the title and tagline when set to True The default is True True show title and tagline False do not show header and tagline Boolean ShowRSS Displays the icon for the RSS feed BJ when set to True The default is True True show RSS feed icon False do not show RSS feed icon Boolean BlogEntries Server Control The BlogEntries server control allows you to display a list of multiple blog posts on a Web form By using this server control you can add a blog posts to a Web form without having to add items normally contained in a blog Using this server control in combination with the other individual blog server controls allows you the flexibility to change the appearance of this control without changing other blog controls In addition you can layout the controls any way you like unlike the Blog server control Below is an example of a BlogEntries server control Ektron CMS400 NET Developer Referen
348. erateMenu and DropMenu IMPORTANT The menu functions described below are only one example of how to implement menus You can implement your own menu system using JavaScript Use the GenerateNextGenMenu and DropNextGenMenu custom functions to display a DHTML menu on a Web page Place GenerateNextGenMenu once on the page to provide an infrastructure for DropNextGenMenu Then place DropNextGenMenu as needed to implement individual menus Follow these steps to display a menu on a Web template 1 Place the following code directly after the page s lt body gt tag lt php ecmDHTML_GenerateNextGenMenu menu id number gt For example lt php ecmDHTML_GenerateNextGenMenu 1 gt To display more than one menu separate each id number with a comma For example lt php ecmDHTML_GenerateNextGenMenu 1 2 3 gt 2 Ifthe user clicks text to display the menu place the following code within the template file where the text would appear lt php ecmDHTML_DropNextGenMenu menu ID number text user clicks to display menu gt For example lt php ecmDHTML_DropNextGenMenu 1 MyMenul gt If the user clicks a graphic to invoke the menu use this syntax lt php ecmDHTML_DropNextGenMenu menu ID number lt img src graphic file name gt gt For example lt php ecmDHTML_DropNextGenMenu 1 lt img src mymenugraphic jpg gt gt Customizing the Menu s Appearance You can customize a menu s appear
349. erence Manual Version 6 0 for NET 2 0 Rev 8 280 Shown below is an example of the code that is inserted Platform Code View NET lt cms BlogEntries id BlogEntries1l BlogID 41 runat server gt lt cms BlogEntries gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog Post For a description of the Blog Post function see BlogPost Server Control on page 48 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog Post function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Post Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 281 3 The Insert Ektron CMS400 NET Blog Post box appears Ektron CMS400 BlogPost Control ID DefaultContent ID BlogPosti Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parameter Display Type Hide Visible o
350. ername Register Reset AccountActivate Let a site visitor activate his membership account by entering the ID number sent him in the account verification email Username Account ID Register Reset Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 151 Menu Server Control Menu Server Control 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 Xstlt e Products o RC Cars a RC Cheetah a RC Sportster o RC Planes a RC Lilly a RC Redstar o Products Page o Visit Ektron com Before you can use the Menu server control you must create a menu in the Ektron CMS400 NET work area To learn about creating menus see Working with Menus in the Ektron CMS400 NET User Manual This subsection contains the following topics e Menu Server Control vs DhtmlMenu Server Control on page 152 e Menu Server Control Properties on page 153 e Using DisplayXslt Samples on page 154 e Retrieving the XML Structure of a Menu on page 158 Menu Server Control vs DhtmiMenu Server Control The Menu server control calls a menu to be displayed on a page You can manipulate the menu by using the DisplayXslt property With the DhtmIMenu server control you display a dynamic menu with drop down boxes and subm
351. erriding a globally assigned BASE target _parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting KeyWordName The KeyWordName is the container where the KeyWordValues are located Some examples of a KeyWordName might be Keywords or Title For information on creating KeyWordNames for Metadata see the Ektron CMS400 NET Administrators Manual gt Managing Content gt Metadata gt Managing Metadata Definitions gt Adding a Metadata Definitions KeyWordValue The value that is associated with the KeyWordName Some examples of a KeyWordValue might be Home page or company Display Type Determines how the information on the page is displayed None databind only ecmNavigation lists the title of every content block in the folder See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 85 Dynamic Content Checks the QueryString for the content block ID value and replaces the Display By Parameter Meta Value Control with
352. es an RSS feed out of the items in a collection RSS Collection Function on page 533 Content Functions Add Content Allows a user to add content to Ektron CMS400 NET progammatically Add Content on page 525 Content Block Displays and manages a content block Content Block Function on page 524 Form Displays a content block associated with a form Form Function on page 536 Multipurpose Displays either a content block or a form MultiPurpose Function on page 537 List Summary Functions Archive ListSummary Displays summaries of archived content blocks Archive List Summary Function on page 528 List Summary Displays a list of content block summaries List Summary Function on page 527 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 522 Function Description More Information List Summary XML Creates XML for a list summary by wrapping tags around all of the collection items and their properties This allows you to use an XSLT to define how the XML collection is displayed XML List Summary Function on page 529 RSS List Summary Creates an RSS feed out of the items in a list summary RSS List Summary Function on page 529 Single Summary Displays the summary for a content block Single Summary Function on page 528 Login Functions Login Adds the login or l
353. es an area to display search results Search Display Function on page 438 Site Language Functions ShowSiteLanguage Lets a site visitor select a language in which to view site Show Site Language Function on page 494 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 413 Login Function Login Function The login function adds a login button on the template when displayed in a browser Here it the format of the login function lt ecmLogin gt This tag is responsible for displaying the following buttons on the Web page Button Name Description Login When user is not logged into Ektron CMS400 NET this button appears Click this button to let the user log in to the application Login Logout Once logged in this button replaces the login button to allow the Z user to log out from the Ektron CMS400 NET Web site Logout Workarea When logged in this button appears under the logout button allowing the user to access their workarea Workarea Preview On Lets the user to preview the entire Web site as if all checked in content was published y Preview Preview Off Turns off preview mode XPreview Login Tag Example The following example places a login button in a table cell inside an asp template lt tr gt lt td gt lt ecmLogin gt lt td gt lt tr gt Ektron CMS400 NET Develope
354. es an external XSLT file If the DisplayXslt property is not defined the OverrideXslt property specifies an XSLT identified in the Edit Smart Form Configuration screen The following table provides more information about these properties Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 96 ContentBlock Server Control To use this display XSLT Enter this value for XSLT Enter this value for Override XSLT The default XSLT specified in the Edit Smart Form Configuration screen illustrated below Note that 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 Edit Smart Form Configuration Ektron Medical Book Sto Title new configuration ID 10 Description xstt2 Display Information Files prefixed with CMS400Demo xr Default O XSLT 1 xsit samplexsit1 xls O XSLT 2 xslt samplexslt2 xls Default XSLT 1 from the Edit Smart Form Configuration screen XSLT 2 from the Edit Smart Form Configuration screen XSLT 3 from the Edit Smart Form Configuration screen Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 97 ContentBlock Server Control To use this display XSLT Enter this Enter this value for value for XSLT Override
355. es of the BlogCategories control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 BlogID The ID of the blog in CMS400 NET For example 41 String If you don t know the ID of the blog use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 55 Blog Server Controls Property Value Data Type Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide language select dropdown box and label in Boolean design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Language Set a languag
356. es to a block of code Custom Allows you to use a custom tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 94 ContentBlock Server Control The following example shows how the ContentBlock server control can be used to pass the id as a URL parameter a Authenticated False DefaultContentID 2 DisplayXslt DynamicParameter id Hide False Language 1033 OverrideXsit Default 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 XML Content Block Use an XML content block to display an XML content block on an Ektron CMS400 NET Web page Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DefaultContentID The ID of a content block that appears where you Integer 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 Using CMS
357. ested ID NewsInfo InnerHtml wsCms400WebService ContentBlock iId As you can see we are assigning to the variable NewsInfo InnerHtml the Web service wsCms400WebService followed by the ContentBlock method For a list of methods see gt CMS400 NET Methods on page 564 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 573 If the user selects a content block on the List Summary page that is clicks the blue text of the content title that action passes an id value The blue text is circled in the illustration below RC International Ships RC Sportster 8 27 2002 2 46 12 PM RC International an emerging leader in the RC racing industry has begun shipments of its Sportster The RC Sportster is designed to compete with the entry and mid level RC racer A new page appears using the ContentBlock method to display the selected block If iId gt 0 Then strHTML wsCms400WebService ContentBlock ilId The ContentBlock method retrieves the content block as an HTML string so the result looks like this Click here for a complete list of operations GetContentBlock Test To test the operation using the HTTP GET protocol click the Invoke button Parameter Value Contentld Invoke SOAP The following is a sample SOAP request and response The placeholders shown need to be replaced with actual values POST CMS400Example Workarea Vebservices ContentUS asmx HTTP 1 1 Ho
358. etaData2 runat server DefaultContentID 12 gt lt cms MetaData gt 7 lt HEAD gt Move that line from the lt body gt tag into the lt head gt tag lt title gt WebFormS5 lt title gt lt lt cms MetaData id Metadata2 runat server DefaultContentID 12 gt lt cms MetaData lt meta name GENERATOR content Microsoft Visual Studio NET 7 1 gt lt meta name CODE LANGUAGE content Visual Basic NET 7 1 gt lt meta name vs_ defaultClientScript content JavaScript gt lt meta name vs targetSchema content http schemas microsoft com intellisense i lt form id Formi method post runat server gt lt HEAD gt lt body gt lt form gt lt body gt 8 9 10 Save the Web form Open the Web page in the browser Right click on the Web page and click View Source Look in the head tag The meta tags from the content block are added to the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 361 The metadata information added is shown below WebForm5 1 Notepad lt DOCTYPE HTML PUBLIC W3C DTD HTML 4 0 Transitional EN gt lt HTML gt lt HEAD gt lt title gt webForm5 lt title gt lt title gt cmMs Developer lt title gt lt meta name keywords content CMS400 NET CMS gt lt meta name description content CM5400 developer section gt lt meta content Microsoft visual Studio NET 7 1 name GENERATOR gt lt meta
359. etivweenicianusiiebeieensaees 561 Syndicating Web Content as RSS csecceeeeeeeeeeeeeeeee 580 Syndicating via NET vsescsssistinssicssscecssentsesexiseneneniacaciseracncicanes 581 Learning About Visual Studio sssssssssssnnunnnnnnnnnnnnnnnnnnnn 583 Customizing ValidatiON cccccceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 584 Programmatic Search API ssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 602 Cascading Style Sheets ccccccceceeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 604 Additional Information cceceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 647 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 vii Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 viii Detailed Table of Contents Securing Ektron CMS400 NET ccccccsssessssseeeeeeeeseeeenseneees i Security CHECK GSE wcssscsccicccccesccscsscacseccasensesenensenceseavaesnicennsenccicenase i Additional NOMA ON siissirsiisissiissiisyiisi ii Edino Bwiltittzxsicccetestasiccceenieiaiceetiaceiaieeteesdad sicttaesiad ateetenscesaneaesteceaganees ii What s New in the 6 0 Release ceeeeeeeeeeseeeseseeees iii About This Manual ccccsssssseeeeesssseeesseenseeeeeseeeneeenes 1 List of Developer Resources sesseseseeeeeeeeees 2 Ekron s DevGente isiin aniisi 2 User Discussiom Board Soruna a a A 2 Ekron BIOGS aoira EREA 2 Ekton Fles haiG meee erererre cee reese c
360. etrieve list of content Select the defalt content block to use for the page Dynamic Content Parameter None v Hide C visible M Positioning info GridLayout Style leave blank if none Wrap tag Span v 4 Use the following table to assist you with inserting the Analytics function Field Description Control ID A unique name for the function you are inserting Content ID Specify the ID number of a content item being tracked by this function If you do not know the Content ID you can navigate to it using the Select Category and Select Content drop down boxes Dynamic Content Parameter To make this content analytic control dynamic select id When you do this server control is attached to the content block passed as a URL parameter Hide Used to hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 267 Field Description Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT
361. ew Roman e font size 9pt e font weight bold Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 617 Style Class Description Attributes and Default Settings dv_EventtTitle An event listed on the daily calendar The following example shows the event with a red background background aaddaa font family Arial Arial Narrow Times New Roman font size 9pt font weight bold cursor pointer dv_BorderCell The borders of the hour cells The following example shows the borders in red background 0033AA Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 618 Style Class Description Attributes and Default Settings dv_DayHeaderNext The button for moving the calendar to the next day The following example shows the day header next in red e background 99DDFF e color 0033AA e font family Arial e font size 9pt e font weight bold e text align right dv_DayHeaderPrev The button for moving the calendar to the previous day The following example shows the day header previous in red e background 99DDFF e color 0033AA e font family Arial e font size 9pt e font weight bold e text align right Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 619 Style Class Description Att
362. ew ID and exclusion list Shown below is the sample code for this lt include virtual CMS400 NETsample CMS400 NETscripts ektronAPI asp gt lt DOCTYPE HTML PUBLIC W3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Dim id if request QueryString id lt gt then id request QueryString id else id 1 end if ecmMetadata amp id amp amp gt lt head gt lt body gt lt ecmContentBlock request QueryString id gt lt body gt lt html gt In this example if you specify a content block in the URL and the page is displayed the metadata takes that ID and displays the proper metadata in the source for the content block ecmMetadata Attributes Below are the attributes and their descriptions Item List In this attribute of the ecmMetadata tag you need to specify two values Value Specifies ID The content block ID whose metadata will appear Exclusion The metadata to be excluded See Also Creating an List Item List on page 488 Some examples might be Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 491 Metadata Function lt ecmMetaData 1 2 gt i metadata 1 Notepad o x File Edit Format Help lt DOCTYPE HTML PUBLIC _ AW3C DTD HTML 4 0 Transitional En gt lt html gt lt head gt lt Title gt cMs200 Sample web site cms200 Login Information lt Tit le gt lt
363. ew configuration ID 10 Description xslt Display Information Files prefixed with CMS400Demo gt Default O XSLT 1 xslt samplexsit1 xls XSLT 2 xslt samplexslt2 xls r XSLT Packaged from the Edit Smart Form screen that is the 0 XSLT created in the Data Designer Note If an XSLT package has not been created and zero 0 is the third argument the default XSLT specified in the Edit Smart Form screen is used XSLT 1 from the Edit Smart Form screen a 1 XSLT 2 from the Edit Smart Form screen me 2 XSLT 3 from the Edit Smart Form screen ij 3 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 422 Content Block Function To use this display XSLT Enter this for Enter this for argument 2 argument 3 An absolute or relative path to an XSLT An external does not matter XSLT file not if a value exists specified in the in argument 2 Edit Smart Form argument 3 is screen ignored For example lt ecmContentBl ockEx 13 samplexslt xsl gt See Also The Managing XML chapter of the Ektron CMS400 NET Administrator manual Dynamic and Static Combination Here is an example of how you can use the two different content tags in the same table cell by using an IF statement Eee lt td gt lt if request QueryString id lt gt then ecmContentBlock request QueryString
364. ext The text that appears on the String The default is button Search ContentParameter Checks the QueryString for String None Use Default the content block ID value and ID The server control uses the replaces the search with content block passed as a URL content when ID is specified parameter Leave blank to always display the search Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 219 IndexSearch Server Control Property Description Data Values Type DisplayXslt Determines how the String None databind only information on the page is ecmNavigation lists the title displayed of every content block in the folder See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 85 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page EmptyResultMsg The message that displays if String The default value is the search returns no hits Your search did not match any documents EncodeContentHtml When set to True Content Boolean True Content HTML is HTML is encoded when it is encoded returned False Content HTML is not encoded Folderld The numeric id of the folder Integer Any folder s numeric ID that you want to search See 0 zero represents the root Also Using CMS Explorer to folder Browse Your
365. f an arbitrarily deep frame nesting MaxResults Maximum number of summaries Integer any integer displayed on a Web page 0 unlimited OrderKey Sort the list by one of the must be one Title values of the values DateModitied DateCreated LastEditorFname LastEditorLname See Also OrderKey Property on page 140 Random Set to True if you want to Boolean True randomly display one content False block in the specified folder The content changes each time a user views the page Recursive Determines if the display Boolean True includes content blocks in child False folders of the selected folder Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 139 ListSummary Server Control Property Description Data Type Values SuppressWrapper Suppresses the output of the Boolean True Tags span div tags around the False control The default is False True Suppress wrap tags False Allow wrap tags WrapTag Allows a developer to specify a String Span The lt span gt tag is used to server control s tag The default is Span designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag OrderKey Property The OrderKey property determines what information appears to the right of the hyperlinked title The values are described below
366. f archived content blocks Archive List Summary Function on page 455 List Summary Displays a list of content block summaries List Summary Function on page 442 List Summary XML Creates XML for a list summary by wrapping tags around all of the collection items and their properties This allows you to use an XSLT to define how the XML collection is displayed XML List Summary Function on page 450 RSS List Summary Creates an RSS feed out of the items in a list summary RSS Summary Function on page 460 Single Summary Displays the summary for a content block Single Summary Function on page 456 Login Functions Login Adds the login or logout button Login Function on page 414 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 412 Function Description More Information Menu Functions DropHTMLMenu Used to display a DHTML menu DHTML Menus on page 495 GenerateMenu Works with DropHTML menu to display DHTML menus DHTML Menus on page 495 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu on the menu items properties page 499 Metadata Functions Metadata Displays the metadata for the current Web page Metadata Function on page 488 Search Functions Search Inserts a text box with a search button Search Functions on page 428 Search Display Creat
367. f seconds Cachelnterval Positioning info GridLayout Style None bi Wrap tag 4 Use the following table to assist you with inserting the Blog Post function Field Description Control ID A unique name for the function you are inserting DefaultContent ID The ID of a blog post in CMS400 NET If you do not know the Blog Post s ID you can navigate to it using the Select Category and Select Content drop down boxes DynamicParameter To make this blog post dynamic select id When you do this server control uses the blog post passed as a URL parameter Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 282 Field Description Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36
368. ference in Atlanta Georgia Style Info In this field you may enter inline style information for the generated text hyperlinks displayed on the screen Style Info Web Page View ene RC International Announces the RC Cheetah 8 27 2002 2 43 01 RC International a leading RC racing company has announced tk availability of its new flagship product the RC Cheetah RC International Hosts RC Conference 8 27 2002 2 44 44 PM RC International the fastest growing company in the RC industry announces plans to host the 3rd annual RC conference Atlanta Georgia Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 446 List Summary Function Style Info Web Page View font family arial font weight bold background color cccccc border solid blue 1pt margin 2px width 100 IRC International Announces the RC Cheetah RC International a leading RC racing company has announced tl availability of its new flagship product the RC Cheetah IRC International Hosts RC Conference RC International the fastest growing company in the RC industry announces plans to host the 3rd annual RC conference Atlanta Georgia Order By This attribute will sort the summary results by different options There are five different ways to sort the summaries Value Summaries sorted by Title title DateModified date modified Date Created date created Start
369. five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer DefaultMenulD 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Integer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 153 Menu Server Control Property Value Data Type DisplayXslt The Xslt to use to render the menu String None databind only SampleMenu A sample display formatted as a bulleted menu list TreeMenu A sample display formatted as a folder tree You can expand the tree by clicking on the folder icon Path to Custom Xslt Enter the path to an Xslt that determines the display of the page For more information on using the SampleMenu and TreeMenu DisplayXslt see Using DisplayXslt Samples on page 154 DynamicParameter Select menu_id When you do this server control uses String the menu passed as a URL parameter Hide Used to hide a menu in design time and run time Boolean True Hide menu False Show menu Language Set a language for viewing menus The language Integer property shows results in design time in Visual Studio and at run time in a browser Wrap
370. for NET 2 0 Rev 8 75 Calendar Server Control Login Calendar display Status Logged Out vember December 2004 January sun Mon Tue O wed S th eri scat 1 2 3 4 6 7 8 g 10 11 13 14 15 16 17 19 20 21 22 23 24 25 27 2g 29 30 31 A calendar can be static or dynamic e A static calendar is selected in the server control properties e Adynamic calendar is passed to the page by a URL parameter This subsection contains the following topics e Calendar Server Control Properties on page 76 e Calendar Style Sheet on page 80 Calendar Server Control Properties NOTE The Calendar server control properties are described in this table There are additional settings to help define the calendar in the Ektron CMS400 NET Workarea These include display weekends forward only show all label etc For information on these properties see Ektron CMS400 NET Administrator s Manual gt Calendars gt Managing Calendar Modules gt Viewing Calendar Modules Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 76 Calendar Server Control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can
371. for each collection item 0 does not return it ListSummary ecmListSummary List Summary information as an HTML string GetListSummary ecmListSummary An XML data structure parameters representing information ShowSummary about the List Summary Stylelnfo Showlnfo not available SingleSummary ecmSingleSummary Single Summary information as an HTML string GetSingleSummary ecmSingleSummary An XML data structure parameters Stylelnfo representing the Single ShowSummary Summary information Showlnfo not available MetaData ecmMetaData Meta Data information as does not have the an HTML string unused spare parameter GetMetaData ecmMetaData An XML data structure does not have the representing Meta Data unused spare information parameter SearchDisplay ecmSearchDisplay Search Display See Also The Search information as an HTML Display Method string Parameters on page 570 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 565 GetSearchDisplay ecmSearchDisplay An XML data structure Stylelnfo and See Also The Search representing the Search ShowDate Display Method Display information parameters not Parameters on available page 570 GenerateHTMLMenu ecmGenerateMenu Menu details as an html Parameters as menu string ids Comma separated value DropHTMLMenu ecmDropMenu Required menu as an html Parameters string e Root menu id t
372. g Span 4 Use the following table to assist you with inserting the Blog function Field Description Control ID A unique name for the function you are inserting Board ID The ID of the Discussion Board in CMS400 NET If you do not know the Board ID you can choose it from the Select Folder drop down box Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 326 Field Description of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control
373. g block Example Using the ecmTeaser Display Function The following is an example of a collection function being used as a navigation menu in the Ektron CMS400 NET sample Web site lt CFMODULE id 2 displayFunction ecmTeaser template request ecm AppPath ecmCollection cfm gt In this example the collection with an ID 2 is displayed and the function ecmTeaser defines how to display the collection data on a Web page Here is how the collection would appear on a Web page RG international Home Products Support Nevs Careers Search Employment Opportunities Plastic Molder 123 8 27 2002 2 38 34 PM RC International is looking for an experienced plastics molder Servo Control Engineer 124 8 27 2002 2 40 26 PM As stated earlier the format of the collection on the Web page depende on the displayFunction that is used Below is the source code for the display function ecmTeaser lt cfparam name Attributes nID default gt lt cfparam name Attributes href default gt lt cfparam name Attributes ShowSummary default gt lt cfparam name Attributes StyleInfo default gt lt cfparam name Attributes target default gt lt cfset ErrorString gt lt cfobject class CMS400 NETContentBrv2 CMS400 NETContent Action Create name tObj gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 511 lt cfset cTeasers t0Obj GetEcmCollectionIt
374. g affordable In 1998 William Acme founded Acme Services based on the philosophy that services should be simple and affordable Today Acme is based on the same principle Acme released fern fient mendia a namnaman taal that allows user Edit easily Because and use sales c Preview ith offices in A nano nomi View Content Difference tool has become View History partnerships have been made with every m Add Task As a result Mr Acme and his team have ha Properties with and listen to thousands of service prov Workarea were using Acme s tool as well as what cha most valued in a services solution Based oi Logout developed its first services managment platrorm solution puit arouna Acme s Content Block Examples Ektron CMS400 NET has two types of content blocks Type Displays More information Static One content block on the Web page Static Content Block on page 419 Dynamic A content block whose ID is passed Dynamic Content through the URL Block on page 419 In addition a content block can contain XHTML or XML content For more information see XML Content Block on page 421 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 418 Content Block Function Static Content Block The following illustrates how to insert a static content block on a template lt tr gt lt td gt lt ecmContentBlock 329 gt lt td gt lt tr gt
375. g content is disabled unless Content is checked in the Advanced search See Also Using the Advanced Search Properties on page 206 EnableContentBtn Used in ASP NET only Provides a check box so users can decide if they want to perform a content search The default is Unchecked Checked The Content check box is enabled in the advanced search properties If used with EnableContent the check box is checked by default C Unchecked The Content check box is disabled in the advanced search properties EnableContentFieldset Used in ASP NET only Creates a border around the group of content items in an advanced search These content items include Content Forms and DMS Assets The default is False Checked Show border around content items C Unchecked No border around content items See Also Fieldset Properties on page 212 EnableDMSAssets Used in ASP NET only Enables users to search DMS Assets The default is Unchecked Checked Searching DMS Assets is enabled C Unchecked Searching DMS Assets is disabled unless DMS Assets is checked in the Advanced search See Also Using the Advanced Search Properties on page 206 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 380 Field Description EnableDMSAssetsBtn Used in ASP NET only Provides a check box so users can decide if they want to perform a D
376. g with Collections gt Comparison of Collections Menus and the List Summary Features Collection Examples The following are examples of the collection function in the Ektron CMS400 NET sample Web site One example uses the ecmNavigation display function and the other uses the ecmTeaser display function The ecmNavigation and ecmTeaser display functions are sample display functions included with Ektron CMS400 NET The ecmNavigation Display Function The following sample collection function is being used as a navigation menu in the Ektron CMS400 NET sample Web site lt ecmCollection 1 ecmNavigation gt In this example the collection with an ID 1 is displayed and the ecmNavigation function defines the appearance of the collection data on a Web page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 465 Collection Function Here is how a collection might appear on a Web page RC international Home Products Support Neves Careers Search gt Oas Products Page Products RC Cheetah elcome to RC International product page Whether you are a RC Lily just a beginner you will find fun and adventure in RC Internatio RC Redstar RC Sportster RC Cars ARC Sportster RC Internationals first entry RC Cheetah I in to the competitive RC racing world was successful entr tha OF Canartatar Tha NM Cnarbatar ia o em ie wua elo in i Below is
377. g with Non Ektron CMS400 NET Content on page 124 Working with Ektron CMS400 NET Content When you work with Ektron CMS400 NET site visitors need to be logged in When logged in a site visitor can edit existing content or create new content To edit existing content the content s numeric ID must be passed to the Contentld property If you enter an ID in the ContentID property the HTMLEditor assumes you are working with CMS400 NET To create new content leave Contentld blank When content is loaded into the editor but the site visitor is not logged in the editor displays the following message Content Title 2X BB 2RRMABZ Oa Fm Mae a Apply Style Heading 2 i BIUAA g 35 5 tt npeomei BAS Bele Please log into the CMS400 before editing site content Notice the CMS toolbar s Publish Check in Save and Cancel buttons are grayed out Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 123 HTMLEditor Server Control Once a site visitor logs in the content loads and the CMS toolbar is active Content Title Sample Content Block Eh Apply Style Normal Ektron CMS400 NET Server Controls Developer productivity is a critical issue among Web teams Faced with the challenge of reduced IT budgets smaller teams and compressed schedules to roll out new Internet and intranet sites and rich Web applications developers need every advantage tilted in the
378. ge the look and feel of a menu by changing the ek_menu js file If you used the default settings when installing Ektron CMS400 NET this file is in webroot cms400demo Workarea java Fora description of the ek_menu js file see ek_Menu js on page 496 XML Menu Function The ecmGetMenuXML function wraps XML around the properties of a menu created in the Ektron CMS400 NET Workarea Once created you can use the XML to display the menu The ecmGetMenuXML function allows you to easily define how the menu data appears on the Web page lt CFMODULE id template request ecm AppPath ecmGetMenuXML cfm gt This function is basically the same as the XML Menu function in ASP See XML Menu on page 499 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The Coldfusion example is below lt CFMODULE id 1 template request ecm AppPath ecmGetMenuXML cfm gt Language Select Function This function lets a visitor to your Web site select a language in which to view the site Here is what the function looks like when published on a Web page Site Language English US z English US French Standard Shown here is the format of the ecmLanguageSelect function lt CFMODULE template request ecm AppPath ecmLanguageSelect cfm gt This function is basically the same as the Show Site Language function in ASP See Show Site Language Function on p
379. ger MenuHoverOverColor Sets the background color for the root menu when hovering over it String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 163 DhtmIMenu Server Control Property Value Data Type MenuStyle A specified inline style that defines the root menu String For example if you enter the following in the MenuStyle property box font bold 18px Arial color royalblue background color slateblue Stylesheet Specify the location and style sheet for the submenu String For example Workarea csslib mytest css Leave blank to use the default pop_style css is the default style sheet It is located in webroot cms400demo Workarea csslib For more information on style sheets see Using a Style Sheet on page 165 The Stylesheet property can be used in conjunction with the CssClass property to define the root menu See Also CssClass on page 162 SubMenuBackColor Sets the background color for the submenu String SubMenuHoverOverColor Sets the background color for the submenu when String hovering over it SubMenultemHeight Sets the height of each submenu item in pixels The Integer Default is 20 Example set to 20 CMS Developer Example set to 30 CMS Developer SubMenultemWidth Sets the width of each submenu item in pixels The Integer Default is 150 Example set to 150 CMS Developer Example set to 130 C
380. gin This changes the Login button so only membership users can log in This prevents someone from trying to login as an Ektron CMS400 NET user and gain access to the Ektron CMS400 NET Workarea The default is False True Allow only membership users to login False Allow Ektron CMS400 NET users and membership users to login Boolean Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 144 Login Server Control Property Value Data Type PromptLogout When set to False the logout process will not include Boolean the Logout Prompt window shown below Select Logout to logout of the system True Users must click the Logout button in the Logout prompt window before they are logged out False Users are logged out without having to use the Logout prompt window SuppressHelpButton Hides the Help button that appears below the Login Boolean button when set to true The default is False True Do not display the Help button False Display Help button WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NE
381. gt lt table border 0 cellspacing 0 cellpadding 0 width 100 gt lt xsl for each select Collection Content gt lt tr gt lt td gt lt a gt lt xsl attribute name href gt lt xsl value of select QuickLink gt lt xsl attribute gt lt xsl value of select Title gt lt a gt lt td gt lt tr gt lt xsl for each gt lt table gt lt xsl template gt lt xsl stylesheet gt Example of ecmTeaser Display The following is an example of a collection using the ecmTeaser display style Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 85 Collection Server Control Home Products Support Latest News Careers Search Calendar Employment Opportunities Plastic Molder 123 RC International is looking for an experienced plastics molder Servo Control Engineer 124 RC International is looked for a highly skilled servo control engineer to join our team ecmTeaser XSL code Below is the XSL code that is used to create ecmTeaser Display You can use this code as the basis to design your own XSLT lt xml version 1 0 encoding ISO 8859 1 gt lt xsl stylesheet version 1 0 xmlns xsl http www w3 org 1999 XSL Transform gt lt xsl template match gt lt table border 0 cellspacing 0 cellpadding 0 width 100 gt lt xsl for each select Collection Content gt lt tr gt lt td gt lt a gt lt xsl attribute name href gt lt xsl value of select QuickLink gt
382. gt lt ecmSearch true search display jsp 25 200 Search Verdana 808080 2 false gt lt TD gt lt TR gt Search Display Function The search display custom function creates the area where all the search results are shown after the search has been executed Here is the format of the ecmSearchDisplay function lt ecmSearchDisplay int maxNumber Siring stylelnfo boolean ShowDate boolean showSummary gt This function is basically the same as the Search Display function in ASP See Search Display Function on page 438 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below Search Display Function Example lt tr gt lt td gt lt ecmSearchDisplay 0 true true gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 558 List Summary Function The list summary function is used to display a list of content summaries on a Web page Here is the format of the list summary function lt ecmListSummary String folder boolean recursive boolean showSummary String stylelnfo String OrderBy String showInfo int maxNumber String objType Siring optionList String summaryType gt This function is basically the same as the List Summary function in ASP See List Summary Function on page 442 for details The only difference betwee
383. gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click insert A Content List icon appears and indicates the Content List s location on the template L code spit La peson Li Tte United Pave oe It E 10 lt body gt g lt form id form1 runat server gt lt cms ContentList ID ContentList1 DynamicParameter id DefaultContentID 30 OrderKey DateCreated DisplayXslt ecmTeaser runat server gt lt cms ContentList gt BL FPP cr PP re PP r re A ce PP re Pe EA AE ir CMS400 ContentList Shown below is an example of the code that is inserted Platform Code View NET lt cms ContentList ID ContentList1 DynamicParameter iq DefaultContentID 30 OrderKey DateCreated DisplayXslt ecmTeaser runat server gt lt cms ContentList gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 314 Content Rating For a description of the Content Rating funct
384. h If you want the breadcrumb trail to display an image to String identify this Web form enter the path to the image Important The image location must be relative to the Web root For example cms 400demo Workarea Images bc_meta_icon gif On the breadcrumb trail the image precedes any text defined in the DisplayTitle property Language Set a language for viewing content The language property Integer shows results in design time in Visual Studio and at run time in a browser LinkLastltem Use this property to determine whether the last breadcrumb Boolean 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 True last item is a hyperlink False last item is an image and or text only the user cannot click on it LinkTarget Determines the type of window that appears on this Web String form when a user clicks an item in the breadcrumb trail The default is _ self _Self opens in same window _Top opens in parent window _Blank opens in new window _Parent opens in the parent frame Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 64 BreadCrumb Server Control Property Response Data Type Maxltems Enter the maximum number of items in the breadcrumb trail Integer on this Web form The default is 5 If you set a value of 1 or greater and the user navigates beyo
385. h your search For example if you have weighted results and you choose Ascending the results that match the most criteria appear first Max Number of results The Maximum number of content blocks returned O unlimited Display Type Determines how the information on the page is displayed None databind only ecmNavigation lists the title of every content block in the folder See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 85 Dynamic Content Checks the QueryString for the content block ID value and replaces the search Parameter with content when ID is specified Leave blank to always display the search By making content dynamic when the content displayed on a Web page contains a link to another piece of content you can display the second piece of content in the same Web page space None Use Default ID The control uses the content block passed as a URL parameter EncodeContentHtml When checked Content HTML is encoded when it is returned Checked Content HTML is encoded C Unchecked Content HTML is not encoded Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 400 Field Description Hide Used to hide a form in design time and run time Checked Hide form C Unchecked Show form Note If Hide and V
386. hat is the gen erateHTML Menu value e Menuld required menuid e title required title GetFormBlock ecmFormBlock Form information as an Parameters HTML string e formid e formdata gener ated through webservicesUI e formtag required flag set to true to embed lt form gt tag otherwise set to false GetEventsByCalendar ecmEvtCalendar Calendar information as e Calendar id an HTML string e event id e month e year e url e querystring Show ecmShowRandomSum Randomly displays the e collection ID RandomSummary mary summary content of a collection item Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 566 ShowRandomContent ecmShowRandomCon Randomly displays the collection ID tent content of a content block in a specified collection xsltID AddContent ecmAddContent Lets you programmatically Username add a new content block to Ektron CMS400 without password logging in Domaih content _title content_comment ContentHTML SummaryHTML ContentLan guage FolderID GoLive EndDate Metalnfo ErrString The CMS400 NET Content Sample Page The CMS400 NET content sample page webroot cms400demo Workarea webservices ContentWS asmx lists the methods described in the table above You can access it by signing on to the developer sample site http localhost cms400demo developer default aspx and clicking Web Services from the bottom of the left frame illustrated be
387. he ecmEvtCalendar function parameters are defined below Attribute Description id The id argument represents the ID number of the event calendar in the Workarea View Calendar Calendar Example In English U S Ad Title Calendar Example J Description Location Location Start Time Start End Time End Table Properties Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 514 Attribute Description DisplayType Specify the Calendar display type e Month A 30 day calendar month view Monday Tuesday Wednesday Th e Day Single day view e Inline Display events that occur from the start date of the calendar through the end date Thursday Dec Saturday Dex 12 15 2005 Monthly Audit Riisiness Offire e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt December Jan Eg OJ Hov 2005 gt Christm Mon Tue Wed Thu Fri Location 112 Start 7 3 End 11 0 sis 1 1 8 E Here is a sample of the Event Calendar syntax Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 515 Event Calendar Sample lt tr gt lt td gt lt CFModule template request ecm AppPath ecmEvtCalendar cfm calendar_id 24 DisplayType monthupwithevent gt lt td gt lt tr gt Form Function The ecmForm
388. he Recursive property determines whether content blocks in this folder s child folders also appear GetHtml Set to True if you want to Boolean True Get and display HTML for retrieve and display content each content block in the list html body for all content summary blocks in the list summary For False Do not get and display example to display content HTML inside a web server control such as a GridView Hide Used to hide output of the list Boolean True Hide results summary in design time and run False show results time Language Set a language for viewing the Integer Integer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 138 ListSummary Server Control Property Description Data Type Values LinkTarget Defines the way a link acts String _blank This target causes the when a link is clicked link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _ parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out o
389. he RssAggregator Server Control ssccceessseeeees 181 Search Server CoOmirl wissssisissstsssisssinssnsccssesecesunteoncaentaanveveves 182 NARFOC WC O Ws sevesceccocessscscssatecsiies aaia 182 Search Server Control vs IndexSearch Server Control 183 Search Server Control Properties ccssssseeceeeeeeeeeeeeees 183 Property Usage Table ucin 184 Property DESCIiPHOMS secessssasdecesssdaedsecesssdandiecatsetandiatedsstanddseassetaneds 185 Plate Sean Cl se crscaesicee syeneestnchergnsiecs sacenaastneaaveneatlseneneagatlamenenaintnenices 197 PRESUNUTAG Oc E E E E E E E A E quiets 198 TALBOK EKA MO S n ta niededaidh i nietedessvaniscedestvonideieann tends 199 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xiii Button Image Source Examples 0 cccceeeeeeeeeeeeeeeeeeeteeeeeeaeees 199 Search Button Text Examples 0 cccecceessceeeeeeeeeeeeeeeeesaeeeneaees 200 DISPIAY EXAM PlOS eea semnanuacevennuwruawes sais 201 ShowDate Examples cis ss cccscictetsscscslasecagestccedematacslcotasledebconteanstecs 202 SMOWEXtENAERS CACM iszacadeviaccaizedsviasctedes i cisdatenss iteaceedes iestecetaites 202 TALGStFOlASTDSSCHIBIIOM LSE siesta a cctes soerasaectederaderetests eee aaaiese 205 Using the Advanced Search Properties ssssecceesseeeeeees 206 Basic and Standard Searches ccccccesseeeesessceeeeeesssneeeeeeeesnaees 208 Advanced SCANCH sern rE 209 Using Standard and Advance
390. he date when the content block was created formatted as a NET date type DateModified The date when the content block was modified formatted as a NET date type DefaultXslt The default Xslt DisplayDateCreated The date when the content block was created It is formatted as a string that represents Ektron CMS400 s display of the date DisplayDateModified The date when the content block was edited It is formatted as a string that represents Ektron CMS400 s display of the date DisplayEndDate The content block s end date It is Ektron CMS400 NET User formatted as a string that represents Manual Scheduling Content to Ektron CMS400 s display of the date Begin and End gt Setting an End Date on a Content Block DisplayGoLiveDate The content block s start date It is Ektron CMS400 NET User formatted as a string that represents Manual Scheduling Content to Ektron CMS400 s display of the date Begin and End gt Setting a Start Date DisplayStartDate The content block s start date It is Ektron CMS400 NET User formatted as a string that represents Ektron CMS400 s display of the date Manual Scheduling Content to Begin and End gt Setting a Start Date Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 25 Property Description For more information see EndDate The content block s end date formatted Ektron CMS400 NE
391. he full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting Dynamic Content Parameter Checks the QuerySiring for this value and replaces the list summary with a content block when specified Choose None to always display Used in ASP NET only List Summary Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 349 Field Description Random Output Used in ASP NET only Displays random content within a list summary None Displays all content in list summary Random Teaser Displays a random content block s teaser Random Body Displays a random content block s body Content Type Used in ASP NET only Defines what type of list summary appears Content Displays only content blocks in the folder All Types Displays all content in the folder Forms Displays only forms in the folder Archive_Content Displays archived content from the folder Archive_Forms Displays archived forms from the folder of seconds Cachelnterval Used in ASP NET only Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See A
392. he left Center Aligns text to the center Right Aligns text to the right Justify Aligns text justified to both margins Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 321 Field Description HorizontalDisplay Displays submenu to the right of the root menu This only affects the first submenu of the root menu All subsequent submenus appear to the right of each submenu The default is False True Submenu appears to the right of the root menu CssClass Apply a css class to the root menu Enter the class name from the css defined in the Style sheet property Since pop_style css is the default style sheet you can use its classes without defining it in the Stylesheet property For example if you enter lowtext in the property the root menu changes as shown below No CssClass applied lowT ext CssClass applied Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 322 Field Description MenuHoverOverColor Sets the background color for the root menu when hovering over it SubMenuBackColor Sets the background color for the submenu SubMenuHoverOverColor Sets the background color for the submenu when hovering over it BackColor Sets the background color for the root menu This property appears in the Appearance category ForeColor Sets the color of the font for the
393. he results that are generated Also specify if you want the results in ascending or descending order e Title The title of the content block e Date Created The date the content block was created e Date Modified The date the content block was last modified e Last Author Last Name The last author s last name e Last Author First Name The last author s first name e ID The content blocks ID e Ascending Alphabetic or numerical order e Descending Reverse alphabetic or numerical order Max Number of results The Maximum number of content blocks returned O unlimited ExactPhrase Determines whether the KeyWordValue needs to match the phrase exactly For example if site is the KeyWordValue and 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 Checked Match the exact phrase C Unchecked Doesn t need to match exact phrase Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 330 Field Description LinkTarget Defines the way a link acts when a link is clicked Choices are _blank This target causes the link to always be loaded in a new blank window This window is not named _self This target causes the link to always load in the same window the anchor was Clicked in This is useful for ov
394. headreport The header area where the question and number of responses appear The following example shows the header area in red Co Worker EE 16 67 Friend MEE 29 17 Newspaper ME 12 50 Online EEE 20 83 Other ME 16 67 No Selection E 4 17 Refresh Result Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 605 Class Controls tblcol1 tblcol2 The table columns where the options and results appear The following example shows the table columns in red Where did you hear about ektron Medical 24 responses rt a n P Zz m n c F optiontextcell The area where the options appear The following example shows the option area in red Where did you hear about ektron Medical 24 responses ME 16 67 29 17 12 50 20 83 16 67 E 4 17 Refresh Result Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 606 Class Controls percentcell The area where the result s percentage information appears The following example shows the result s percentage information area in red Where did you hear about ektron Medical 24 responses Co Worker No Selection a Refresh Result barcell The cell where the bar graph appears The following example shows the cell area in red Where did you hear about ektron Medical 24 responses Co Worker Newspaper Refresh
395. hecked Checked The Files check box is enabled in the advanced search properties If used with EnableLibFiles the check box is checked by default C Unchecked The Files check box is disabled in the advanced search properties Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 381 Field Description EnableLibHyperlinks Used in ASP NET only Enables users to search Library Hyperlinks The default is Unchecked Checked Searching Library Hyperlinks is enabled C Unchecked Searching Library Hyperlinks is disabled unless Hyperlinks is checked in the Advanced search See Also Using the Advanced Search Properties on page 206 EnableLibHyperlinksBtn Used in ASP NET only Provides a check box so users can decide if they want to perform a Library Hyperlinks search The default is Unchecked Checked The Hyperlinks check box is enabled in the advanced search properties If used with EnableLibHyperlinks the check box is checked by default C Unchecked The Hyperlinks check box is disabled in the advanced search properties EnableLiblmages Used in ASP NET only Enables users to search Library Images The default is Unchecked Checked Searching Library Images is enabled C Unchecked Searching Library Images is disabled unless Images is checked in the Advanced search See Also Using the Advanced Search Properties on page
396. hentication when logging in C Unchecked Do not use Active Directory authentication when logging in Important For this property to function properly you must be using Active Directory authentication with your CMS400 NET Site Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 353 Field Description SuppressHelpButton Used in ASP NET only Hides the Help button that appears below the Login button when set to true The default is False Checked Do not display the Help button C Unchecked Display Help button Hide Used in ASP NET only Used to hide a Login button at run time Checked Hide Login button C Unchecked Show Login button Note If Hide and Visible are both checked the property is hidden Visible Used in ASP NET only Style Positioning Info GridLayout Used in ASP NET only Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Used in ASP NET only Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line port
397. his Agreement and its performance and all claims arising from the relationship between the parties contemplated herein shall be governed by construed and enforced in accordance with the laws of the State of New Hampshire without regard to conflict of laws principles thereof The parties agree that any action brought in connection with this Agreement shall be maintained only in a court of competent subject matter jurisdiction located in the State of New Hampshire or in any court to which appeal therefrom may be taken The parties hereby consent to the exclusive personal jurisdiction of such courts in the State of New Hampshire for all such purposes The United Nations Convention on Contracts for the International Sale of Goods is specifically excluded from governing this License If any provision of this License is to be held unenforceable such holding will not affect the validity of the other provisions hereof Failure of a party to enforce any provision of this Agreement shall not constitute or be construed as a waiver of such provision or of the right to enforce such provision If you fail to comply with any term of this License YOUR LICENSE IS AUTOMATICALLY TERMINATED This License represents the entire understanding between the parties with respect to its subject matter YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT THAT YOU UNDERSTAND THIS AGREEMENT AND UNDERSTAND THAT BY CONTINUING THE INSTALLATION OF THE SOFTWARE BY LOADING OR RUNNING THE SOFTWA
398. how an RSS summary appears when viewed without an RSS reader on a web page lt xml version 1 0 gt lt rss xmlins xsd http Awww w3 org 2001 XMLSchema xmins xsi http www w3 org 2001 XMLSchema instance version 2 0 gt lt channel gt lt title gt example listsummary lt title gt lt link gt http localhost CMS400Demo developer ListSummary RSS_ListSummary aspx show true lt link gt lt description gt lt item gt lt title gt eWebEditPro XML V4 2 supports the vision of create content once reuse many times lt title gt lt link gt http 192 168 0 82 CMS400Demo Developer ListSummary pr aspx id 290 lt link gt lt description gt lt CDATA amp lt p amp gt Ektrons XML Authoring Tool Makes it Easier to Create Structured Validated Content to Support an Organizations Information and Content Management Strategies amp lt p amp gt gt lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 3 7 2006 2 00 46 PM lt pubDate gt lt item gt lt item gt lt title gt Ektron Offers a Visual Development Environment for Rapid CMS Integration and Deployment lt title gt lt link gt http 192 168 0 82 CMS400Demo Developer ListSummary pr aspx id 282 lt link gt lt description gt lt I CDATA amp lt p amp gt Ektron leverages strong capabilities of Visual Studio NET to give developers a truly visual environment for integrating CMS components into Web templates amp l
399. hown below WebFormi aspx WebForm1 aspx vb oy Page Events Imports Ektron Cms Controls Gl Public Class WebFormi Inherits System Web UI Page Web Form Designer Generated Code NOTE You do not need to declare a namespace However if you do not you must fully qualify objects that you create Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 17 Best Practice For any customization of the CMS classes or controls that inherit from Ektron classes it is recommend that you create your own namespace within Ektron Cms Custom For example if your company is AcmeExampletTech Inc you should create all of your custom classes within the namespace Ektron Cms Custom AcmeExampleTech Step 2 Create an Instance of the New Control Next declare a control as an object in the code behind In this example we create a collection named MyCo11 dim MyColl as New Collection or dim MyColl as new Ektron Cms Controls Collection With C use this syntax Ektron Cms Controls Collection MyColl new Ektron Cms Controls Collection You can declare any server control as an object by using the server control name in the List of Server Controls on page 39 Another example would be Dim MyMd1 as New MetaDataList Step 3 Set the Properties NOTE For descriptions of the properties and how to use them see Server Control Properties
400. http equiv Content Type content text htm1 charset iso 8859 1 gt e 2 title content type Displays all metadata content for content block ID 2 except for its title and content type definitions lt Title gt Welcome to Our Home Page lt Title gt lt meta name Keywords content Home page company Welcome Announce product widget gt lt meta http equiv Content Type content text html charset iso 8859 1 gt The next section provides more examples More ecmMetadata Examples Shown below is an example of the metadata function in an ASP Web page lt TR gt lt TD gt lt ecmMetaData 1 2 title 14 keywords gt lt TD gt lt TR gt The previous example has the following properties e All metadata for content block ID 1 is inserted into the page e All metadata for the content block ID 2 except for its title is inserted into the page e All metadata for the content block ID 14 except for its keywords is inserted into the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 490 Metadata Function Using a Dynamic Metadata Tag You can use a metadata tag in a template to define the metadata for a specific content block However you can also use a dynamic metadata tag combined with a content block tag to show the metadata for all content blocks on a Web page This allows you to create a template and not have to keep updating the tag by adding the n
401. i Gy a Ts Search Function The search function is used to display a text box with a search button on the template When seen on the template on the Web page a user can enter text and click the search button to search through all the content on the Web site Ektron has created two search functions e ecmSearch e ecmSearchNoFormTag Both functions have the same parameters and perform the same search The only difference is ecmSearch automatically inserts form tags ecmSearchNoFormTag does not The following is an example of form tags lt form name ecmsearch method post action search display asp gt lt form gt When using ecmSearch form tags are added automatically When using ecmSearchNoFormTag you need to add the tags manually Here is the format for the search function You can interchange ecmSearch and ecmSearchNoFormTag when using this function lt php ecmSearch StartingFolder Recursive targetpage textbox MaxCharacters ButtonImgSrc ButtonText FontFace FontColor FontSize Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 526 Horizontal Spare gt This function is basically the same as the Search function in ASP See Search Functions on page 428 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below Search Function Example lt TR gt
402. i jsp ContentWS asmx is the web services file that the custom JSP functions use to talk to Ektron CMS400 NET The WSSoap_address located in the applicationapi jsp file must be set to location of the Web services file The default WSSoap_address is http localhost cms400demo WorkArea WebServices ContentWS asmx If you have changed the location of ContentWS asmx you need to update the WSSoap_address For example if your site is www myektronsite com the WSSoap_address would be http www myektronsite com WorkArea WebServices ContentWS asmx e Add the following line to the top of each template lt include file applicationapi jsp gt This file calls the Ektron custom functions file to allow the page to function properly It must appear at the top of the template file e Make sure the contentws jar file is included in your JSP environment e Ektron recommends running Axis when using a JSP environment We have tested on TomCat and JRUN with Axis v1 2 1 You can download Axis from http ws apache org axis java To customize you Ektron CMS400 NET application you need to be familiar with these functions Calendar Functions Function Description More Information Calendar Displays a calendar with different display types Calendar Function For example a daily view calendar For more information 0N page 545 on the types of calendars that can be dsiplayed see DisplayType on page 482 Event C
403. ic properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Align Specifies the horizontal alignment of the root menu text String The default is Center NotSet Use the default setting Left Aligns text to the left Center Aligns text to the center Right Aligns text to the right Justify Aligns text justified to both margins Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 BackColor Sets the background color for the root menu This String property appears in the Appearance category Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 161 DhtmIMenu Server Control Property Value Data Type CssClass Apply a css class to the root menu Enter the class String name from the css defined in the Stylesheet property See Also Stylesheet on page 164 Since pop_style css is the default style sheet you can use its classes without defining it in the Stylesheet property For example if you enter lowtext in the property the root menu changes as shown below No CssClass applied lowT ext CssClass applied DefaultMenulD The ID of a menu that appears where you inse
404. id else ecmContentBlock 14 end if gt lt td gt Eai aea In this sample code when a person accesses this page without passing through the content s ID number the content with an ID 14 will be displayed If you pass a content id through the URL like index asp id 4 the content block ID 4 will be displayed Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 423 Add Content Add Content The add content function allows you to programmatically add a new content block to Ektron CMS400 NET without the need of logging in This function can be for several applications including but not limited to e Applied to a Web form allowing you to collect data from users about the content block e Creating a loop function that moves information from a database to an Ektron CMS400 NET database Here is the format for the add content function lt AddConitent Username Password Domain content_title content_comment ContentHtml SummaryHTML ContentLanguage FolderiD GoLive EndDate Metalnfo gt IMPORTANT Every string that you pass to the function must be HTML encoded Here is the VB Net syntax for encoding a string myTitle John s Book myTitle Server HtmlEncode myTitle Explained in the table below are the attributes for the add content block function Attribute Description Username The username of the user to be authenticated for permission
405. ied collection Displayed here is the format for the random content function lt ShowRandomContent id XSLTId gt Where the id represents the ID number of the collection the content blocks that will be displayed belong to View Collection Products ir l Y o e Title RC Sportster RC Cheetah RC Lilly RC Redstar More info ple products asp Last User To Edit Application Administrator Last Edit Date 29 Oct 2002 09 36 PM Date Created 29 Oct 2002 09 34 PM And XSLTId is the ID number of the displ content blocks in the collections m i ay XSLT that will be applied to the Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 476 Random Summary Random Summary Similar to the random content function the random summary function randomly displays a content block summary that belongs in a specified collection Here is the format for the random content function lt ShowRandomSummary id gt The id represents ID number of the collection to which the content blocks belong View Collection Products roj yae Title RC Sportster RC Cheetah RC Lilly RC Redstar More info ple products asp Last User To Edit Application Administrator Last Edit Date 29 Oct 2002 09 36 PM Date Created 29 Oct 2002 09 34 PM m m Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 477 Even
406. ies see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DefaultContentID The ID of a content block that appears where you Integer 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Display Xslt Ignore for a non XML content block String DynamicParameter Select id When you do this server control uses the String content block passed as a URL parameter Hide Used to hide a content block in design time and run Boolean time True Hide content block False Show content block Language Set a language for viewing content The language Integer property shows results in design time in Visual Studio and at run time in a browser OverrideXslt Ignore for a non XML content block must be one of these values default one two three WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attribut
407. ieviamasiniends 520 AME Menu FPUNCUIONN sce ceseettccccticerssansttannidecenatscndecenntucatenencsaddas 520 Language Select FUNCTION ceccesssseeeeessssseeeeessseeeeeeeees 520 Custom PHP Functions sisscsisccsissovcesstectesssessencisansenescunn 521 Login FUNGUO esii a aS 524 Login Funcion Examples sisian aa 524 Gontent Blek F nGtiO s irissiisia eiaeaen aaas 524 Statie COMEM BIOCK oreren E E 525 Dynamic Content BlOCKoispicnineiininoinio aaa 525 AML Content BlOCK i iscccecssaSacccecers ut ecescraabuteceersaat ceed aiD etnar 525 Add COGAN ca sss cts esses cameras cececcecmccececteces 525 Add Content EXAMS croar aea ERE 526 olor geo FUNMCHON Aone eee eae eee er ee Ree aariaa 526 Search EUNCUOM EXAMS sonscienco 527 Search Display Function sssssnnnnennunnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmn 527 Search Display Function Example ssimic oa 527 List Summary FUNGUO is is aineina inanasan 527 List Summary EXAMP l sc iuiscdescnsntsidtannsncsaduanesssierdtannssacrdanatieuss 528 Archive List Summary Function s sssssssunnnnnennunnnnnnnnnnnnnnnnnnnnn 528 Single Summary FUNCTION ccceeeeeeeeeeeeeeeeeeseseeeeeeeeneeeees 528 Single Summary Example cirenac in catenin nto ai 528 XML List Summary Function ccccceeseeeeeeeeeeeeeeeeeeeeeeeneeeees 529 RSS List Summary FUNCOM siss scccccnsicccncsccnccncnecescecenseennercences 529 Gollection PUNCO iivs ne arep aaraa Erea 529 Collecion Example Senespere oiae E ETA 53
408. ifferent display types Calendar Function on page 481 Event Calendar Displays a month view event calendar Event Calendar Function on page 478 Collection Displays links generated by collections Collection Function on page 465 CollectionXML Creates XML for a collection by wrapping tags around all XML Collection of the collection items and their properties This allows Function on page 471 you to use an XSLT to define how the XML collection is displayed Random Content Randomly displays the content of a collection item Random Content on page 476 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 411 Function Description More Information Random Summary Randomly displays the summary of a collection item Random Summary on page 477 RSS Collection Creates an RSS feed out of the items in a collection RSS Collection Function on page 469 Content Functions Add Content Content Block Allows a user to add content to Ektron CMS400 NET programmatically Displays and manages a content block Add Content on page 424 Content Block Function on page 416 Form Displays a content block associated with a form Form Function on page 485 Multipurpose Displays either a content block or a form MultiPurpose Function on page 487 List Summary Functions Archive ListSummary Displays summaries o
409. iixscdussiutcdsntioniiandansciuntan 442 XML List Summary Function ccseeeeeeeeeeeeeeeeeeeeeeeeeeeeees 450 Archive List Summary Function ccccsssssseeeeteeeeeeeeeees 455 Single Summary FUNCTION c ccceseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 456 RSS Summary FUNCTION irssi eies 460 Collection FUNCTION sciissis aaa 465 RSS Collection FUNCUOM sissioni 469 XML Collection Function scccicccisecsscsscssccciscsivcsssesssestsesasestvetis 471 Randon Content cissi aai 476 Random SUMMAary sssrin anniina a 477 Event Calendar Function ccsseccccccsssssseeeeeeeeeeeeeeeeeeeneees 478 G lendar FUN CUO Msns a 481 Form FUNGO sscsescassistcasnsinnesacnsscnceacaessassintinaneaensancensascanneanes 485 MultiPurpose FUNCTION ssiiiisisissssisinnsansanssaan eaaa 487 MGtad ata FUNCOM iisissaiecaenntiatiicndindicaciusaiesesacaunciestiaetanecnenten 488 Show Site Language Function cccccssseseeeeeeeeeeeeeeees 494 DHTML Menus ssicasisicncatieannsanieavenaninarenncisis cncviacnsaassendionvianaaneris 495 AM MENU irienna NEEE 499 Custom ColdFusion Functions ccccseeeeeeeeeeeeeeeeeeeees 501 Custom PHP FUNGHONS ssssisiscanccsccciesssncssonimanneccin 521 CUS tit AP isisisi ren rasanan ROEPANA ENAA AAAA aA LAN E RASEK FAA FARE EEES 542 GUSTO JSP FUNC WONG iiair n 543 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 vi Web ServiCeS viinnssessxiedsssdinwiisiaabiiscinasin
410. ile For example For example if your site is www myektronsite com the WSDLpath would be http www myektronsite com WorkArea WebServices ContentWS asmx The application AppPath needs to updated with the path to the ColdFusion custom Functions To customize you Ektron CMS400 NET application you will need to be familiar with these tags Function Description More Information Calendar Functions Event Calendar Displays a month view event calendar Event Calendar Function on page 513 Collection Functions Collection Displays links generated by collections Collection Function on page 509 CollectionXML Creates XML for a collection by wrapping tags around all XML Collection of the collection items and their properties This allows Function on page 513 you to use an XSLT to define how the XML collection is displayed Random Content Randomly displays the content of a collection item Random Content Function on page 505 Random Summary Randomly displays the summary of a collection item Random Summary Function on page 506 RSS Collection Creates an RSS feed out of the items in a collection RSS Collection Function on page 513 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 501 Function Description More Information Content Functions Add Content Allows a user to add content to Ektron CMS400 NET progammatically A
411. in Code Behind on page 20 After inserting the control you can set the properties that you want to display on the page For example Dim MyColl as New Collection MyColl DefaultCollectionID 4 MyColl Page Page or if you are using code behind to insert the control dim MyColl as new Ektron Cms Controls Collection MyColl DefaultCollectionID 4 MyColl Page Page With C use this syntax Ektron Cms Controls Collection MyColl new Ektron Cms Controls Collection MyColl DefaultCollectionID 4 MyColl Page Page These lines tell the page to display CollectionID 1 unless otherwise specified Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 18 IMPORTANT When using code behind to add a server control to your Web form you must set the Page object for the server control to Page For example Mycoll Page Page This line needs to appear between Dim new server control line and the Fill line This line is not added when dragging and dropping a server control ona Web form See Also Referencing the Page Property on page 28 NOTE If you do not know an object s ID number you can switch to Design mode drag and drop the object then use the CMS Explorer to find the ID number See Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 If you do this remember to delete the dropped object when you are done You can also obtain the ID number via the Workarea
412. ind Dim bRet As Boolean If Request QueryString publisher IndexSearchl IndexSearchl IndexSearchl Ektron Cms Common IndexSearchl bRet Ektron Cms Common IndexSearchl lt gt Then Hide False Parm XPath root publisher Parm DataType EkEnumeration XMLDataType String l Parm SearchType EkEnumeration XMLSearchRangeType ExactPhrase Parm Valuel Request QueryString publisher IndexSearchl AddParm IndexSearchl Literall T ks lt hi gt Literal2 T Else Boo Literall 1 arstr For StrRet amp Str amp Next wins ext ext ext Dim arStr As String Dim Str As String Dim strRet As String IndexSearchl GetXPathValues root publisher Each Str In arStr l Search lt hl gt Publisher amp Request QueryString publisher amp lt a href webform aspx gt Back lt a gt lt h1l gt Publishers lt h1 gt lt a href webform aspx publisher amp Server UrlEncode Str amp lt a gt lt br gt Literall Text strRet End If Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 231 IndexSearch Server Control Save your Web form Build your Web form Browse to the Web form in your browser ONO The list of publishers appears Address http flocalhost CMS400Example webform aspx v EJ oo Links EktronNet Welcome Ektron Inc CMS400
413. individual content allows you to cache a part of a Web page and is only available on some server controls With Page Level Caching you can use any server control and the entire page is cached Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 36 The following is a visual example of how data flows in non cached and cached enviroments Viewing a Site without Caching Ly ektron Server Control A site user views A request for a aWeb page content block is sent from the server control The request for the Sy _ eklron cmu Business Rules The CMS400 database sends the content block back through the stream content block is received by the Business Rules and it is forwarded to the CMS400 database to be displayed on the Web page Viewing a Site with Caching After an initial view a a LEEN ws i r L ertron ekon Server Control A site user views a The server Web page control sends the cached value back to the Web page Not used when getting cached data IMPORTANT Controls serve data from the cache only if the user is not logged in Caching Individual Content Caching individual content is available on the following server controls e ContentBlock e FormBlock e Collections Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 37 e ListSummary e MetadataList e Menu
414. ing The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Lets you use custom tag Updating the Page Command To prevent an error from appearing when a user posts a reply to the Web page that hosts the Forum server control follow these steps 1 Open the Web form onto which you inserted the Forum server control 2 Access Source view 3 Go to the top line of the Web form which begins with Page lt S PageLanguage VB AutoEventWireup false CodeFile Default2 aspx vb Inherits Default2 gt 4 Near the end of the line enter validaterequest false 5 Build the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 121 HTMLEditor Server Control HTMLEditor Server Control Introduction This server control provides the ability to edit CMS content The eWebEditPro editor can easily be placed onto a page for content editing There is flexibility to control the toolbars the available functionality and the operations of the editor WARNING After placing an HTMLEditor server control on a page follow the procedure described in Updating the Page Command on page 121 Otherwise the user may get an error when submitting the content The control at run time produces the fields listed below They are pos
415. ing example shows a search dialog box on a Web form and the results displayed on separate Web form This is done when you the search dialog box appears in a navigation pane and the results appear on a separate Web form 1 Drag and drop a Search server control on a Web form WebForm aspx m Search All the words C Any of the words Exact Phrase Match Partial Words 2 Set the following Ektron properties for the Search server control EnableAjax False DisplayXslt None Databind Only PostResultAt The Web form that displays the search results For example Webform2 aspx NOTE webform2 aspx represents the name of the second Web form 3 Add a second Web form to the project Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 214 Search Server Control 4 Drag and drop a Search server control on it WebForm2 aspx oo Search All the words C Any of the words C Exact Phrase l Match Partial Words 5 Set the Ektron property ShowSearchBoxAlways to false 6 Build the solution 7 In your browser go to the first Web form wen ey a iad Wd PY Links EktronNet Welcome Ektron Inc CMS400E All the words Any of the words Exact Phrase CI Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 215 Search Server Control 8 Use the search dialog ww es i pe Ad
416. ing them on a web form by using the code behind Here is an example of using a drag and drop ListSummary Server Control then modifying it programmatically Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 31 First drag and drop a List Summary on your Web form and set your properties Toolbox Ba 2 X StertPace Intranet WebForm5 aspx Intranet WebForm5 asp Data Oy o WebForms ASP NET Unleashed ereman Content Management Bible HTML HTML for the World Wide Web with XHTML and CSS Clipboard Ring t 1 OMicrosoft ASP NET Pro ing with Microsoft Visual Ektron Server Controls Simply Visual Basic NET 2003 Pine Vel Basic NET How to Progam O Calendar l Properties Collection E ContentBlock FormBlock amp LanguageAPI ni E Ektron LanguageSelect Authenticated ContentParameter gt Direction A Login DisplayXsit RE Menu FolderPath 8 MetaData Hide J MetaDatalist Language MaxResults wah OrderKey Random Recursive Then add the following code to the code behind Dim myString As String Dim i For i LBound ListSummaryl EkItems To UBound ListSummaryl EkItems myString amp lt a href _ amp ListSummaryl EkItems i QuickLink amp gt amp ListSummaryl EkItems i DateCreated amp lt a gt lt br gt ListSummaryl Text Next myString An Explanation of the code ListSummary1 is the ID of the object It is used to get access
417. ion Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 Click Insert A Blog RSS icon appears and indicates the Blog RSS s location on the template C ol It Ge lt body gt lt form id formi runat server gt lt form gt lt p gt nbsp lt p gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 292 Shown below is an example of the code that is inserted Platform Code View NET lt cms BlogRSS id BlogRSS1 BlogID 41 runat server gt lt cms BlogRSS gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP BreadCrumb For a
418. ion lt ID gt lt ID gt The content block ID For example lt ID gt 27 lt ID gt lt Title gt lt Title gt The title of the content block For example lt Title gt HTIML for the World Wide Web with XHTML and CSS lt Title gt lt QuickLink gt lt QuickLink gt The quicklink associated with the content block For example lt QuickLink gt cms400demo collection aspx id 27 lt QuickLink gt lt Teaser gt lt Teaser gt The summary of the content block For example lt Teaser gt Th asiest HIML book weve seen that still manages to be comprehensive lt Teaser gt lt StartDate gt lt StartDate gt The content block s start date formatted as a NET date type For example lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt lt DateModified gt lt DateModified gt The last date the content block was modified For example lt DateModified gt 1 19 2005 4 18 06 PM lt DateModified gt lt EndDate gt lt EndDate gt The date the content block stops running on the Web site For example lt EndDate gt 12 31 9999 12 00 00 AM lt EndDate gt lt LastEditorFname gt lt LastEditorFname gt The first name of the last person who edited the content block For example lt LastEditorFname gt John lt LastEditorFname gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 452 XML List Summary Function XML Tags Description
419. ion Search Ordered List AJAX Search Search Result New Page Programatic Search Example 1 XML Indexing Fig i 2 Note that below each example on the page is run this example Click this link to run the search and view the results 1 User Search Guidelines for Creating a Search To learn how to use the Search API study the examples on the page Note that examples are provided in both Visual Basic and C Here are guidelines to follow when creating a search Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 602 1 A search consists of one or more conditions Each condition consists of an operator and OR Like a value and the field whose value you are setting See illustration below SSearchCondition isInEktron new EEEE anaes Ektron setType SearchType EQUAL iEKtron setValue 03031 alue can be integer string date and bc iEktron setVariable customproperties zip Field WARNING If the field is a date you can only use the following operators EQUAL NOT EQUAL GREATERTHAN or LESSTHAN 2 After all conditions are declared declare the logical relationship between them In other words must the search criteria satisfy all or any conditions In the sample code below the search only returns users that satisfy both declared conditions This is indicated by the AND operator UserSearchCondition condition new UserSearchCondition condition setType SearchType
420. ion see ContentRating Server Control on page 110 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert the Content Rating function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click ContentRating 3 The Insert Ektron CMS400 NET Content Rating box appears Ektron CMS400 Content rating Displays content rating Control ID ContentRating1 Content ID Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parameter Hide Visible Positioning info GridLayout Style leave blank if none Wrap tag 4 Use the following table to assist you with inserting the Content Rating function Field Description Control ID A unique name for the function you are inserting Content ID Specify the ID number of a content item being tracked by this function If you do not know the Content ID you can navigate to it using the Select Category and Select Content drop down boxes Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 315 Field Description Dynamic Content Parameter To make this content rating control dynamic select id When you do this server control is attached to the content block passed as a URL parameter
421. ion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Search For a description of the Search functions see Search Server Control on page 182 This tag appears on the following menu s Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 375 e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a Search function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click on Search Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 376 3 The Insert Ektron Search box is displayed Insert Ektron CMS400 Search Search Control ID Recursive AJAX FolderID 0 _ Select the or fill it in above Order By Title Ascending v Display Type be Max Number of results 50 0 is unlimited ShowSearchBoxAlways Display Horizontal _ LinkTarget _self RemoveTeaserHtml Y Hide Visible Wrap tag Span v ResultTagId PostResultsat ButtonImgSrc ButtonText Search
422. ion for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog Entries For a description of the Blog Entries function see BlogEntries Server Control on page 45 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog Entries function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Entries Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 278 3 The Insert Ektron CMS400 NET Blog Entries box appears Ektron CMS400 BlogEntries Control ID BlogEntries 1 BlogID Select the folder or fill it in above of seconds CachelInterval g Hide Visible M Positioning info GridLayout Style Wrap tag Span 4 Use the following table to assist you with inserting the Blog Entries function Field Description Control ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to
423. ion is used to randomly display the summary of a content block that belongs in a specified collection Displayed here is the format for the random content function lt php ShowRandomSummary id XsItID gt This function is basically the same as the Random Summary function in ASP See Random Summary on page 477 for details Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 533 Event Calendar Function The ecmEvtCalendar function is used to display an event calendar that has been created in the Ektron CMS400 NET Workarea lt php ecmEviCalendar id Displaytype gt This function is basically the same as the Event Calendar function in ASP See Event Calendar Function on page 478 for details The only differences between the PHP function and the ASP one are the use of the DisplayType parameter and the syntax for implementing it The ecmEvtCalendar function parameters are defined below Description Location Start Time End Time Table Properties Attribute Description id The id argument represents the ID number of the event calendar in the Workarea View Calendar Calendar Example Calendar Example Location Start End Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 534 Attribute Description DisplayType Specify the Calendar display type e Month A 30
424. ion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 354 5 Click insert A login icon indicates where the Login button appears on the template Shown below is an example of the code that is inserted Platform Code View NET lt cems Login id Loginl runat server gt lt cms Login gt ASP lt ecmlogin gt ColdFusion lt cfmodule template request ecm AppPath ecmLogin cfm gt JSP lt ecmLogin gt PHP lt php ecmlogin gt Membership Control For a description of the Membership function see Membership Server Control on page 146 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert a Membership Control 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Membership Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 355 3 The Membership dialog box appears Ektron CMS400 membership Reset Username email already exists You have registered successfully You have successfully updated your inft O Positioning info Grid
425. ional EN gt lt html gt lt head gt lt Tit le gt cmMs200 Login Information lt Tit le gt lt meta name Keywords content CMS200 content Management solution business users developers benefits gt lt head gt lt body gt lt body gt lt html gt lt PHP ecmMetaData 1 2 title keywords gt i metadata 2 Notepad 0 x File Edit Format Help lt DOCTYPE HTML PUBLIC w3Cc DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Tit le gt CMs200 Sample web Site lt Tit le gt lt meta name i ords content CmMs200 content management ution business users developers benefits gt lt head gt lt body gt k bod einem gt DHTML Menus Ektron CMS400 NET s Menu feature lets users create and maintain a dropdown menu system for your Web site The Menu feature lets you display menu options that link to content blocks library assets external hyperlinks and submenus To learn more about menus please refer to the Menu Feature chapter of the Ektron CMS400 NET User Manual Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 539 Additional Documentation in Ektron Knowledge Base This chapter explains how to implement standard menus that ship with Ektron CMS400 NET Ektron s Web site also provides Knowledge Base articles that explain how to extend the standard menu features Displaying a Menu on a Web Page Gen
426. ir favor to help their organizational Web strategies succeed With CMS400 NET s new toolbox of pre built reusable data bindable ASP NET server Working with Non Ektron CMS400 NET Content If a user is not logged to Ektron CMS400 NET the HTML editor is used as an independent editor For examples of integrating the Html Editor with your Web site see the following files in webroot CMS400Demo Developer ContentBlock e EditAnyHtmiSample aspx vb shows an example when not logged in e EditHtmISample aspx vb shows an example when logged in Uploading Files with an Action Page When working with non CMS400 NET content create an action page to handle the uploading of files In addition edit the cms_config aspx file to show the location of the new action page To edit cms_config aspx follow these steps 1 Opencms_config aspx located in site root Workarea ewebeditpro 2 Between the lt Mediafiles gt tags find lt transport allowupload true type ftp xfer binary pasv true gt 3 Change the Type elements value from ftp to the location of your action page For example Type CMS400Demo myfileselect aspx 4 Save and close the file HTMLEditor Server Control Properties The following table explains the properties of the HTMLEditor server control Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 124 HTMLEditor Server Control The following table only lists Ektron specific
427. is code uses the gcbCms400ContentXml Web Service to get the content title gcbCms400ContentXml Item ContentTitl The code also uses the gcbCms3400ContentXml Web Service to retrieve any XSLTs assigned to the content If no XSLTs are assigned as is the case with this sample page the message None Used HTML Content assumed appears Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 577 This code results in the following section of the page Latest News Content Block Information from GetContentBlock Web Service Content Block Title RC International Announces the RC Cheetah Xslt Used for Rendering None Used HTML COntent assumed Next the page uses the GetContentBlock method to display the content block in raw HTML or XML format Here is the code that displays that section of the page strHTML strHTML amp lt tr gt lt td gt lt b gt Raw HTML or XML from GetContentBlock Web Service lt b gt lt td gt lt tre strHTML strHTML amp lt tr gt lt td gt amp nbsp lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt amp strRawHtml amp lt td gt lt tr gt strHTML strHTML amp lt tr gt lt td gt amp nbsp lt td gt lt tr gt Finally the page uses the ContentBlock Web method to display the content block in processed format Here is the code that displays that section of the page strHTML strHTML amp lt tr gt lt td gt lt b gt Proce
428. is defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting MaxResults The Maximum number of content blocks returned O unlimited Integer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 223 IndexSearch Server Control Property Description Data Values Type OrderBy The order of the list to be String e Title The title of the con returned For example you tent block want to sort search results by last modified date e ID The XML content block ID number e Date Created The date the content block was cre ated e Date Modified The date the content block was last modified e AuthorLName The last author s last name e AuthorFname The last author s first name e StartDate The GoLive Date OrderByDirection The direction the results will String Ascending be sorted in This property Descending works with the OrderBy property only Recursive Determines whether the Boolean True IndexSearch server control False will use this folder s child folders in the search SearchParmXML Opens a separate window For more information on that lets you predefine a SearchParmXML see search For example you SearchParmXML Propert
429. is property it will supersede the FolderlD property The default is blank Below is an example of the syntax used Football 1 News Headlines 0 Football News and Headlines are the folder descriptions The ones 1 and zeros 0 define whether a site visitor is forced to search the folder or not 1 Automatically search this folder 0 Do not automatically search this folder See Also TargetFolderDescriptionList on page 205 TextBoxSize Specify the size of the text box that is displayed on the Web page for users to enter the search keywords The width is based on the number of characters See Also Text Box Examples on page 199 Visible Used to show or hide the function at run time Used in ASP NET only Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Used in ASP NET only Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 386 5 When completed click insert A graphic defines where the search appears on your template 5 spit L4 Desion L Tite Untied Page foe p St lt body gt lt
430. is table List Summary Function Attribute Description Options Folder This is the folder the summary information will come Any folder from Recursive Allow the tag to get summary info from the child 0 Not Recursive folders 1 Recursive ShowSummary Do you want the content summary to be displayed 0 No 1 Yes Stylelnfo Inline style information for the generated text Any string hyperlink OrderBy ASC DESC Order the hyperlinks by Title DateModified DateCreated Startdate AuthorFname AuthorLname Order the hyperlinks in ascending or descending Title asc order Title desc ShowlInfo Information that will appear to the right of the DateModified hyperlink DateCreated AuthorFname AuthorLname MaxNumber Maximum number of summaries returned 0 Unlimited Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 443 List Summary Function Attribute Description Options ObjType Determines whether the list summary is for the folder or a single piece of content Eolder For example Content If the folder property books and Folder is chosen as the ObjType the list summary for the folder with books appears If the folder property 1 and you choose Content as the ObjType a single summary for content with an id 1 appears See Also Single Summary Function on
431. is valid on page 589 Defining a Schema Fragment NOTE When defining a schema fragment the xs namespace prefix is required for WXS tags Also the WXS fragment must be valid for inclusion in an xs restriction simple type That is lt xs simpleType gt lt xs restriction gt fragment lt xs restriction gt lt xs simpleType gt Simple Data Types The simple data types are defined by W3C XML Schema definition language 1 0 The datatype value should not include a namespace prefix For example datatype string is correct datatype xs string is incorrect Examples e Using only a datatype attribute lt schema datatype string gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 587 e Using only a schema fragment lt schema gt lt xs simpleType gt lt xs union memberTypes xs nonNegativeInteger gt lt xs simpleType gt lt xs restriction base xs string gt lt xs length value 0 gt lt xs restriction gt lt xs simpleType gt lt xs union gt lt xs simpleType gt lt schema gt e Using a datatype attribute and a schema fragment lt schema datatype string gt lt xs minLength value 1 gt lt schema gt Defining a Calculation Use the lt calculate gt element to define an expression that normalizes a value prior to checking validation For example a calculation can truncate digits in a decimal remove excess white space or
432. isible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Wrap Tag Button Text Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code The text that appears on the button Hits Marker This symbol shows how many search criteria each hit matched The following example shows the first hit met three of the criteria The second group met one criterion EZD Microsoft ASP NET Prog Ea Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 401 5 When completed click insert A graphic defines where the XML Index Search appears on your template Untited Page nie lode spit La nesin if Title lt body gt lt form id form1 runat server gt lt cms IndexSearch id IndexSearch1 XmlConfigId 10 FolderId 14 DisplayXslt ecmTeaser HitsMarker runat
433. istrator user and deleting the Admin user IMPORTANT Ektron recommends deleting any users from the CMS400 NET that are not needed on the system IMPORTANT By default when the Ektron Explorer client is installed it has the Explorer or EkExplorerUser username and password installed Client side users should use their own Ektron CMS400 NET username and password when using the Ektron Explorer To learn how to change this information see the Administrator Manual section Ektron Explorer gt Configuring Ektron Explorer Editing Builtin IMPORTANT The builtin user does not appear in the Users list This user appears on the application setup screen To change the builtin account information follow these steps 1 In the Workarea click Settings gt Configuration gt Setup Click the Edit button L Locate the Built In User field AOUN Edit the built in user information by changing the username and password 5 Click the Update button fd Ektron CMS400 NET Administrator Manual Version 6 0 for Net 2 0 Revision 9 ii What s New in the 6 0 Release e The Poll server control allows you to add a Poll or Survey to a Web form scale it and have it appear in an isolated display an iFrame See Also Poll Server Control on page 176 e Eight Blog server controls have been added to give you flexibility when displaying a blog The Blog server control displays all of the blog parts
434. it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer DefaultContentID 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Integer DisplayXslt Ignore for a non XML content block String DynamicParameter Select None Use Default This parameter is used for dynamic content blocks String Hide Used to hide a content block in design time and run time True Hide content block False Show content block Boolean Language Set a language for viewing content The language property shows results in design time in Visual Studio and at run time in a browser Integer OverrideXslt Ignore for a non XML content block must be one of these values default one two three Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET
435. itializeComponent Protected WithEvents MetaDatadrea As System Web UI WebControls Literal Protected WithEvents DhtmlJavaScript As System Web UI WebControls Literal Protected WithEvents DropDownMenu As System Web UI WebControls Literal Protected WithEvents ctrlTopContentBlock As Ektron Cms Controls ContentBlock Protected WithEvents ctrlBottomLeftContentBlock As Ektron Cms Controls ContentBl Protected WithEvents ctrlBottomRightContentBlock As Ektron Cms Controls ContentB Protected WithEvents ctrlLangquageSelect As Ektron Cms Controls LangquageSelect 3 NOTE The following placeholder declaration is required by the Web Form Desiqne Private desiqnerPlaceholderDeclaration As System Object The next section of the code behind page loads the page into the browser Private Sub Page_Load ByVal sender As System Object ByVal e As System EventArgs Handles MyBase Load We want our events to occur while the page is loading so we ll add custom code following this line Customizing the Server Control in the Code Behind To customize an Ektron server control in the code behind insert code similar to the following after the Page_load command Dim MyObj As New Ektron Cms Controls ContentBlock This code declares a variable named MyObj and assigns to it the value of a content block The content block is part of the Ektron CMS Controls content base so it has access to the Ektron CMS400 NET database Ektron CMS400 NET Devel
436. ke on 2 1 the Portland Pirates 2004 2005 2006 e background transparent e font family Arial e font weight normal e font size 10pt e text align left mup_eventDisplay Times Display for event times The following example shows the event display times in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue wed Thu Fri sat Hockey Game Location VWA m 2 31 41 5 i 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 2g Manchester Monarchs take on 29 30 31 the Portland Pirates 2004 2005 2006 e background transparent e font family Arial e font weight normal e font size 10pt e text align left mup_eventDisplayLongDesc Displays the event s long description The following example shows the event display long description in red lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA m21 3 4 S 6 ie 8 9 10 11 12 13 44 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2004 2005 2006 e background transparent e font family Arial e font weight normal e font size 10pt e text align left Event Type Control used in month display Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 641 Style Class Description Attributes and Default Settings etCtrl_Bac
437. ked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 374 Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code 5 When completed click insert A graphic defines where the RSS Aggregator appears on your template lt body MS_POSITIONING GridLayout gt lt form d Formi methad nost lt CMS RssAggregator id RssAggregator1 URL http msdn microsoft com rss xml DisplayXslt ecmTeaser runat server gt lt CMS RssAggregator gt lt lt body gt Shown below is an example of the code that is inserted Platform Code View NET lt CMS RssAggregator id RssAggregatorl URL http msdn microsoft com rss xml DisplayXslt ecmTeaser runat server gt lt CMS RssAggregator gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFus
438. kground The background of the event type control cell The following example shows the event type control background in red lt lt hao May Am ee Usecer Tesey Wessesen Tsay Pron ter aay 1 Zz 5 4 biast S f 2 1 f u 1 1 BL 1 s 1 i ral Bati Eis Hepar Caarenacate z 2 z z y a a x 4 e border right c9bda5 2px solid e border top c9bda5 2px solid e border left c9bda5 2px solid e border bottom c9bda5 2px solid e font size 9pt e background A5B7C9 e font family Arial etCtrl_InstructCell The instructions cell for event type control The following example shows the instruction cell in red tod May dims ee sasam Monin Tusde Wecrescey Tharsdey tran Sante i i 1 4 2 4 z 3 aats i 1 19 s F L 1 4 u u 1 2 z Maid Eisis Hear Chamciaaane z 4 3 it z Sow Aa Feet batt F mhi Hockey e background transparent e font family Arial e font size 9pt e font weight bold e text align right e vertical align top Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 642 Style Class Description Attributes and Default Settings etCtrl_SelCell The cell the selection box is displayed in The instructions cell for event type control The following example shows the selection cell in red Suey Monday Tussi Mecvenctog Tharechey focey Saturday 1 i i 4 5 J z Hroty Gams e 2 it 2 2 a m n 1
439. ks metadata in a Web page the ecmMetadata call looks like this lt html gt lt head gt lt ecmMetadata 1 2 Title Content Type W gt rest of head lt head gt lt body gt rest of web page document lt body gt lt html gt In the above example the ecmMetadata call is contained in the lt head gt of the HTML document since all HTML metadata is required to exist there When the Web page is viewed the Web page source contains the following information lt html gt lt head gt lt Title gt Welcome to Our Home Page lt Title gt lt meta name Keywords content Home page company Welcome Announce product widget gt lt meta http equiv Content Type content text html charset iso 8859 1 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 489 Metadata Function rest of head lt head gt lt body gt rest of web page document lt body gt lt html gt The ecmMetadata constructed three HTML tags based on the administrator defined parameters and the ecmMetadata call The metadata tag was constructed in the page because e 1 Displays all metadata content for the content block ID 1 In this example the title keywords and content type were defined so they were displayed as lt Title gt Welcome to Our Home Page lt Title gt lt meta name Keywords content Home page company Welcome Announce product widget gt lt meta
440. l elements described in The News aspx Sample non XML on page 573 plus demonstrations of how to retrieve XML content Setting Up Instances of Web Services In addition to creating an instance of the Web Service the XML version of news aspx vb creates instances of the ContentBlock and ListSummary methods which are used on the page Dim wsCms400WebService As New localhost CMS400Content Dim gcbCms400ContentXml As localhost ContentBlockResult Dim glsCms400ListSummaryResult As localhost ListSummaryResult Getting Content Blocks Look at this code from news aspx vb glsCms400ListSummaryResult wsCms400WebService GetListSummary Marketing News 0 1 Title asc DateModified 0 If Len glsCms400ListSummaryResult ErrorString 0 Then strHTML lt table gt lt tr gt lt td gt lt b gt Content Block Information Return from the GetListSummary Web service call lt b gt lt td gt lt tr gt strHTML strHTML amp lt tr gt lt td gt amp nbsp lt td gt lt tr gt For iLoop 0 To glsCms400ListSummaryResult Item Length 1 strHTML strHTML amp lt tr gt lt td gt lt b gt Content ID lt b gt amp glsCms400ListSummaryResult Item iLoop ContentID amp lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt lt b gt Content Title lt b gt amp glsCms400ListSummaryResult Item iLoop ContentTitle amp lt td gt lt tr gt strHTML strHTML amp lt tr gt lt
441. ld Description Control ID A unique name for the function you are inserting Used in ASP NET only Collection ID If you know the collection ID enter it into the textbox If you do not know the Collection ID you can navigate to it using the Select Collection drop down box Select Collection The drop down list is filled with a list of all the Collection titles that you have privileges to When a title is selected the Collection ID textbox is filled with that Collection s id number If you insert the Collection ID you do not need to select a category Display Type Determines how the information on the page is displayed None databind only ecmNavigation lists the title of every content block in the collection See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of every content block in the collection plus the content summary See Also Example of ecmTeaser Display on page 85 LinkTarget Used in ASP NET only Defines the way a link acts when a link is clicked Choices are _blank This target causes the link to always be loaded in a new blank window This window is not named _self This target causes the link to always load in the same window the anchor was Clicked in This is useful for overriding a globally assigned BASE target _parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like
442. le below For Information on a adding a menu Item see Ektron CMS400 NET Users Manual gt Working with Menus gt Managing Menus gt Adding a New Content Block to a Menu via Navigation Link on a Web Page For Information on a editing a menu see Ektron CMS400 NET Users Manual gt Working with Menus gt Managing Menus gt Editing a Menu via Navigation Link on a Web Page amp MenuExample CMS Developer Book ASP NET Unleashed Programming C NET VB NET How to Add Add or Edit Edit Menu submenu News Add Addor Edit Edit Menu whole menu Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 157 Menu Server Control 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 Ee CMS Developer g Book ASP NET Unleashed Pro ing C NET VB NET How to LE ewe All Stars Customer Web Design Firms Enhanced Workflow ee Visual Rapid CMS Integration Ektron Partners and Customers TreeMenu XSL code For an example of the XSL code used in the MenuTree click the following link and choose the appropriate version http www ektron com developers cms400kb cfm id 2114 Retrieving the XML Structure of a Menu Retrieving the XML structure of XML content allows for greater control ov
443. lendar and BlogEntries server controls together to allow blog readers to choose which day s blog posts they see Steps to Use BlogCalendar and BlogEntries Together 1 Ona Visual Studio Web form add a BlogCalendar server control 2 Inthe Ektron properties set the BlogPath to the blog you want to use El Ektron BiogPath __jsteves Folder Life Story Language 0 3 If you want change the appearance properties for the calendar This step is optional Add a BlogEntries server control 5 If you want change the appearance properties for the BlogEntries server control This step is optional Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 51 Blog Server Controls 6 On the code behind page set the Class Name list to BlogCalendar1 BlogCalendar 1 alendari_ SelectionChanged DateToStart BlogCalendari NI eee eet WS Bt it 7 Set the Method Name list to SelectionChanged rere rere 9 BlogCalendar 1 E 2 Partial Class Webfor a 3 Inherits System aj si Protected Sub Bile pr 6 7 x J 10 End Sub 11L EnA Clsee zR 8 Inthe Protected Sub BlogCalendar1_SelectionChanged Add the following line of code BlogEntries1l DateToStart BlogCalendarl SelectedDate NOTE This line of code equates the DateToStart property for the BlogEntry control to the SelectedDate property of the BlogCalendar control Ektron CMS400 NET Developer R
444. lex browsers lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 1 19 2005 4 18 06 PM lt pubDate gt lt item gt lt channel gt lt rss gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 470 XML Collection Function XML Collection Function The XML collection function wraps XML around the parameters of a list of content that s created as a collection in the Ektron CMS400 NET Workarea Once created you can use the XML to display the collection information The ecmCollectionXML function allows you to easily define how the collection data appears on the Web page Shown here is the format of the ecmCollectionXML function lt ecmCollectionXML id GetHtml gt The ecmCollectionXML function attributes are explained below Attribute Description id The id of the collection that you would like to be displayed is defined here GetHtml Determines whether the HTML contained within the content is included in the XML output 0 Do not get HTML 1 Get HTML Note Ektron recommends using 0 zero HTML content can be large and this could cause display problems when your XML collection is displayed on your Web page See Also The Ektron CMS400 NET User Manual Section Working with Collections gt Comparison of Collections Menus and the List Summary Features When using the XML Collectio
445. like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting Random Output 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 of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 313 Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span
446. lity to your membership users Membership Server Control Properties The following table explains the properties of the Membership server control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer String and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DisplayMode The type of membership form displayed Choose String from the following e UserRegistration Lets a site visitor register as a membership user e ResetPassword Lets a membership user reset his password e UnsubscribeSecured Lets a membership user unsubscribe He needs to enter his user name and password e UnsubscribeUnsecured Lets a member ship user unsubscribe by entering his mem bership username only e AccountActivate Let a site visitor activate his membership account by entering the ID number in the account verification email For more information see DisplayMode on page 150 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 147 Membership Server Control Property Value Data Type Hide Used to hide login button in design time
447. llowing menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function To insert a Multipurpose content block function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click on Multipurpose Tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 365 3 The Insert Ektron CMS400 NET Multipurpose Tag box is displayed CMS400 Multipurpose Tag Displays a content block or a form block Select a default content id to display if the content id or form id is not passed from URL parameter Default Content ID Select the category to retrieve list of content Select the content block to insert into the page 4 Use the following table to assist you with inserting a Multipurpose tag Field Description Default Content ID Type in the default content ID or select a category from the drop down list then select a content block from the second dropdown list 5 When completed click insert A graphic to define where the Multipurpose tag will appear on your template is inserted 56 57 lt ecm_MultiPurpose gt lt ecmMultiPurpose 24 gt lt ecm_MultiPurpose gt lt p gt 58 i i ektron Content Block Shown below is the code that will be inserted according to the platform that has been specified in the setup Platf
448. llustration and table describe the complete graph Initial Graph Display How would you rate the usefulness of this content Badtabel Poor 1 2 3 4 5 6 7 8 9 Outstanding GoodLabel f Optional Tell us why you rated the content this way OO0O000000 0 i i H j Characters Remaining 1024 Please select a rating before submitting your feedback Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 112 Initial Graph Properties ContentRating Server Control Property Description Default Text BadLabel The low end of the rating scale Poor CharsRemainingLabel Number of additional characters user may enter into comment Characters Remaining CookiesRequired Appears if browser cookies have been We re sorry but you must enable Message disabled cookies in your browser to rate this content FeedbackHeader Introduces rating scale How would you rate the usefulness of this content GoodLabel The high end of the rating scale Outstanding RatingLevelLabel Appears at the top of the graph Rating Level ThankYouMessage Appears after site visitor selects a Thank you for your feedback number optionally enters a comment then presses Submit TotalRatingsLabel Appears below the graph and lists the Total Ratings number of rating submissions received UserCommentsHeader Introduces free text c
449. lly m_apiObj Nothing End Try End Sub The previous example has the following properties e The user admin is used to be authenticated e The title of the new content block is Content Title e The comment for the content is Comment e The body of the content is This is the body of the content e The summary of the content block is This is the summary for the content e The language ID 1033 or English e The folder ID 0 is where the content is added e The start date is 06 27 2006 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 409 e No end date is specified e The metadata definition ID being set is 3 and the value is ContentTitle When this function is executed the content is added to Ektron CMS400 NET Displayed here is the record of the content in the workarea View Content Content Title Properties Content Title Content ID Content Language Status Last User To Edit Last Edit Date Start Date End Date Action on End Date Date Created Approval Method Approvals Smart Form Configuration Template Path Rating Content Searchable English U S Content Title 490 English U S Approved Published Application Administrator 6 28 2006 2 35 44 PM 6 27 2006 4 09 00 PM None Specified None Specified 6 28 2006 2 35 40 PM Do Not Force All Approvers None Specified None Specified
450. low Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 567 XML with XSLT A XML with NET Raw XML CMs400 net Welcome to the Ektron CMS400 NET Developer Section DynamicContentIr Menu Default Menu Tree Menu Dhtml Menu CSS Menu 4s xXML LanguageAPI Ektron has compiled a list of several different examples of developing your Web Meta Basic 2 site with Ektron CMS400 NET Meta multiple Con Meta programminc The individual examples which can be accessed by clicking on their title in the Cache left navigation menu show how easy it is to create robust Web pages by using POEN out of the box functionality including server controls Other examples show how easy it is to programatically produce Web applications by building on these server controls KiE Zl E Click each method on the page to see sample calls and output using various protocols Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 568 When you open the detail page you see Test followed by parameters ecmGetContentBlock Test To test the operation using the HTTP POST protocol click the Invoke button Parameter Value ContentId UserID SitePath Preview SiteLanguage Invoke SOAP The following is a sample SOAP request and response The placeholders shown need to be replaced with actual values
451. lp Ektron Properties Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and Boolean can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 BoardPath If you know the path to the discussion board relative to String your site root enter it here For example CMS400Demo MedicalCenterForum If you don t know the path click the Ellipses button ap then sign in browse to and select the discussion board See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 120 Forum Server Control Property Value Data Type Cachelnterval Sets the amount of time the server control s data is Integer cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Select False to display this server control on the page Boolean Select True to suppress it Language Set a language for viewing content The language Integer property shows results in design time in Visual Studio and at run time in a browser WrapTag Allows a developer to specify a server control s tag Str
452. lse True Show border around content items False No border around content items page 212 See Also ContentFieldsetLegend on page 186 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 188 Search Server Control Property Description Data For more Type information see EnableDMSAssets Enables users to search DMS Assets Boolean Using the Advanced The default is True Search Properties on True Searching DMS Assets is page 206 enabled See Also False Searching DMS Assets is EnableDMSAssetsBtn disabled unless DMS Assets is on page 189 checked in the Advanced search EnableDMSAssetsBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform a DMS Search Properties on Asset search The default is True page 206 True The DMS Asset check box is enabled in the advanced search properties If used with EnableContent the check box is checked by default False The DMS Asset check box is disabled in the advanced search properties EnableFolderFieldset Creates a border around the group of Boolean Fieldset Properties on folders in an advanced search These page 212 folders include any folders listed in the See Also TargetFolderDescriptionList property FolderFieldsetLegend The default is False on page 192 and True Show border around folders Ho paeit daidi False No border around folders laton page 19
453. lso Caching with Server Controls on page 36 Hide Used in ASP NET only Used to hide a list summary in design time and run time Checked Hide list summary C Unchecked Show list summary Note If Hide and Visible are both checked the property is hidden Visible Used in ASP NET only Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Used in ASP NET only Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 350 Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Used in ASP NET only Div The lt div gt tag is used when you want to apply attributes to a block of code 5 When completed click insert A graphic defines where the list summary appears on your template Untitled Page ol e Ut lt cems ListSummary id ListSummary1 FolderId 14 DisplayXslt ecmTeaser runat
454. lt LastEditorFname gt lt LastEditor_name gt Administrator lt LastEditor_Lname gt lt DisplayStartDate gt lt DisplayStartDate gt lt FolderlD gt 0 lt FolderlD gt lt ContentStatus gt lt ContentStatus gt lt Language gt 0 lt Language gt lt DisplayDateModified gt 1 4 2005 7 16 21 PM lt DisplayDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt lt Content gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 454 Archive List Summary Function Archive List Summary Function The Archive list summary function displays on a Web page a list of content summaries for archived content blocks For example you might have a current news page and an archived news page Use the List Summary Function to display current news and this function to display older news stories On the Content Block schedule screen the user must set an End Date then choose the Archive and Display option to have the content blocks appear via this function Shown here is the format of the Archive List Summary function lt ecmListArchiveSummary StartingFolder Recursive ShowSummary Stylelnfo OrderBy Asc Desc Showlnfo MaxNumber Spare1 Spare2 gt This function has the same parameters as the List Summary Function See List Summary Function on page 442 for details Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 455 Single S
455. lt LastEditorLname gt lt LastEditorLname gt The last name of the last person who edited the content block For example lt LastEditorLname gt Johnson lt LastEditorLname gt lt DisplayStartDate gt lt DisplayStartDate gt The content block s start date It is formatted as a string that represents Ektron CMS400 s display of the date lt FolderlD gt lt FolderlID gt The ID of the folder in which the content block is contained For example lt FolderID gt 0 lt FolderID gt lt ContentStatus gt lt ContentStatus gt The status of the content block lt Language gt lt Language gt The language of the content block For example lt Language gt 1033 lt Language gt lt DisplayDateModified gt lt DisplayDateModified gt edited It is formatted as a string that represents Ektron CMS400 s display of the date For example lt DisplayDateModified gt 1 19 2005 4 18 06 PM lt DisplayDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt The content block s end date It is formatted as a string that represents Ektron CMS400 s display of the date For example lt DisplayEndDate gt 12 31 9999 12 00 00 AM lt DisplayEndDate gt Here is how the raw XML list summary output appears before an XSLT is applied Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 453 XML List Summary Function lt Content gt lt
456. lt TD gt lt php ecmSearch Marketing 1 search display php 25 200 Search Verdana 808080 2 0 gt lt TD gt lt TR gt Search Display Function The search display custom function created the area where all the search results show after the search has been executed Here is the format of the ecmSearchDisplay function lt php ecmSearchDisplay MaxNumbers StyleInfo ShowDate gt This function is basically the same as the Search Display function in ASP See Search Display Function on page 438 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below Search Display Function Example lt tr gt lt td gt lt php ecmSearchDisplay 0 1 gt lt td gt lt tr gt List Summary Function The list summary function is used to display the list of content summaries on a Web page Here is the format of the list summary function lt php ecmListSummary Folder Recursive ShowSummary StyleInfo OrderBy ShowInfo MaxNumber Spare 1 Spare2 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 527 This function is basically the same as the List Summary function in ASP See List Summary Function on page 442 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below List Sum
457. m Parameter To make this form block dynamic select ekfrm When you do this control uses the form block passed as a URL parameter Used in ASP NET only of seconds Sets the amount of time the server control s data is cached The default is 0 Cachelnterval zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the Used in ASP NET only CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Add Validation When checked adds Validation to your main runat server form Used in ASP NET only Include Form Tags Determines if tags are generated automatically or manually See Also Automatic versus Manual Generation of Form Tags on page 119 Used in ASP NET only Hide Used to hide a form in design time and run time Used in ASP NET only Checked Hide form go Unchecked Show form Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Used In ASP NET only Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 340 Field Description Style Positioning Info Set position information of a cont
458. m tags manually This function is basically the same as the Form function in ASP See Form Function on page 485 for details The only differences between the JSP function and the ASP one are the formTagReqd parameter and the syntax for implementing it The JSP example is below SEES lt td gt lt ecmFormBlock 1 true gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 551 Language Select Function This function lets a visitor to your Web site select a language in which to view the site Here is what the function looks like when published on a Web page Site Language English US Danish Enc French Standard German Standard Shown here is the format of the ecmLanguageSelect function lt ecmLanguageSelect gt This function is basically the same as the Show Site Language function in ASP See Show Site Language Function on page 494 for details The only difference between the JSP function and the ASP one is the syntax for implementing it Login Function This function is responsible for displaying the following buttons on the Web page y Preview content was published Button Name Description Login When user is not logged into Ektron CMS400 NET this button appears Click this button to let the user log in to the application Logout Once logged in this button replaces the login butt
459. mary Example lt TR gt lt TD gt lt PHP ecmListSummary Marketing News 0 1 Title asc DateModified 0 gt lt TD gt lt TR gt Archive List Summary Function The Archive list summary function displays on a Web page a list of content summaries for archived content blocks For example you might have a current news page and an archived news page Use the List Summary Function to display current news and this function to display older news stories On the Content Block schedule screen the user must set an End Date then choose the Archive and Display option to have the content blocks appear via this function This function has the same parameters as the List Summary Function See List Summary Function on page 527 for details Single Summary Function The single summary function is used to display the summary of one content block in the Ektron CMS400 NET Web site instead of a list of all the summaries in a content folder Seen below is the single summary function lt php ecmSingleSummary ContentID ShowSummary StyleInfo ShowInfo Sparel 7 gt This function is basically the same as the Single Summary function in ASP See Single Summary Function on page 456 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below Single Summary Example lt TR gt lt TD gt lt PHP ecmSingleSumma
460. mb Server Control cccccccccseeeeees 69 BreadCrumb Server Control Properties cccsssseeeeeeeees 69 Using the BreadCrumb Server Control ccccccssssseeseeeeeees 71 BusinessRules Server Control sssssssssssecceeeeeeeeeeeees 73 BusinessRules Server Control Properties ccssssseeeeeeee 73 Calendar Server Control cccccceceseeeeeeeeeeeeseeeeesesssssseeeeeeeees 75 Calendar Server Control Properties eccessseereesssseeneees 76 Calendar Style SHG si scciciscsecccssscasescncsesaceseecasnncesenxnceasseneasuaccess 80 Collection Server COmtrOl ccccceseeeeeeeeeeeeseeeeeeeseeseseeeeeeees 82 Collection Server Control PropertieS ccccsssseecesesseereees 82 Example of ecmNavigation Display ccccssccceeeeeeeeeceeeeeeeeeeees 85 ecmNavigation ASL COS nenneso ninna EAN 85 Example of ecmTeaser Display wcsccicicscccsnsitsteeseannatenrvennnntcncnnemenrene 85 ecmTeaser XSL code cccccccsteeceeeeeeeeneeeeeeeeseeeeeeeesessneeeeeneees 86 Retrieving the XML Structure of a Collection s eeeee 86 Using the Collection Server Control Programmatically Exam cs cde tac eas na dente E E T 87 Content Analytics Server Control cs eseeeeeeeeeeeeeeeeees 89 Content Analytics Server Control Properties s s0e 89 EURO MPTOP GMCS xcccttcrsectessisstacetescusaascorsraieraederszeapdactesessinatacecereigntacs 89 ContentBlock Server
461. menugraphic jpg gt gt Customizing the Menu s Appearance You can customize a menu s appearance such as the font style color and size So you have the flexibility to coordinate a menu with the design your Web site To customize a menu in Ektron CMS400 NET you can change the ek_Menu js file ek_Menu js You can change the look and feel of a menu by changing the ek_menu js file If you used the default settings when installing Ektron CMS400 NET this file is in webroot cms400demo Workarea java Fora description of the ek_menu js file see ek_Menu js on page 496 XML Menu Function The ecmGetMenuXML function wraps XML around the properties of a menu created in the Ektron CMS400 NET Workarea Once created you can use the XML to display the menu The ecmGetMenuXML function allows you to easily define how the menu data appears on the Web page lt ecmGetMenuXML int id gt This function is basically the same as the XML Menu function in ASP See XML Menu on page 499 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below lt ecmGetMenuXML 1 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 554 Metadata Function The metadata function is used to display the metadata for one or more content blocks in the Ektron CMS400 NET Web site Inserting this custom function allows you t
462. meta name Keywords content CcMs200 content management solution business users developers benefits Ektron login gt In this example all metadata from content block ID 1 and 2 is displayed lt ecmMetaData 1 title 2 keywords gt fj metadata 1 Notepad loj xj File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cmMs200 Login Informations Title gt lt meta name Keywords content CMs200 content management solution business users developers benefits gt lt head gt lt body gt lt body gt lt html gt In this example all the metadata from content block ID 1 will be displayed except for the title Also all the metadata for content block ID 2 is displayed except its keywords Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 492 Metadata Function lt ecmMetaData 1 2 title keywords gt fj metadata 2 Notepad File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cMs200 Sample web site lt Title gt lt meta name Keywords content CMS200 content management solution business users developers benefits gt In this example all metadata from content block ID 1 is displayed and all metadata from content block ID 2 is displayed except its title and keywords
463. mmaries formatted for RSS Syndication Shown here is the format of the RSS summary function lt ecmRssSummary Folder Recursive OrderBy Asc Desc MaxNumber gt A list and description of the attributes are shown in this table Attribute Description Options Folder This is the folder the summary information will come Any folder from Recursive Allow the tag to get summary info from the child 0 Not Recursive folders 1 Recursive OrderBy ASC DESC Order the hyperlinks by Title DateModified DateCreated Startdate AuthorFname AuthorLname Order the hyperlinks in ascending or descending Title asc order Title desc MaxNumber Maximum number of summaries returned 0 Unlimited RSS Summary Example Shown below is an example of the eemRssSummary function in an ASP Web page lt TR gt lt TD gt lt lt DD gt lt TR gt ecmRssSummary CMS400Demo 0 Title asc 0 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 460 RSS Summary Function The previous example has the following properties Displays summaries from the CMS400Demo folder Not recursive The results will be displayed in ascending order by title Unlimited results will be shown Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 461 RSS Summary Function Here is
464. mmary Function The single summary tag is used to display the summary of one content block in the Ektron CMS400 NET Web site instead of a list of all the summaries in a content folder Seen below is the single summary tag lt cfmodule template request ecm AppPath ecmSingleSummary cfm ContentID ShowSummary 1 StyleInfo ShowInfo This function is basically the same as the Single Summary function in ASP See Single Summary Function on page 456 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below Single Summary Example lt TR gt lt TD gt lt cfmodule template request ecm AppPath ecmSingleSummary cfm ContentID 14 ShowSummary 1 StyleInfo ShowInfo DateModified gt lt TD gt lt TR gt Collection Function The collection function is used to display the list of links that were created as a collection in the Ektron CMS400 NET Workarea The ecmCollection function is highly customizable allowing you to easily define how the collection data will be displayed on the Web page Shown here is the format of the ecmCollection function lt CFMODULE template request ecm AppPath ecmCollection cfm Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 509 id 2 displayFunction ecmTeaser Example Using This function is basically the same as the Collection function in ASP See
465. mple Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 589 lt validate gt lt regexp gt d lt regexp gt validate gt To construct the lt validate gt element use the same expression element options as lt calculate gt See Also Defining a Calculation on page 588 Defining an Error Message Use the lt errormessag localeRef id gt element to define a message to display when the data is not valid For example Must be a number between 1 and 10 inclusive The text may be within the lt errormessage gt tags or referenced using localeRef into the localeNNNN xm file Defining Custom Validation NOTE to HTML forms This section only applies to the Data Design of a Smart Form it does not apply Use the lt custom gt element to change the standard values that appear in the following fields of the Custom Validation dialog Field Screen image Data Type Data Type Data Type Plain text CE URL 43i 0 Whole number Ea Decimal number Floating point number Examples Examples m Number between two values lt lt and lt Y Must equal another number gt lt Must not equal another number gt lt Maximum text length string lenath lt To change the list of options modify the lt custom gt element of the cms_config aspx file This section describes the lt custom
466. n the designer window will have absolute positioning Here is an example lt body MS_POSITIONING GridLayout gt lt form id Form1 method post runat server gt lt asp Button id Button1 style Z INDEX 101 LEFT 160px POSITION absolute TOP 80px runat server Text Button gt lt asp Button gt lt asp Button id Button2 style Z INDEX 102 LEFT 480px POSITION absolute TOP 88px runat server Text Button gt lt asp Button gt lt asp GridView id GridViewl style Z INDEX 103 LEFT 208px POSITION absolute TOP 152px runat server gt lt asp GridView gt lt form gt lt body gt In Grid layout you can position your controls like a WYSIWYG editor with no knowledge of HTML However because absolute positioning is not rendered consistently by all browsers the page layout can be flexible based on the size of other controls on the page and the Web browser window When other controls are dynamically populated such as a GridView controls that appear beneath it in the Web form would be obscured if they were positioned absolutely at design time In addition when utilizing globalization of pages with different languages the size of text areas can vary and cause obstructions Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 583 Customizing Validation Customizing Validation Options In the cms_config aspx file you can specify a set of validation options for plain tex
467. n 553 Additional Documentation in Ektron Knowledge Base 45 553 Displaying a Menu n a Web Page icicccccicsstceesctatessesseceeeetenntan 553 GenerateMenu and DropMemu ccccceeeeeeeeneeeetteeeetenes 553 Customizing the Menu s Appearance cccceeeeeeeeesteeeeetteeeeeees 554 OK MODU einai 554 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 XX XML Menu Function ccccececcesecceseeceeeeceeeseceesceeseeceneeneeeeeeees 554 Metadata FUNGHOT sscccecccdssccceccctncectencetasnccececiasaccencdeusatdersacedacens 555 Search FUNCUOM scsssccsscscssccesscescecscssatsscncesenenercsceaneueasecsncenasecaes 557 Search FUNCUON EXAMS sesinin 558 Search Display FUNCUOM wsccestscicccssesscccsessntscccseccntesenseccntercenstace 558 search Display FUNGCON EX MpPl sicecissatesecstectatessccerseedetascoeseatetzes 558 List S mmary FUNGON scccscsc se saccccccsecscssccescccdscrctececeeceecereecnnes 559 LIST Summary MAMI Esrin naaraan ehe 559 XML List Summary Function cccceeseeeeeeeeeeeeeeeeeeeeeeeneeeees 559 RSS List Summary FUNCOM siisssisisii innisin siss siniasanaa sasia 559 Single Summary Function cccccseseeeeeeeeeeeeeeeeseeeeeeeseeees 560 Single Summary Exam ple vss ccccciornsccaceinakenciidicvensisitisas nes 560 Wep S6rVICE S iccccesssaversistessmsrrarcicsenamenesasastreninaes 561 Introduction to Web Services nssssnnnnennunennnunnnnnnnnnnnnnnnnnnna 561
468. n 6 0 for NET 2 0 Rev 8 555 lt ecmMetaData 1 2 gt fj metadata 1 Notepad ioj xi File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cm5200 Sample web site cmMs200 Login Information lt Tit le gt lt meta name Keywords content CMs200 content Management solution business users developers benefits Ektron login gt lt ecmMetaData 1l title 2 keywords gt fj metadata 1 Notepad _ O x File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cmMs200 Login Information lt Tit le gt lt meta name Keywords content CMS200 content Management solution business users developers benefits gt lt head gt lt body gt lt body gt lt fhtm gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 556 lt ecmMetaData 1 2 title keywords gt File Edit Format Help lt DOCTYPE HTML PUBLIC w3Cc DTD HTML 4 0 Transitional EN gt lt html gt lt head gt lt Title gt cmMs200 Sample web site lt Title gt lt meta name Keywords content CMS200 content management solution business users developers benefits gt Search Function The search function is used to display a text box with a search button on the template When seen on
469. n 6 0 for NET 2 0 Rev 8 600 Operator Description Syntax Example round Rounds the number argument to the integer round nu round 3 14 nearest integer mber Result 3 XPath References To learn more about XPath check these Web pages Topic URL W3C Spec XPath 1 0 spec http www w3 org TR xpath Tutorial www w3schools com xpath default asp Quick reference card www mulberrytech com quickref XSLTquickref pdf Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 601 Programmatic Search API Ektron CMS400 NET provides an API that lets you create a programmatic search on users and content For example you could use it to find all membership users whose zip code is 03031 To see an example of the search API go to the developer s page http your Web server cms400demo developer default aspx and click Search gt Programmatic Search Address http flocalhost cms400demo developer default aspx v Go Links Home 3 Demo Site Programming API Login Reference Content Blocks HTML Forms This new set of APT helps to find Users and Contents based on the custom createria This is classified into two Calendars categories ListSummary 1 User Search search thru all the properties of user and custom properties Collections 2 Content Search search thru all the properties of contents Search and metadata informat
470. n Add Web Reference X Ektrontemsreorror In the Add Reference dialog box click Browse Go to Inetpub wwwroot cms400demo Bin To load the standard methods click Ektron Cms UI CommonUI dll1 To load the XML Indexing methods click Ektron Cms Common dll 7 Click Open then OK Adding a New Web Form To add a new Web form follow these steps 1 Open your project in Visual Studio 2005 2 Right click the project 3 Click Add gt Add Web Form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 404 Solution Explorer CM5400Intranet BRESLE Pe Solution CMS400Intranet 1 project Add New Item Add Existing Item Add Reference New Folder Add Web Reference Set as StartUp Project Add Web User Control Debug gt Add HTML Page Save CMS5400Intranet Add Web Service Add Component _ Remove Add Class Rename 4 Click Web Form 5 Inthe code behind add an Imports Ektron Cms UI CommonUI statement Requirements for Standard Methods Ektron CMS400 NET maintains and displays content through the use of Ektron ASPX methods and ASP NET assembly objects To use the methods include the following code in your template lt Page Language vb AutoEventWireup false gt lt Import Namespace Ektron Cms UI CommonUI gt lt Dim AppUI As New ApplicationAPI gt Each line is explained b
471. n CMS400 NET Users Manual gt Working with Menus gt Managing Menus gt Editing a Menu via Navigation Link on a Web Page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 155 Menu Server Control e MenuExample o CMS Dev aes o Book a ASP NET Unleashed a Programming C NET a VB NET How to tc Add or Edit a Edit Menu submenu o News a All Stars Customer a Web Design Firms Enhanced Workflow a Visual Rapid CMS Integration a Ektron Partners and Customers Add or Edit submenu Edit Menu whole menu SampleMenu XSL code For an example of the XSL code used in the SampleMenu click the following link and choose the appropriate version http www ektron com developers cms400kb cfm id 2114 TreeMenu The TreeMenu DisplayXslit lets you display an Ektron CMS400 NET menu as a clickable folder list You can expand and collapse the menu by clicking on the folder icons See below for an example gt MenuExample CMS Developer All Stars Customer Web Design Firms Enhanced Workflow Visual Rapid CMS Integration Ektron Partners and Customers Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 156 Menu Server Control When you are logged in to your Ektron CMS400 NET site two 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 examp
472. n Metadata box is displayed CMS400 Metadata Tag Used to display the Metadata information that is assigned to content Metadata List with exdusions Select the category to retrieve list of content Select the content block to insert into the page 4 Use the following table to assist you with inserting metadata Field Description Metadata List When you select a content ID and click the Add to Metadata List button The content ID is added to this text box This allows you to create a list of content blocks for which the metadata of each content block is added to the page Content ID Enter a valid content ID in the Content ID textbox If you do not know the Content ID you can navigate to it using the Select Category and Select Content Block drop down boxes Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 363 Field Description GenerateDublinCore When enabled this property automatically creates seven of the Simple Dublin Core metadata fields from standard CMS400 NET system properties The default is false Checked Generate Simple Dublin Core metadata fields C Unchecked Do not generate Simple Dublin Core metadata fields The seven fields and how they are associated with the CMS400 NET properties is explained in Using the Simple Dublin Core Metadata Standard on page 168 Select Category The drop down list contains
473. n function the following tags are created around the properties of each item in the collection XML Tags Description lt Content gt lt Content gt Declares a new section of content in the XML collection lt ID gt lt ID gt The content block ID For example lt ID gt 27 lt ID gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 471 XML Collection Function XML Tags Description lt Title gt lt Title gt The title of the content block For example lt Title gt HTML for the World Wide Web with XHTML and CSS lt Title gt lt QuickLink gt lt QuickLink gt The quicklink associated with the content block For example lt QuickLink gt cms400demo collection aspx id 27 lt QuickLink gt lt Teaser gt lt Teaser gt The summary of the content block For example lt Teaser gt Th asiest HIML book weve seen that still manages to be comprehensive lt Teaser gt lt Html gt lt Html gt All of the HTML content contained in a content block See Also GetHtml on page 471 For example lt Html gt lt em gt ASP NET Unleashed Second Edition lt em gt is really big really thorough and really lt i gt good lt i gt The explanations are simple and clear as anything weve seen ina NET book The sample code addresses virtually every facet of ASP NET development from little gems code for validating credit cards to full fledged web stores Best of all
474. n in ASP See Random Summary on page 477 for details RSS Collection Function The RSS collection function is used to create an XML list of links that were created as a collection in the Ektron CMS400 NET Workarea and display them in RSS Syndication Shown here is the JSP format of the ecmRssCollection function lt ecmRssCollection int id gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 548 This function is basically the same as the RSS Collection function in ASP See RSS Collection Function on page 469 for details Add Content The add content function allows you to programmatically add a new content block to Ektron CMS400 NET without the need of logging in Here is the format for the add content function lt ecmAddConient String UserName Siring Password Siring Domain String content_title Siring content_comment Siring ContentHtml Siring SummaryHTML Siring ContentLanguage String FolderlID String GoLive String EndDate String Metalnfo gt This function is basically the same as the Add Content function in ASP See Add Content on page 424 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below Add Content Example The following is an example of the add content function in a template ZUE lt td gt lt ecmAddContent admin admin Conten
475. n server control paints a login button on the template when displayed in a browser When the Login server control is inserted and the project is built the control displays the following buttons on a Web page Button Description Login 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 CMS400 Web site After a user logs in this button replaces the login button to let the Logout user log out When logged in this button appears under the logout button Workarea allowing the user to access the Workarea Lets the user preview the entire Web site as if all checked in content were published For more information see the Ektron CMS400 NET User Manual section Logging In and Out gt Site Preview y Preview XPreview Turns off site preview mode Help Launches online context sensitive help for Ektron CMS400 NET This subsection contains the following topics e Placing a Login Button on page 143 e Login Server Control Properties on page 144 Placing a Login Button 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 CMS400 site without the public being able to access the page Ektron CMS40
476. n the JSP function and the ASP one is the syntax for implementing it The JSP example is below List Summary Example lt TR gt lt TD gt lt ecmListSummary Marketing News false true Title asc DateModified 0 gt lt TD gt lt TR gt XML List Summary Function The XML List Summary function wraps XML around the properties of a list of content created as a list summary in the Ektron CMS400 NET Workarea Once created you can use the XML to display the list summary information The ecmListSummaryXML function allows you to easily define how the list summary data appears on the Web page lt ecmListSummaryXML String Folder int Recursive String OrderBy int MaxNumber Siring ObjType Siring SummaryType gt This function is basically the same as the List Summary XML function in ASP See XML List Summary Function on page 450 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below lt ecmListSummaryXML CMS400Demo 0 Title asc 0 folder gt RSS List Summary Function The RSS summary function is used to create an XML list of content summaries for RSS Syndication Shown here is the format of the RSS list summary function lt ecmRssSummary java lang String Folder boolean Recursive java lang String OrderBy int MaxNumber gt Ektron CMS400 NET Developer Reference Manual
477. n the page that displays search results You may place it on the same page as the search tag or a separate page lt tr gt lt td gt lt ecmSearchDisplay 0 1 gt lt td gt Sene This search display example has the following properties e Returns unlimited results when the search is performed e Contains no style information e Shows the last modified date of the content Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 438 Search Display Function When the tag is added to a template and a search is performed the results appear similar to the following Search Results for RC International Microsoft Internet File Edit View Favorites Tools Help Q pack X 7 x B TN jO Search ser Address a http 127 0 0 1 cmssample search display asp RC international Home Products Support News Careers Search Display with Default Content You can also set up the search display tag to display a default content block if a search is not performed Then if a search is performed the results replace the content block The sample code below does that lt tr gt lt if Request Form ecmsearchtype lt gt then gt lt td gt lt ecmSearchDisplay 0 gt lt td gt lt else gt lt td gt lt ecmContentBlock 1 gt lt td gt lt end if gt JEn Search Display Attributes Listed below are the attributes fo
478. nd that number of pages only the most recent pages appear The older pages disappear from the trail To allows an unlimited number of breadcrumb trail items on this Web form enter zero 0 MetadataName Specify the name of a Metadata Type that you want to String associate with the page For more information see BreadCrumb Metadata Type on page 65 Mode Allows you to make the breadcrumb trail appear as non String hyperlinked plain text The default is Normal Normal breadcrumb trail is hyperlinked PR gt Webform gt search gt Meta DisplayOnly breadcrumb trail is plain text PR gt Webform gt aN gt Meta Separator Enter one or more characters to separate the items ina String breadcrumb trail on this Web form The default character is the greater than sign gt Dev gt ebForm WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag BreadCrumb Metadata Type To associate a Metadata Type with the BreadCrumb server control follow these steps Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 65 BreadCrumb Server Control 1 Inthe properties window for the BreadCrumb server control
479. ndexSearch Server Control vs Search Server Control on page 218 e IndexSearch Server Control Properties on page 218 e SearchParmXML Property on page 225 e Using the IndexSearch Server Control Programmatically Example on page 228 e Programmatically Predefined General Search Results Replaced By Specific Search Results on page 231 e Turn Off Caching In Netscape Navigator and Mozilla Firefox on page 234 IndexSearch Server Control vs Search Server Control See Search Server Control vs IndexSearch Server Control on page 183 IndexSearch Server Control Properties The IndexSearch server control properties are described in this table Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 218 IndexSearch Server Control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Description Data Values Type Authenticated Indicates if you are logged in String to the CMS Explorer and can use it to browse to the folder needed for the FolderID property See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 ButtonlmgSrc If you want to display an String image on the submit button enter the server path to it See Also Button Image Source Examples on page 199 ButtonT
480. ndicates if you are logged in to String the CMS Explorer and can use it to browse to the folder needed for the FolderID property See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Cachelnterval Sets the amount of time the Integer server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 ContentParameter Checks the QueryString for this String value and replaces the list summary with a content block when specified Leave blank to always display the list summary Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 136 ListSummary Server Control Property Description Data Type Values ContentType Determines the type of content that appears in the list summary The default is Content String AllTypes displays all of the content types for the given folder Content displays a list of content blocks Forms forms appear in the list summary Archive_Content archived content blocks appear in the list summary Archive_Forms archived forms appear in the list summary Assets assets such as offices documents appear in the list summary Archive_Assets archived assets
481. ndicates if you are logged in to the CMS Explorer and can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 String Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Integer ClassName 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 CMS400Demo Workarea csslib sitemap css Then add the class name to the property String FolderlD The folder ID for the starting point of the sitemap To choose the root folder enter O zero Integer Hide Used to hide the Sitemap in design time and run time True Hide Sitemap trail False Show Sitemap trail Boolean Language Set a language for viewing content The language property shows results in design time in Visual Studio and at run time in a browser Integer MaxLevel Set the maximum amount of levels to show Set it to 0 zero for unlimited integer SuppressWrapperTags Suppresses the output of the span div tags around the control The default is False True
482. ne How Pages Associated with the Form Appear on a Breadcrumb Trail on page 62 Properties that Determine a Breadcrumb Trail s Appearance 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 Property Determines this aspect of For more information see the breadcrumb trail s appearance on this form CurrentPagelndicator Symbols or characters to CurrentPagelndicator on identify the current page page 63 DisplayStyle Whether it appears horizontally DisplayStyle on page 63 or vertically LinkLastltem Whether the last item is a LinkLastltem on page 64 hyperlink LinkTarget The type of window that LinkTarget on page 64 appears when a user clicks an item Maxltems The maximum number of items Maxltems on page 65 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 61 BreadCrumb Server Control Property Determines this aspect of For more information see the breadcrumb trail s appearance on this form Mode whether the breadcrumb trail Mode on page 65 appears as hyperlinked text or plain text Separator Symbols or characters used to Separator on page 65 separate items Properties that Determine How Pages Associated with the Form Appear on a Breadcrumb Trail Use these properties define how any p
483. ned in the content block For example lt Comment gt move picture below text lt Comment gt Here is how the raw XML Collection output appears before an XSLT is applied Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 474 XML Collection Function lt Content gt lt ID gt 24 lt ID gt lt Title gt ASP NET Unleashed lt Title gt lt QuickLink gt cms400demo collection aspx id 24 lt QuickLink gt lt Teaser gt lt p gt lt em gt ASP NET Unleashed Second Edition lt ems gt is really big really thorough and really lt i gt good lt i gt lt p gt lt Teaser gt lt Html gt lt Html gt lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt lt DateModified gt 1 12 2005 7 53 31 PM lt DateModified gt lt EndDate gt 12 31 9999 12 00 00 AM lt EndDate gt lt LastEditorFname gt Application lt LastEditorFname gt lt LastEditorLname gt Administrator lt LastEditorLname gt lt Hyperlink gt lt a href cms400demo collection aspx id 24 gt ASP NET Unleashed lt a gt lt Hyperlink gt lt DisplayStartDate gt lt DisplayStartDate gt lt FolderID gt 0 lt FolderlID gt lt ContentStatus gt lt ContentStatus gt lt Language gt 0 lt Language gt lt DisplayDateModified gt 1 12 2005 7 53 31 PM lt DisplayDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt lt EndDateAction gt Archive_Expire lt EndDateAction gt lt Comment gt lt Comment gt lt Content gt lt
484. nformation about using metadata to assign a list of related content to a content item see the Ektron CMS400 NET Administrator manual section Managing Content gt Metadata gt Types of Metadata gt Related Content Metadata OrderKey Sort the list by one of the must be one Title the order of the content s values of the values title DateModified the last date the content was modified DateCreated the date the content was created LastEditorFname the last editor s first name LastEditorLname the last editor s last name OrderOfThelds preserves the content ID order based on the list in the Contentlds property Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 104 ContentList Server Control Property Description Data Type Values Random Set to True if you want to Boolean True randomly display one content False block in the specified folder The content changes each time a user views the page SuppressWrapper Suppresses the output of the Boolean True Tags span div tags around the False control The default is False True Suppress wrap tags False Allow wrap tags WrapTag Allows a developer to specify a String Span The lt span gt tag is used to server control s tag The default is Span designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want
485. nk load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting MaxCharacters The maximum number of characters Integer the input text box accepts when doing a search MaxResults The maximum number of content Integer EnableAjax on blocks returned O unlimited page 187 When the EnableAjax property is set to true the way this property works changes from the maximum amount of results to the maximum results per page This takes advantage of Ajax s ability to have paging in the searches If zero is entered all results appear on the same page MaxTeaserLength An optional search result formatting Integer parameter that limits the length of any returned content item s teaser summary O unlimited Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 193 Search Server Control Property Description Data For more Type information see OrderBy The order of the list to be returned For String example you want to sort search results by last modified date Title The title of the content block ID The XML content block ID number Date Created The date the content block was created Date Modified The date the content block was last modified LastEditorLName The last editor s last name LastEditorFname The last editor s first name
486. nn 115 DesignTimeDiagnostic Server Control Properties 116 FormBlock Server Control ccssessseeseeeeeeeeeeeeeeeeeeeees 117 FormBlock Server Control Properties csssseeeeeeseeeeeees 118 Automatic versus Manual Generation of Form Tags 119 Forum SOrver CON O scissicinscacscscncasssiscassersnnassaanscocssscananansans 120 Server Control Properties eccccssseeeeeesssseeeseesseeeeeeeeees 120 EKO MiP ROPOMleS nannaa searing deitiniadasisapneadasieunansasiotails 120 Updating ithe Page Command cicssscasececcssczctecectsnststsecaterevecderseeitees 121 HTMLEditor Server Control s secceeceesssseeeceeeeeeeeeseseneees 122 INrOdUCHUOMins aa a a aaraa aaae 122 Working with Ektron CMS400 NET Content 123 Working with Non Ektron CMS400 NET Content eeeeeee 124 Uploading Files with an Action Page 124 HTMLEditor Server Control Properties csssseecessseeeees 124 SHOWGC MS TOGO AN anhaa irannctesachoauncdelactiemunceiasiasanees 127 TOODI LEVE knra eaa aa 128 LanguageAPI Server Control cccccccesesseeeeeeeeeeeseeeeeeeeees 130 LanguageSelect Server Control vs LanguageAPI Server Con Wole 130 LanguageAPI Server Control Properties cccessseeeeeees 130 Code Behind Only Properties ccsssseeeeeessseeeeeeeeseeeeeees 131 Using the LanguageAPI Server Control Programmatically 132 LanguageSelect Server Control sccssssseeessseee
487. nt 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Integer DisplayXslt Specify an external XSLT file See Also The OverrideXslt and DisplayXslt Properties on page 96 String DynamicParameter To make this blog post dynamic select id When you do this server control uses the blog post passed as a URL parameter String Hide Used to hide language select dropdown box and label in design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Boolean Language Set a language for the Language Select Box The language property shows results in design time in Visual Studio and at run time in a browser Integer OverrideXslt An internal Xslt file used to display XML content if one is not identified in the Xslt property See Also The OverrideXslt and DisplayXslt Properties on page 96 must be one of these values default one two three ShowType This property is for future use SuppressWrapperTags Suppresses the output of the span div tags around the control The default is False True Suppress wrap tags False Allow wrap tags Boolean Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 49
488. nt for finding other words or information An example is lt metadata gt lt meta id 3 gt Title lt meta gt lt metadata gt Where ID is the metadata definition ID whose value is being set The value is set between the meta tags and the meta tag is repeatable for as many metadata definitions as you want to set for the given content block ErrString If there is a error then errString contains the error otherwise errString is empty Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 408 Add Content Example The following is an example of the add content function in a template Dim Dim Try Protected Sub Page_Load ByVal sender As Object ByVal e As System EventArgs Handles Me Load m_apiObj As Ektron Cms UI CommonUI ApplicationAPI newContentId As Integer 0 m_apiObj New Ektron Cms UI CommonUI ApplicationAPI newContentId m_apiObj AddContent _ Wey Gln ac admin wie f Gonitbent tlen Comment this content added through API This is the lt b gt body lt b gt of the content This is the lt i gt summary lt i gt for the content SLOSS wou OSR UONG A TEA n f lt metadata gt lt meta id 3 gt ContentTitle lt meta gt lt metadata gt w Literall Text Content Added ID newContentId ToString Catch ex As Exception Literall Text Error AddContent Failed ex Message Fina
489. nt for the event description The following example shows the view event font in red Friday April 01 2005 Wednesday June 01 2005 4 12 2005 Football Shafer Stadium Start 12 00 AM Eng 12 00 AM 55 2005 Hockey Game VWA Start 12 00 AM End 12 00 AM Manchester Monarchs take on the Portland Pirates e font size 9pt e font family Arial ILViewDate The date for the inline view The following example shows the view date background in red Friday April 01 2005 Wednesday June 01 2005 Football Shater Stadium Start 1200 AM End 12 00 AM Hockey Game VWA Start 1200 AM End 12 00 AM Manchester Monarchs take on the Portand Pirates e border right 9999ff 1px solid e border top 9999ff 1px solid e font weight bold e font size 9pt e background ddddff e border left 9999ff 1px solid e font family Arial Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 633 Style Class Description Attributes and Default Settings ILViewDayCell The cell the events are listed in The following example shows the view day cell in red Friday April 01 2005 Wednesday June 01 2005 4 12 2005 e border right 9999ff 1px solid e border top 9999ff 1px solid e font weight bold e font size 9pt e background eeeeff e border left 9999ff 1px solid e border bottom 9999ff 1px solid e font family Arial
490. nt types see Using the Advanced Search Properties on page 206 Searches can also be performed on content that utilizes the Searchable Property metadata type You can make this search parameter available to users performing a search or hide it See Also ShowExtendedSearch on page 202 To search XML content that is content created with Smart Forms use the IndexSearch server control See Also Search Server Control vs IndexSearch Server Control on page 183 This subsection contains the following topics e Search Server Control vs IndexSearch Server Control on page 183 e Search Server Control Properties on page 183 e Property Usage Table on page 184 e Property Descriptions on page 185 e Text Box Examples on page 199 e Button Image Source Examples on page 199 e Search Button Text Examples on page 200 e Display Examples on page 201 e ShowDate Examples on page 202 e ShowExtendedSearch on page 202 e Using the Advanced Search Properties on page 206 e Fieldset Properties on page 212 e Retrieving the XML Structure of a Search on page 213 e Displaying Search Results on a Separate Page on page 214 e Using a Style Sheet on page 216 e Formatting the Search Server Control on page 217 Search Server Control vs IndexSearch Server Control The Search server control lets users search your Web site for HTML Content Both active and archived DMS assets fo
491. ntent ID Enter a valid content ID in the Content ID textbox If you do not know the Content ID you can navigate to it using the Select Category and Select Content Block drop down boxes GenerateDublinCore When enabled this property automatically creates seven of the Simple Dublin Core metadata fields from standard CMS400 NET system properties The default is false Checked Generate Simple Dublin Core metadata fields C Unchecked Do not generate Simple Dublin Core metadata fields The seven fields and how they are associated with the CMS400 NET properties is explained in Using the Simple Dublin Core Metadata Standard on page 168 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 360 Field Description Select Category The drop down list contains a list of content folders If you insert the content ID you do not need to select a category Select Content Block The drop down box is populated with a list of all the content block titles within that folder When a title is selected the content ID textbox is filled with that content block s id number If you insert the content ID you do not need to select a content block Dynamic Content Parameter Gets or sets the QueryString parameter to read a content ID dynamically 5 6 When completed click insert The following line appears in the lt body gt of the HTML code lt cms MetaData id M
492. ntent is saved and a confirmation message is displayed If you receive a message other than one confirming your content has been saved check your settings and try again Using the Ektron CMS400 NET Extensions Once the Macromedia Extension Package has been installed for Dreamweaver you can create and edit templates for Ektron CMS400 NET The following subsections are contained in this section e Custom Function Symbols on page 256 e Ektron CMS400 NET Command Menus on page 260 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 255 Custom Function Symbols During the process of inserting functions symbols are used to represent the custom display functions The following table explains each symbol and for which scripting languages the functions are available Symbol Represents ASP NET ASP CF More JSP PHP Information eiin Analytics 7 Analytics on af age 266 Analytic Fea Blog Blog on rate v om Blo Blog Calendar BLOG 9 9 we Calendar vA on page 272 Blog Blog BLOG akatesories ategories Categories vA Categories on page 275 Blog Entries Blog Entries on BLOG g g See Enies v page 278 BLOG Blog Posts Blog Post on GaP Post vA page 281 BLOG Blog Recent Blog Recent afecntots entPosts Posts vA Posts on page 284 BLOG Blog Roll Fi Blog Roll on ee Roi Roll page 287 BLOG Blog RSS Blog RSS
493. ntrols The following example shows the title area for the blog categories in red General Information Cardiology Oncology Neurology Note Changing this class changes the title area for Blogroll and Recent Posts Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 614 Style Class Description div blogCategories ul The link area for the blog s Categories Affects the Blog and BlogCategories server controls The following example shows the link area for the blog s Categories in red Categories blogcatlink The blog s Categories links Affects the Blog and BlogCategories server controls The following example shows the blog s Categories links in red Categories General Information Cardiology Oncology Neurology Blog Recent Posts Styles div blogSidebar h4 The title area for the blog s Categories Affects the Blog and BlogRecentPosts server controls The following example shows the title area for the blog categories in red Test Post What is Guillain Barre Syndrome GBS World Population to reach 6 5 Billion Welcome to ektron Medical Note Changing this class changes the title area for Blogroll and Categories Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 615 Style Class Description div blogRecentPosts ul blogrecentlink The link area for recent posts
494. o generate the list of metadata that is edited by the authors and insert it in the source of the Web page Shown below is an example of what the metadata custom function looks like lt ecmMetadata Siring itemlist java lang object spare1 gt This function is basically the same as the Metadata function in ASP See Metadata Function on page 488 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP examples are below To include both content blocks metadata in the web page an ecmMetadata call would look like this lt html gt lt head gt lt ecmMetadata 1 2 Title Content Type gt rest of head lt head gt lt body gt rest of web page document lt body gt lt html gt In the above example the ecmMetadata call is contained in the lt head gt of the HTML document since all HTML metadata is required to exist there Once the Web page is viewed the Web page source will contain the following information lt html gt lt head gt lt Title gt Welcome to Our Home Page lt Title gt lt meta name Keywords content Home page company Welcome Announce product widget gt lt meta http equiv Content Type content text html charset iso 8859 1 gt rest of head lt head gt lt body gt rest of web page document lt body gt lt html gt Ektron CMS400 NET Developer Reference Manual Versio
495. oards e http dev ektron com forum aspx Use the Forum to exchange ideas and information about Ektron Inc products Ektron Blogs e http dev ektron com blogs aspx With Blogs learn what developers and engineers at Ektron Inc are thinking Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 2 Ektron FileShare Tutorials http dev ektron com fileshare aspx The Ektron FileShare is a system designed to allow developers to share server controls code snippets classes and other tools that may be useful to other developers http dev ektron com tutorials aspx This area provides video tutorials to help you learn how to use CMS400 External Resources http dev ektron com template aspx id 2756 The sites listed on this page contain tutorials developer news or other materials that might be useful to you while developing your CMS400 NET site These sites are not run by Ektron Inc Knowledge Base Articles http dev ektron com kb_search aspx These articles provide information about all Ektron Inc products Ektron s Developer Training Course http Awww ektron com cms400 web cms aspx id 2653 Why should you become a Certified Ektron Developer Learn best practices for deploying an Ektron CMS400 NET driven Web site Learn how to extend CMS400 NET to do more of what you want See real world examples of how an Ektron CMS is deployed Bean expert on the most comm
496. ocalhost cms400demo cms400demo sln 2 The sample site project opens 3 To work on a template page click it from the Solution Explorer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 7 article aspx 1 AssemblyInfo vb AQ ce eae css Ad DHTML_Menu_Styles css Al ekcalendar css employee_information aspx hr aspx H EE hr_forms aspx lo Solution Explo 2 Class view E5 Search Properties a x corporate aspx File Properties gt 2i m Ej When you select a page its E appear in the Properties area below Solution Explorer and the page appears in the center of the screen A control s properties include several standard NET properties along with Ektron specific ones The Ektron properties are labeled as illustrated below Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 gp Solution Explorer Class view al Search Properties a x FormBlock1 ServerControlLibrary FormBlock 7 CssClass Font ForeColor E Behavior Accesskey Enabled EnableViewState TabIndex ToolTip visible Authenticated DefaultFormID DefaultFormID The default ID of the Form Block to be displayed Setting Up a Template To create a new template aspx page follow these steps 1 Click Project gt Add Web Form 2 On the Add New Item screen click Web Form and assign a name Ektron CMS400 NET Developer Reference
497. of My Life This is the Story of My Life and I Write it Everyday 02 14 2006 Writing a Masterpiece Music I m gonna write the melody That s gonna make history yeah and when I paint my masterpiece I swear I show you first There just ain t a way to see Who when why or what will be Til now is then it s a mystery A blessing and a curse Or something worse yeah 2 2 16 2 Scott s Blog Toby Tyler s Blog Posted by John Edit at 02 14 2006 10 37 55 Music Artist of the Week AM Comments o Best Week Ever The Blog server control is easy to use Simply add it a Web form and set the BlogPath property to the folder location in the CMS400 NET Next choose whether to enable RSS and whether to show the header and tagline If you want to further customize the look of the blog you can edit the Blog css file located in webroot CMS400Demo Workarea csslib Blog Server Control Properties The following table explains the properties of the Blog control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 44 Blog Server Controls Property Value Data Type BlogID The ID of the blog in CMS400 NET For example 41 If you don t know the ID of the blog use the CMS Explor
498. of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting Random Set to True if you want to randomly display one Boolean collection item The item changes each time a user views the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 84 Collection Server Control Property Description Data Type WrapTag Allows a developer to specify a server control s String tag The default is Span Span The lt span gt tag is used to designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Example of ecmNavigation Display The following is an example of a collection being used as a navigation menu Products RC Sportster RC Cheetah RC Lilly RC Redstar ecmNavigation XSL code Below is the XSL code that is used to create ecmNavigation Display You can use this code as the basis to design your own XSLT lt xml version 1 0 encoding ISO 8859 1 gt lt xsl stylesheet version 1 0 xmlns xsl http www w3 org 1999 XSL Transform gt lt xsl template match
499. ogEntries server controls The following example shows the header area for the blog in red Ektron Medical Blog Blogging your health What is Guillain Barre Syndrome GBS General Information Neurology h1 blogTitle The title of the blog Affects the Blog and BlogEntries server controls The following example shows the blog title in red Blogging your health What is Guillain Barre Syndrome GBS General Information Neurology h2 blogSubhead The subhead Tagline of the blog Affects the Blog and BlogEntries server controls The following example shows the blog Subhead in red Ektron Medical Blog What is Guillain Barre Syndrome GBS General Information Neurology Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 609 Style Class Description span date The date in the blog title Affects the Blog and BlogEntries server controls Entry Styles div entry The border line that separates blog entries Affects the Blog and BlogEntries server controls h3 entryTitle The title area for blog entries Affects the Blog and BlogEntries server controls The following example shows the title area for blog entries in red Ektron Medical Blog Blogging your health General Information Neurology div entryBody The blog entry body Affects the Blog and BlogEntries server controls div entryFooter The blog entry footer information
500. ogout button Login Function on page 524 Menu Functions the menu items properties DropHTMLMenu Used to display a DHTML menu DHTML Menus on page 539 GenerateMenu Works with DropHTML menu to display DHTML menus DHTML Menus on page 539 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu Function on page 541 Metadata Functions Metadata Displays the metadata for the current Web page Metadata Function on page 537 Search Functions Search Inserts a text box with a search button Search Function on page 526 Search Display Creates an area to display search results Search Display Function on page 527 Language Functions Language Select Lets a site visitor select a language in which to view site Language Select Function on page 541 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 523 Login Function This function is responsible for displaying the following buttons on the Web page Button Name Description Login When user is not logged into Ektron CMS400 NET this button appears Click this button to let the user log in to the application Login Logout Once logged in this button replaces the login button to allow the Z user to log out from the Ektron CMS400 NET Web site Logout Workarea When logged in this button appears under the logou
501. omment area Tell us why you rated the content this below rating scale way ValidationMessage Appears on initial display if user clicks Submit button before selecting rating number Please select a rating before submitting your feedback Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 113 ContentRating Server Control Complete Graph Display Rating Level 5 67 9 You have already rated this content 123456789 6 Total Ratings Complete Graph Properties Property Description Default Text AlreadyRatedMessage Appears in place of the rating scale if You have already rated this content the user previously rated the page RatingLevelLabel Appears at the top of the graph Rating Level TotalRatingsLabel Appears below the graph and lists the Total Ratings number of rating submissions received Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 114 DesignTimeDiagnostic Server Control DesignTimeDiagnostic Server Control 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 e Web Service Path displays the server control Web service path in your web config file e Web Service Exists
502. on BreadCrumb BreadCrumb Ektron gt Bread gt Crumb vA on page 293 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 256 Symbol Represents ASP NET ASP CF More JSP PHP Information Calendar Calendar on Y Y page 299 Collection Collection on vA Y page 302 Content Block Content Block vA v4 on page 306 Content Block CMS400 Content List g Content List on ContentList page 310 Content Content Content Rating Rating Rating on page 315 CMS400 Content XSLT Content XSLT ektron Tag vA Tag on XML Content Block page 317 DHTML Menu DHTML Menu ektron Menu Y on page 319 Discussion Discussion CMS400 Forum vA Forum on WA Forum page 326 Display by Display By ektron display by Meta Value Y Meta Value on Metadata page 328 ektron Dynamic Dynamic Content Block Content Block vA Content Block Dynamic URL on page 333 pagename id xx Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 257 Symbol Represents ASP NET ASP CF More JSP PHP Information CMS400 Folder Bread Pi Folder Bread Folder Crumb Crumb on BreadCrumb page 336 Form Content Earm on a Block Y vA page 338 Form Block j Language Language API ektron Lang API API v on page 342 a Language Language Language Select y Sele
503. on for PHP Blog Recent Posts For a description of the Blog Recent Posts function see BlogRecentPosts Server Control on page 56 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog Recent Posts function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Recent Posts Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 284 3 The Insert Ektron CMS400 NET Blog Recent Posts box appears Ektron CMS400 BlogRecentPosts Blog Recent Posts BlogRecentPosts 1 Select the folder or NumberofPosts of seconds CacheInterval Hide O Visible Positioning info GridLayout Style Wrap tag 4 Use the following table to assist you with inserting the Blog Recent Posts function Field Description Control ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box NumberofPosts Sets the number of post links to display of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example
504. on to allow the user to log out from the Ektron CMS400 NET Web site Workarea When logged in this button appears under the logout button allowing the user to access their workarea Preview On Lets the user to preview the entire Web site as if all checked in Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 552 Button Name Description Preview Off Turns off preview mode Shown here is the format of the ecmLogin function lt ecmlogin gt This function is basically the same as the Login function in ASP See Login Function on page 414 for details The only difference is the syntax used to implement the function This is listed below Login Function Example lt tr gt lt td gt lt ecmlogin gt lt td gt lt tr gt DHTML Menus Ektron CMS400 NET s Menu feature lets users create and maintain a dropdown menu system for your Web site The Menu feature lets you display menu options that link to content blocks library assets external hyperlinks and submenus To learn more about menus please refer to the Menu Feature chapter of the Ektron CMS400 NET User Manual Additional Documentation in Ektron Knowledge Base This chapter explains how to implement standard menus that ship with Ektron CMS400 NET Ektron s Web site also provides Knowledge Base articles that explain how to extend the standard menu features Displaying
505. onal Announces the RC Cheetah Show Date This attribute determines if the content block s last modified date appears next to the title This is useful when determining which content block is the most recent You have two choices Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 441 List Summary Function Attribute Web Page View Search Results RC Sportster RC Redstar RC Lilly RC Cheetah Products Page RC International Ships RC Sportster RC International Hosts RC Conference RC International Announces the RC Cheetah Search Results RC Sportster 8 27 2002 7 52 40 PM RC Redstar 8 27 2002 7 52 01 PM RC Lilly 8 27 2002 7 51 26 PM RC Cheetah 8 27 2002 7 50 53 PM Products Page 8 27 2002 7 50 09 PM RC International Ships RC Sportster 8 27 2002 2 46 12 PM RC International Hosts RC Conference 8 27 2002 2 44 44 PM RC International Announces the RC Cheetah 8 27 2002 2 43 01 PM List Summary Function The list summary function is used to display the list of content summaries on a Web page Shown here is the format of the list summary function lt ecmListSummary Folder Recursive ShowSummary Stylelnfo OrderBy Asc Desc Showlnfo MaxNumber ObjType OptionList gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 442 A list and description of the attributes are shown in th
506. onds com Issue 010430 htm CMS400 NET s Implementation of Web Services CMS400 NET supports XML Web Services This means that you can create pages that offer your content to any Web enabled device and you can create pages that consume existing Web Services CMS400 NET s Web Services feature can return data separated from presentation In combination with XML support this feature lets consumers retrieve your XML data independent of presentation information and act on it however they see fit Benefits of Using Web Services Web Services make it easy to connect with partners They can also deliver more personal integrated experiences to users via smart devices including Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 561 PCs WSs can save time and money by reducing development time and increase revenue by making your own XML Web services available to others WS Components and CMS400 NET Architecture Web Services require the installation of the NET Framework on the server Ektron s Web Service ContentWS asmx runs within the NET Framework Through the Application API class in the Ektron cms commonul dll NET managed code can communicate with asp net assembly code ContentWS asmx utilizes the ektron com commonui dll file to provide access to the Content Business Objects content blocks menus collections list summaries etc Software and Hardware Requirements e NET framework version 1 1 SP2
507. one is the syntax for implementing it Event Calendar Sample Here is an example of the event Calendar in an Ektron CMS400 NET template lt tr gt lt td gt lt ecmEvtCalendar 24 gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 546 Collection Fu nction The collection function is used to display the list of links that were created as a collection in the Ektron CMS400 NET Workarea The ecmCollection function is highly customizable allowing you to easily define how the collection data will be displayed on the Web page Shown here is the format of the ecmCollection function lt ecmCollection int id String displayFunction gt This function is basically the same as the Collection function in ASP See Collection Function on page 465 for details The only difference between the JSP function and the ASP one is the syntax for implementing it Collection Sample Here is an example of the Collection function in an Ektron CMS400 NET template lt tr gt lt tr gt lt td gt lt ecmCollection 24 ecmTeaser gt lt td gt XML Collection Function Ektron CMS400 NE The XML collection function wraps XML around the parameters of a list of content that s created as a collection in the Ektron CMS400 NET Workarea Once created you can use the XML to display the collection information The
508. only deployed CMS Add Certified Ektron Developer to your resume Developer Site Provided with Ektron CMS400 NET Install http localhost CMS400Demo developer default aspx NOTE Replace localhost with location of your site Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 Ektron has compiled a list of several different examples of developing your Web site with Ektron CMS400 NET These examples show how easy it is to create robust Web pages by using out of the box functionality including server controls Ektron CMS400 NET API Documentation The API documentation provides a way to learn about the methods and functions that are available when customizing your Ektron CMS400 NET site The following APIs are documented e Server Control API e Business API Access the API documentation from within Visual Studio 2005 or in PDF format API Help Inside Visual Studio 2005 NOTE Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 Ektron API Documentation is only available inside VS2005 if it was on the server when Ektron CMS400 NET was installed Otherwise use the PDF version of the help For API Help Inside Visual Studio 2005 follow these steps In Visual Studio 2005 click Help gt Contents 2 When the help window appears expand Ektron CMS400 NET API Documentation in the frame on the left If you do not see this entry use the filter and choose unfil
509. ons gt Adding a Metadata Definitions KeyWordValue The value that is associated with the KeyWordName String Some examples of a KeyWordValue might be Home page or company Language Set a language for viewing the MetaDataList The Integer language property shows results in design time in Visual Studio and at run time in a browser Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 173 MetaDataList Server Control Property Value Data Type LinkTarget Defines the way a link acts when a link is clicked String Choices are _blank This target causes the link to always be loaded in a new blank window This window is not named _self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned BASE target _parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting like _self if the document is already at the top It is useful for breaking out of an arbitrarily deep frame nesting MaxNumber The maximum number of results returned for display Integer 0 unlimited OrderBy The order of the list to be returned String e Title The title of the content block e 1D The
510. ontains the following topics e BreadCrumb Properties Apply to Web Forms Not Web Pages on page 61 e Types of BreadCrumb Server Control Properties on page 61 e BreadCrumb Server Control Properties on page 62 e Using the BreadCrumb Server Control on page 66 e Making a Content Block s Title Appear in the Breadcrumb Trail on page 67 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 60 BreadCrumb Server Control BreadCrumb Properties Apply to Web Forms Not Web Pages Keep in mind that your Web site is made up of Web forms Each page depends on a form to determine much of its appearance Forms and pages have a parent gt child relationship That is any form can be associated with any number of pages When defining breadcrumb properties you define them for a form All pages that use that form inherit its breadcrumb properties Assume for example that a Web form is used for the Human Resources section of your Web site 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 Types of BreadCrumb Server Control Properties BreadCrumb server control properties are divided into two categories e Properties that Determine a Breadcrumb Trails Appearance on page 61 e Properties that Determi
511. ontent Contains You enter a word or phrase and search for any XML content that has that word or phrase contained within it Click OK Build the Web form Browse to the Web page in your browser Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 227 IndexSearch Server Control 44 WebForm Microsoft Internet Explorer provided by Ektron Inc File Edit View Favorites Tools Help Om OGD Ase sermons O Address http focalhost CMS400Example webform aspx Links EktronNet Welcome 4 Ektron Inc CMS400 Example 4 Welcome Microsoft ASP NET Programming with Microsoft Visual C NET HTML for the World Wide Web with XHTML and CSS 8 The page appears with a list of XML content blocks that match the parameters you set Using the IndexSearch Server Control Programmatically Example NOTE NOTE When creating an IndexSearch server control form user interface using code behind only you need the IndexSearch server control to be connected with the page events Otherwise you will not be able to submit your search parameters You can use the IndexSearch server control in code behind to manipulate the way users view the search results The following example using code behind shows how to return values associated with an XPath This example shows a list of book subject titles 1 Open a Web form 2 Drag and drop an IndexSearch server control on your Web form 3 Set
512. ontent was viewed e how many site visitors viewed for first time and how many returned e the most popular referral pages that is the Web page from which visitors clicked to arrive on your site For more information about Content Analytics see the Ektron CMS400 NET Administrator manual chapter Content Analytics Feature Server Control Properties The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron Properties Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and Boolean can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DefaultContentID If desired enter the ID of a content item being tracked Integer by this server control If you do all visits to this content item are tracked for content analytic statistics If you don t know the ID number of the content block use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DynamicParameter To make this content analytic control dynamic select id String When you do this server control is attached to the content block passed as a URL parameter Ektron CMS400 NET Developer Reference Manual
513. ontrol ID A unique name for the function you are inserting Blog ID The ID of the blog in CMS400 NET If you do not know the Blog ID you can choose it from the Select Folder drop down box of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is O zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 273 Field Description Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element
514. oper Reference Manual Version 6 0 for NET 2 0 Rev 8 30 After defining MyObj as a content block you can access its properties For example to assign a defaultID of 24 insert the following Dim MyObj As New Ektron Cms Controls ContentBlock MyObj DefaultContentID 24 Now the content block can be specified dynamically in the URL of the hyperlink that calls it If not content block 24 displays This is just an example of programmatically applying property values to content blocks For a complete list of properties available to Ektron CMS400 NET objects see List of Server Controls on page 39 Troubleshooting Error Creating Control Message If you get an Error Creating Control message while trying to use a server control you can view the text of the error message by hovering the mouse over the control See illustration below Literal DhtmiJavaSeript J ii n E e fy ai lg Solution C RG international ms40 BY Refe SE Home Literal DropDownMenu Support Nevs Careers Search Calendar OE DE E DOR EE EIEEE OEA EESE TE eee die Qt ANASA ENE E G IEE E ata Ara E EEEE Gye a DAAA ae DE E aye E dad a E EENS eg E OF Parser Error File or assembly name Ektron Cms Common lt or one of its dependencies was not found Copyright 2003 Ektron Inc Sample Site Site Languac Using Drag amp Drop and Programmatically Together All server controls can be further manipulated after dragging and dropp
515. or example search Any of the words content and library Exact Phrase images but not forms i This is an Advanced C Match Partial Words search See Also Advanced Search on page 209 Warning If a user does not check at least one box the search returns no results The check boxes are EnableAdvancedLink True checked by default Content F Forms EnableContent True The user can cnange EnableContentBtn True the check boxes Images Pa g Standard options nablerorms Irue appear pi rs EnableFormsBin True All the words EnableLiblmages True This is an Advanced EnableLiblmagesBtn True search See Also O Any of the words ShowSearchOptions True i h o SAN O Exact Phrase Set all other properties with the C Match Partial Words word Enable to False Warning If a user unchecks all of the boxes the search returns no results Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 211 Search Server Control Description How the Search Appears to Site Visitors Property Settings The user is forced to search Content but can choose to search Forms or Images The Forms and Images check boxes are checked by default Standard options appear This is a mix of Standard and Advanced searches See Also Using Standard and Advanced Searches Together on page 209 Warning If a user unchecks all of the boxes the search still search content and will
516. orer to Browse Your Ektron CMS400 NET Site on page 15 DefaultltemList A comma delimited list of content block IDs to get Integer metadata from DefaultContentID must be set to zero 0 so you can add IDs to the list DefaultItemList 12 4 7 DynamicParameter Gets or sets the QuerySiring parameter to read a String content ID dynamically GenerateDublinCore When enabled this property automatically creates Boolean seven of the Simple Dublin Core metadata fields from standard CMS400 NET system properties The default is false True Generate Simple Dublin Core metadata fields False Do not generate Simple Dublin Core metadata fields The seven fields and how they are associated with the CMS400 NET properties is explained in Using the Simple Dublin Core Metadata Standard on page 168 Hide Used to hide a Metadata server control in design time boolean and run time True Hide Metadata server control False Show Metadata server control Language Set a language for viewing form content The language Integer property shows results in design time in Visual Studio and at run time in a browser Using the Simple Dublin Core Metadata Standard Simple Dublin Core is a set of fifteen standard names for metadata fields designed to cover the most useful items of information on a document From the Dublin Core FAQ Dublin Core metadata provides card catalog like definitions for defining the pro
517. orm Code View NET In ASP NET the Content Block Tag functions as a Multipurpose Content block ASP lt ecmMultiPurpose 24 gt ColdFusion lt cfmodule DefaultID 24 template request ecm AppPath ecmMultipurpose cfm gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 366 Platform Code View JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP lt php ecmMultiPurpose 12 gt Poll For a description of the Poll function see Poll Server Control on page 176 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a Poll 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click Poll 3 The Insert Poll box is displayed Insert Ektron CMS400 Form of seconds CacheInterval Add Validation default true Indude Form Tags default false C Hide Visible 4 Use the following table to assist you with inserting a form Field Description Control ID A unique name for the function you are inserting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 367 Field Description Form ID Type in the form ID that you want to insert If you do not know the Form ID you can navigate to it using the Select Form drop d
518. ose The LanguageAPI server control on the other hand forces users to view a site in a particular language For information on LanguageAPI see LanguageAPI Server Control on page 130 LanguageSelect Server Control Properties The following table explains the properties of the LanguageSelect control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 133 LanguageSelect Server Control Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Hide Used to hide language select dropdown box and label in Boolean design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label LabelName Lets you define the label next to the language select String dropdown box The default label is Language Language Set a language for the Language Select Box The Integer language property shows results in design time in Visual Studio and at run time in a browser WrapTag Allows a developer to specify a server control s tag String The default is
519. ou are inserting Contentlds A comma delimited list of content blocks IDs See Also Using the ContentID Property to Display a Content List on page 109 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 311 Field Description MetaTag 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 Warning You cannot insert other metadata types This works with the DefaultContentID property See Also Using the DefaultContentID and MetaTag Properties on page 105 For more information about using metadata to assign a list of related content to a content item see the Ektron CMS400 NET Administrator manual section Managing Content gt Metadata gt Types of Metadata gt Related Content Metadata DefaultContentID Set content id value Once set content IDs are generated from the MetaTag value for this content If you do not know the content s ID you can navigate to it using the Select Category and Select Content drop down boxes DynamicParameter To make the content dynamic select id When you do this server control uses the content passed as a URL parameter Order By Sort the list by one of the values below and choose whether the list is sorted in Ascending or Descending order e Title the order of the content s title e Da
520. ound C5DAEF e font family Arial Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 631 Style Class Description Attributes and Default Settings mv_eventPopup The border for the event pop up The following example shows the event pop up border in red lt lt Andi May una gt gt Sunday Monday Tuesday Wednendey Thursday Friday Saturday WA a A 2 WA 2 A a A a BA s W a DA 2 AA DA 10 aA n OOO a n aa u Sa 3 15 6 8 16 A a Sd Bas Sd se E a W a Wie in wa Bis Wa Bia daw CEEE 5 20 eo 3 on e border right 000000 1px solid e border top 000000 1px solid e border left 000000 1px solid e border bottom 000000 1px solid Inline View inline ILViewHeaderBkg The inline view header background The following example shows the view header background in red 4 12 2005 Football Shafer Stadium Start 12 00 AM End 12 00 AM 5 5 2005 Hockey Game VWA Start 12 00 AM End 12 00 AM Manchester Monarchs take on the Porland Pirates e border right 9999ff 2px solid e border top 9999ff 2px solid e font weight bold e font size 1ipt e background ddddff e border left 9999ff 2px solid e font family Arial e text align center Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 632 Style Class Description Attributes and Default Settings ILViewEvent Fo
521. own box Select Form The drop down box is populated with a list of all the form titles When a title is selected the form ID textbox is filled with that form s id number If you insert the Form ID you do not need to select a form Dynamic Form Parameter To make this form block dynamic select ekfrm When you do this control uses the form block passed as a URL parameter Ajax Displays the poll or results using an iFrame in the area of the page that contains the poll without disturbing its surrounding contents The default is true Checked Polls and results are shown in an iFrame without any modification or refresh of the surrounding contents C Unchecked The poll and the results replace the Web page s content of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Add Validation When checked adds Validation to your main runat server form Include Form Tags Determines if tags are generated automatically or manually See Also Automatic versus Manual Generation of Form Tags on page 119 Hide Used to hide a form in design time and run time Checked Hide form C Unchecked
522. page 456 The default ObjType is Folder when left blank OptionList Not yet implemented MUST BE List Summary Example Shown below is an example of the ListSummary function in an ASP Web page lt TR gt lt TD gt lt ecmListSummary Marketing News 0 1 Title asc DateModified 0 T T gt lt TD gt lt TR gt The previous example has the following properties e Displays summaries from the Marketing News folder e Not recursive e The summaries will be shown e No style was applied to the hyperlinks e The results will be displayed in ascending order by title e The date modified of each content block will be displayed e Unlimited results will be shown Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 444 List Summary Function Here is how the summaries will appear on the web page A RC International is in the News Microsoft Internet Explorer File Edit View Favorites Tools Help Geax X 7 x E TN JO Search 5 2 Favorites A media O B Address E http 127 0 0 1 cmssample news asp RG international Home Products Support News Careers Search Calendar List Summary Attributes Listed below are all the different attributes and descriptions about them Starting Folder In this attribute you will need to specify which content folder you will want to get all the summaries from
523. pass in a standard content block pass the id value in the url parameter as illustrated below http localhost cms400demo index asp id 2 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 516 To pass in a Form content block pass the ekfrm value in the url parameter as illustrated below http localhost cms400demo index asp ekfrm 2 NOTE For more information about passing the id value as a url parameter see Dynamic Content Block on page 504 If the id value or ekfrm value does not exist a blank template appears If the url parameter is not passed in or recognized the function calls ecmContentBlock and passes the DefaultID value as the id argument If the DefaultID value is zero 0 ecmContentBlock is not called Metadata Function The metadata tag is used to display the metadata for one or more content blocks in the Ektron CMS400 NET Web site Inserting this custom tag will allow you to generate the list of metadata that is edited by the authors and insert it in the source of the Web page Shown below is an example of what the metadata custom tag looks like lt cfmodule template request ecm AppPath ecmMetadata cfm ItemList gt This function is basically the same as the Metadata function in ASP See Metadata Function on page 488 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion examples are
524. perties If used with EnableLibFiles the check box is checked by default False The Files check box is disabled in the advanced search properties EnableLibHyperlinks Enables users to search Library Boolean Using the Advanced Hyperlinks The default is True True Searching Library Hyperlinks is enabled False Searching Library Hyperlinks is disabled unless Hyperlinks is checked in the Advanced search Search Properties on page 206 See Also EnableLibHyperlinksBtn on page 191 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 190 Search Server Control Property Description Data For more Type information see EnableLibHyperlinksBtn Provides a check box so users can Boolean Using the Advanced decide if they want to perform a Library Search Properties on Hyperlinks search The default is True page 206 True The Hyperlinks check box is enabled in the advanced search properties If used with EnableLibHyperlinks the check box is checked by default False The Hyperlinks check box is disabled in the advanced search properties EnableLiblmages Enables users to search Library Boolean Using the Advanced Images The default is True Search Properties on True Searching Library Images is page 206 enabled See Also False Searching Library Images is EnableLiblmageBin on disabled unless Images is checked in page 191 the Advanced search
525. perties of objects for Web based resource discovery systems Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 168 MetaData Server Control For more information on the Dublin Core standard refer to the Usage Guide http www dublincore org documents usageguide To generate Dublin Core metadata set the GenerateDublinCore property to True This creates seven of the fifteen Dublin Core metadata fields These fields are automatically filled with the information from the equivalent Ektron CMS400 NET property Below is a list of the seven fields that are created and their Ektron CMS400 NET equivalent property IMPORTANT These seven Dublin Core fields are automatically populated with information from their equivalent Ektron CMS400 NET property Dublin Core Field Name Ektron CMS400 NET Property DC title Content block title DC description Plain text version of a content block teaser summary DC contributor Content block last editor name DC date Content block last edit date DC format text html DC identifier URL of current page from ASP NET Server Request object DC language CMS language cookie current site language expressed as a NET System Globalization Culture Name To fully comply with the Simple Dublin Core metadata element set the administrator must create the remaining eight Dublin Core fields as standard CMS400 NET Metadata fields and apply them to all
526. play Select False to display this server control on the page Select True to suppress it Specify a value to indicate how the ratings graph appears if a site visitor has not yet rated content e horizontal graph appears to the right of the con tent rating scale e vertical graph appears below the content rating scale e none graph does not appear Boolean String Language Set a language for viewing content The language property shows results in design time in Visual Studio and at run time in a browser Integer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 111 ContentRating Server Control The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Lets you use custom tag Property Value Data Type Padding Enter the number of pixels used to create space Integer between the rating scale and the graph Note If you do not display the graph this setting has no effect WrapTag Allows a developer to specify a server control s tag String Ektron Label Properties The label properties determine the text that appears in the server control Most of them are illustrated below Note that the first illustration and table describe the initial graph while the second i
527. properties See Also The Administrator Manual gt Managing Content Folders gt Breadcrumbs This subsection contains the following topics e BreadCrumb Server Control Properties on page 69 e Using the BreadCrumb Server Control on page 71 BreadCrumb Server Control Properties The BreadCrumb server control properties are described in this table Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 69 FolderBreadcrumb Server Control Property Response Data Type Authenticated Indicates if you are logged in to the CMS Explorer and can String use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DefaultContentID Gets or Sets the ContentID for the BreadCrumb display Integer title The breadcrumb information is taken from the folder properties in which the content resides DefaultFolder D The folder ID for which you want the breadcrumb trail to Integer display If a DefaultContentID is given then it overrides this property DisplayStyle Indicate how to display the breadcrumb trail horizontally or String vertically The default is Horizontal DynamicParameter Gets or sets the Quer
528. r NET 2 0 Rev 8 592 Element or Attribute Description lt selections enabled true false Determines if the Examples drop down list and label are active or grayed out in the Custom Validation dialog Examples m Number between two values P lt and lt Y Must equal another number gt Must not equal another number gt Maximum text length string lenath lt lt selections visible true false Determines if the Examples drop down list and label appear Listchoice Element for Example s field lt listchoice gt Defines the values in the Examples drop down list lt listchoice value xpath expression example The XPath expression appears in the Examples drop down list of the Custom Validation dialog Validation Condition gt X Examples Greater than another number gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 593 Element or Attribute Description lt listchoice localeRef id The text that describes the examples on the Custom Validation dialog Validation Path Ix lt and lt Number between two values gt lt lt and lt Y This element can refer to a string in the localeNNNN xml file Or you can enter the string between the lt listchoice gt tags Saving Invalid Documents NOTE Use the publishinvalid attribu
529. r Control With the MetaData server control you add metadata from content blocks to your Web page With the MetaDataList server control you create a list of content blocks to display on your site based on the Metadata in each content block For Information on the MetaDataList server control see MetaDataList Server Control on page 171 MetaData Server Control Properties Property Note The Metadata server control properties are described in this table The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Value Data Type Authenticated Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 Indicates if you are logged in to the CMS Explorer and String can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 167 MetaData Server Control Property Value Data Type DefaultContentID The ID of the content block that the server control will Integer get the metadata from If you want to add metadata from several content blocks set this property to zero 0 and use the DefaultltemList property to identify the content blocks If you don t know the ID number of the content block use the CMS Explorer to browse to it See Also Using CMS Expl
530. r Reference Manual Version 6 0 for NET 2 0 Rev 8 204 Search Server Control TargetFolderDescriptionList The TargetFolderDescriptionList property allows a developer to create a custom folder list for site visitors to search Using this property is optional If the property is used it overrides the settings in the FolderlD property Football Stats Folders Only C Home Folders Only Search a All the words Any of the words Exact Phrase C Match Partial Words You can force site visitors to search only the specific folders you set in the TargetFolderDescriptionList This is accomplished by creating a comma delineated folder list in the TargetFolderDescriptionList property and setting the EnableAdvancedLink property to False When a visitor to your site performs a search they only receive results from folders in the TargetFolderDescriptionList In contrast you can give site visitors the ability to decide which folders they want to search This is accomplished by creating a comma delimited folder list in the TargetFolderDescriptionList property and setting the EnableAdvancedLink property to True This allows the site visitor to click the Advanced link and then choose from the folders you allow The options appear as check boxes below the advanced properties Here is an example of the TargetFolderDescriptionList in Visual Studio If the Advanced link is disabled a site user is forced to search only the Football St
531. r Reference Manual Version 6 0 for NET 2 0 Rev 8 414 Login Function When inserted properly a login button appears on the Web page Clicking the login button opens a login window in which a user enters the username and password Upon successful completion the user is logged in to the Ektron CMS400 NET Web site Placing Your Login Button You can add as many login buttons to a template as you like You might want to include a login button on each template or have a special Web page called login asp from which users can log in without the public being able to access the login page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 415 Content Block Function Content Block Function The content block tag displays a content block on an Ektron CMS400 NET Web page There are two functions to choose from e ecmContentBlock e ecmContentBlockEX ecmContentBlock allows you display a content block without having to define an XSLT With ecmContentBlockEX you can display XML content by defining an XSLT or applying one of the predefined XSLTs located in Ektron CMS400 NET For more information on predefined XSLTs see the Administrator s Manual gt Managing XML gt Adding a Smart Form gt Adding a Smart Form Using External XML Files Here is the format for the ecmContentBlock function lt ecmContentBlockEX ID gt Here is the format for the ecmContentBlockEX function
532. r Web site They check out a content block content from a specific page or section of a page or create a new content block then usea familiar WYSIWYG editor to format text copy and paste from most Windows applications without losing formatting insert tables images and hyperlinks check spelling and more Content is published with a few simple clicks of the mouse 11 If needed exit Dreamweaver then start it back up Now you can use the Ektron CMS400 NET Extension Pack Refer to Using the Ektron CMS400 NET Extensions on page 255 for more information on using Dreamweaver to create and edit templates for Ektron CMS400 NET Setup Before you can use Dreamweaver UltraDev to create and edit Ektron CMS400 NET templates you should configure the Ektron CMS400 NET Extension Listed below are the configurative options for the extension in Dreamweaver e Username e Password e Domain e Server File e Server Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 243 e Include e Check for Include To change these options follow these steps 1 If you use ASP ColdFusion JSP or PHP follow this path Commands gt Ektron CMS400 ASP CF JSP PHP gt Setup If you use ASP NET follow this path Commands gt Ektron CMS400 NET Server Controls gt Setup Commands Site Window Help i ites Edit Command List Get More Commands Manage Extensions ion Ektron CMS400
533. r each content item to which you want to associate related content access its Metadata tab and identify the related item s For example a list of content blocks associated with motorcycle helmets You want this list to appear whenever a helmet is being viewed To set this up you would edit the content block click its Metadata tab find the metadata definition for the content list click Change Schedule Comment Web Alerts Templates TestContentList Content None selected Change Clear Search Data wellness No Selection v Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 106 ContentList Server Control select the content blocks to be in the list A CMS400 Library For admin Microsoft Inter Z Library Library Folder Tech Support for Products quickligg O CMS400Demo About Us Title Lanquange Date modified ty BI Email ote et products aspx id 49 2 15 2006 10 18 2 Book Store Conditions PARE ATS deag BE 3 13 2008 12 19 Contact Inform 3 Ektron Medical z D Events 5 Flash Select Metadata Products poe DEE Title 2 Medication M D Content Relationship O Services Training and Education 4 O Therapies Phone Numbers O Developer 5 Ona Web form in Visual Studio add the ContentList server control 6 Set the DefaultContentID property to the content block s ID Ektron CMS
534. r five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Hide Used to hide language select dropdown box and label in Boolean design time and run time True Hide language select dropdown box and label False Show language select dropdown box and label Language Set a language for the Language Select Box The Integer language property shows results in design time in Visual Studio and at run time in a browser SuppressWrapperTags Suppresses the output of the span div tags around the Boolean control The default is False True Suppress wrap tags False Allow wrap tags Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 58 BreadCrumb Server Control BreadCrumb Server Control NOTE There are two kinds of breadcrumbs sitemap breadcrumbs and history breadcrumbs Sitemap breadcrumbs show you the path through the sitemap to the current page like the path shown at the top of the page of a Yahoo directory listing Sitemap breadcrumbs always show the same path for the same page regardless of how that page is reached To use a sitemap breadcrumb see FolderBreadcrumb Server Control on page 69 History breadcrumbs more accurately fulfill the breadcrumb trail metaphor They display an edited version of the browser s history links to each of the most recently visited pages in the order that they were vi
535. r the SearchDisplay tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 439 Search Display Function Max Number of Content Blocks Returned This attribute determines the number of search results displayed on a page You may enter any integer To display unlimited results enter 0 zero Max Returns Web Page View Search Results RC Sportster RC Redstar RC Lilly RC Cheetah Products Page RC International Ships RC Sportster RC International Hosts RC Conference RC International Announces the RC Cheetah Search Results RC Sportster RC Redstar RC Lilly Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 440 Search Display Function Style Info An HTML style string used within the HTML hyperlink generated by the search output Can control font color size etc Style Info Web Page View Search Results RC Sportster RC Redstar RC Lilly RC Cheetah Products Page RC International Ships RC Sportster RC International Hosts RC Conference RC International Announces the RC Cheetah font family arial font weight bold background color cccccc border solid blue 1pt margin 2px width 50 Search Results RC Sportster IRCRedstar RC Lily SSS RCCheetah _ _ _ Products Page __ _ _ __ RC International Ships RC Sportster ___ RC International Hosts RC Conference _ RC Internati
536. rch C Unchecked Original HTML Search See Also Ajax Search on page 197 ButtonImgSrc ASP NET If you wish to use an image for the search button insert the location Button Image Source ASP CF of the image in this field If no image is specified a standard submit JSP or PHP button is used See Also Button Image Source Examples on page 199 ButtonText The button text is the text that is displayed on the standard submit button or the alt text of a search button image See Also Search Button Text Examples on page 200 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 378 Field Description Control ID Used in ASP NET only A unique name for the function you are inserting Display Horizontally The search can be displayed either vertically or horizontally on your Web page Check off this box if you want it to appear horizontally See Also Display Examples on page 201 Display Type Used in ASP NET only Determines how the information on the page is displayed None databind only ecmNavigation lists the title of every content block in the folder ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmNavigation Display on page 85 and Example of ecmTeaser Display on page 85 EmptyResultMsg Used in ASP NET only The return message displayed if
537. rch to be recursive you are allowing the search to search all the subfolders associated with the starting folder you had specified You have two options for this attribute Value Description 1 Recursive summaries in the starting folder s subfolders will also be displayed 0 Non recursive only summaries in the starting folder will be displayed Order By This attribute will sort the summary results by different options There are five different ways to sort the summaries Value Summaries sorted by Title title DateModified date modified Date Created date created Startdate The Start Date assigned to the content block when created AuthorFname author s first names Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 463 RSS Summary Function Value Summaries sorted by AuthorLname author s last name Ascending Descending This attribute is an addition to the previous OrderBy attribute By default the list of the summaries are descending meaning they will follow the path of A B C or 1 2 3 When set to ascending they will order by Z Y X or 3 2 1 You will have the option to re arrange these to display either in ascending or descending order To do this add the following to the OrderBy attribute Value Description asc 1 This will order the Summaries in an ascending order desc 0 This will order the Summaries in a descending order This i
538. rd methods and properties within the Visual Studio 2005 environment This means that you can see the effect of your changes in real time you don t have to modify a page then compile a sample project to see the results You can insert server controls using drag and drop or programmatically You can also use databinding to retrieve and display data from Ektron CMS400 NET This chapter explains the use of the Ektron CMS400 Server Controls through the following topics e Opening the Sample Project on page 7 e Setting Up a Template on page 9 e Making the Server Controls Available on page 10 e Inserting Server Controls Using Drag and Drop on page 12 e Inserting Server Controls Programmatically on page 16 e Using Drag amp Drop and Programmatically Together on page 31 e Data Binding with Server Controls on page 33 e Caching with Server Controls on page 36 e List of Server Controls on page 39 Additional information and examples for Ektron Server Controls are available online by going to the Developers section of the sample site that was installed Here is the path http localhost cms400demo Developer Default aspx Replace localhost with the webroot where you installed the Example site Opening the Sample Project To help get you started these directions explain how to open the sample site delivered with Ektron CMS400 NET 1 Browse to and double click Ektron CMS400 NET s solution file l
539. ree hundred See Also Caching with Server Controls on page 36 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 270 Field Description Hide Used to hide a function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set position information of a control as absolute when using a GridLayout Web page For example styles Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 271 5 Click insert A Blog icon appears and indicates the Blog s location on the template c gt code La Design 4 Tite Untitled Page for ot lt body gt lt form id formi runat server gt lt form gt lt p gt amp nbsp lt p gt Shown below is an example of the code that i
540. rence Manual Version 6 0 for NET 2 0 Rev 8 26 Property Description For more information see LastEditorFname The first name of the last person to edit the content block LastEditorLname The last name of the last person to edit the content block PackageDisplayXSLT If the content block is XML the name of its XSLT QuickLink The content block s quicklink Ektron CMS400 NET User manual Library Folder gt Quicklinks StartDate The content block s start date formatted Ektron CMS400 NET User as a NET date type Manual Scheduling Content to Begin and End gt Setting a Start Date Status The status of the content block Ektron CMS400 NET User apooved manual Appendix A Content pp Statuses e checked out e checked in e expired e pending deletion e pending expiration e pending start date e submitted Teaser The content block summary Adding a Content Block Summary in the Ektron CMS400 NET User manual TemplateLink Currently empty and not being used with the ContentBlock server control Title The content block title UserID Last user who edited the content Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 27 Property Description For more information see Xsit1 The content block s first Xslt as defined in Ektron CMS400 NET Xslt2 The content block s second Xslt as defined in Ektron CMS4
541. revious pages page 59 For information on other Breadcrumb types see FolderBreadcrumb Server Control on page 69 and SiteMap Server Control on page 235 BusinessRules Adds a Business Rule created in the CMS400 NET Workarea to a Web form BusinessRules Server Control on page 73 Calendar Displays an event calendar Calendar Server Control on page 75 Collection Displays links generated by collections Collection Server Control on page 82 ContentBlock Displays and manages a content block ContentBlock Server Control on page 91 ContentList Displays a list of content blocks created ContentList Server Control on from a comma delimited list page 100 ContentRating Place a rating scale on any page of your ContentRating Server Control on Web site The scale lets Ektron CMS400 NET collect feedback by giving site visitors the opportunity to rate a particular content item page 110 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 40 Server Control Names Description More Information DesignTimeDiagnostic The DesignTimeDiagnostic server control is used to verify the connection to Ektron s server controls Web service DesignTimeDiagnostic Server Control on page 115 DhtmIMenu Displays a drop down menu with submenus DhtmIMenu Server Control on page 160 FolderBreadcrumb FolderBreadcr
542. ributes and Default Settings dv_DayHeader The day header for the calendar The following example shows the day header in red background 99DDFF color 0033AA font family Arial font size 1ipt font weight bold text align center Month View month Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 620 Style Class Description Attributes and Default Settings mv_weekendDOWHeader Weekend day of week header The following example shows the weekend day of week header in red Stet May june gt gt GEE uoy Tuesday Wednesday Thursday Fricoy BE FA DA 2 BA BA a Bas BA 6 Bale Hedis aame Ae WA 2 Alo A a Sd Baz a a 5 Gl se Yeuh heker Arana Gashatbal cane Footbal d Silas Se 3 e Sd lar Sd Sle Sd Sine SS oo Ss Alas FaR WA a Sala Whos BAe Ba wa Sala aala A wo ed Alm e background c5daef e font family arial e font weight bold e font size 8pt e border top c9bda5 1px solid e border bottom c9bda5 1px solid e border right c9bda5 1px solid e border left c9bda5 1px solid e text align center Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 621 Style Class Description Attributes and Default Settings mv_weekdayDOWHeader Weekday day of week header The following example shows the weekday day of week header in red lt c oa
543. riencing extremely rapid growth and offers many opportunities for advancement lt p gt lt description gt lt qualifications gt lt ul gt lt li gt 3 years experience in commercial grade plastic molding technologies lt li gt lt li gt Excellent written and oral communication skills lt li gt lt li gt Ability to work with very little supervision lt 1li gt lt li gt An AS degree in chemistry lt li gt lt ul gt lt qualifications gt lt offering gt lt p gt First and second shift opportunities exist RC International offers competitive pay an extensive benefits package including a 401k plan profit sharing and health coverage lt p gt lt offering gt lt contact gt lt contact name gt Human Resources Manager lt contact name gt lt contact email gt jobs CMS400site com lt contact email gt lt contact fax gt 1 555 555 5555 lt contact fax gt lt contact gt lt jobposting gt lt ContentHtml gt lt Xs1t1 gt C Inetpub wwwroot cms400demo XMLFiles xslt rce_jobs_display xsl lt Xslt1 gt lt Xslt2 gt lt Xs1t3 gt lt Xslt4 gt lt Xs1t5 gt lt DefaultXslt gt 1 lt DefaultXslt gt lt Item gt lt ContentBlockResult gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 572 The News aspx Sample non XML To help you understand how the samples work this section explains the news sample NET page news aspx which is installed to webroot cms400demo WebSe
544. ring do this server control uses the form block passed as a URL parameter EnableAjax Displays the poll or results using an iFrame in the area of the page that contains the poll without disturbing its surrounding contents The default is true True Polls and results are shown in an iFrame without any modification or refresh of the surrounding contents False The poll and the results replace the Web page s content Hide Used to hide a form block in design time and run time Boolean True Hide form block False Show form block Include Tags Determines if tags are generated automatically of Boolean manually See Also Automatic versus Manual Generation of Form Tags on page 178 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 177 Poll Server Control Property Value Data Type Language Set a language for viewing form content The language Integer property shows results in design time in Visual Studio and at run time in a browser WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Automatic versus Manual Generation of Form Tags When using the poll server control s
545. rms and library items The IndexSearch server control lets users search XML content on your Web site For more information on the IndexSearch server control see IndexSearch Server Control on page 218 Search Server Control Properties The following tables explain the properties of the Search server control The first table shows whether the properties affect the search display the search criteria or the search results display The second table contains a list of all the properties Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 183 Search Server Control their descriptions data type and links to more information The rest of the tables provide further information on the various Search server control properties Property Usage Table Properties in the Search server control generally affect the control in one of three ways e Site Search Display the Search server control s appearance on your site e Site Search Criteria the criteria the control uses to search the site e Search Results Display how the search results are displayed on your site Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 184 Search Server Control The following table shows which properties are associated with each category See Also Property Descriptions on page 185 Site Search Criteria Site Search Display Search Results Display e EnableLibraryFieldset e FolderFieldse
546. rol as absolute when using a GridLayout GridLayout Web page For example Used in ASP NET only style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Used in ASP NET only Div The lt div gt tag is used when you want to apply attributes to a block of code 5 When completed click Insert A graphic defines where the form appears on your template FormBlock aspx L code 31 spit L4 peson L Tite Vebrommt SO nps p lt cms FormBlock id FormBlock1 DefaultFormID 13 runat server gt lt cms FormBlock gt lt P gt lt P gt amp nbsp lt P gt ES Shown below is an example of the code that is inserted Platform Code View NET lt cms FormBlock id FormBlock1 DefaultFormID 13 runat server gt lt cms FormBlock gt ASP lt ecmFormBlock 1 gt ColdFusion lt cfmodule id 1 template request ecm AppPath ecmFormBlock cfm gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 341 Platform Code View JSP lt ecmFormBlock 1 gt PHP lt php ecmFormBlock 1 gt Language API For a description of the Language API function see LanguageAP Server Con
547. rosoft com intellisense i lt HEAD gt lt body gt lt form id Formi method post runat server gt lt form gt lt body gt 4 Save the Web form and rebuild the solution 5 Open the Web page in the browser 6 Right click on the Web page and click View Source Look in the head tag The meta tags from the content block are added to the page The metadata information added is shown below WebForm5 1 Notepad lt DOCTYPE HTML PUBLIC W3C DTD HTML 4 0 Transitional EN gt lt HTML gt lt HEAD gt lt title gt webForm5 lt title gt lt title gt cmMs Developer lt title gt lt meta name keywor ds content CMS400 NET CMS gt lt meta name description content CM5400 developer section gt lt meta content Microsoft Visual Studio NET 7 1 name GENERATOR gt lt meta content Visual Basic NET 7 1 name CODE_LANGUAGE gt lt meta content JavaScript name vs_defaultclientScript gt lt meta content http schemas microsoft com intellisense ie5 name Vvs_targetSchema gt lt HEAD gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 170 MetaDataList Server Control MetaDataList Server Control Use the MetaDataList server control to create lists based on Keyword Names and Keyword Values contained within the metadata of a content block In the example below the KeyWordNames are circled in red and the KeyWordValues are circled in green
548. rs appear below the search form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 202 Search Server Control Search a All the words O Any of the words Exact Phrase Cl Match Partial Words Advanced Audio Title OOO Image Date between None E ER and None Part Number between and The Searchable Properties for a folder must be turned on for them to appear in a search For more information on using Searchable Properties see the Administrator Manual section Metadata Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 203 Search Server Control The examples below show Searchable Properties being activated in the folder properties and appearing on a search page ES Publish Office documents as PDF ent l Meta Data Custom Fields available for folder oks Content lendar Assigned Required Na nturyMedicalServ Fj title ntacts oO keywords namic Content I O description Q g O page mi E ample O robots uneis T a oO breadcrumb F Audio Title a Image Date E F Part Number Noatificatinn Cattinac Address http 192 168 0 82 CMS400Example webformS aspx _ Search All the words Any of the words Exact Phrase C Match Partial Words Advanced Audio Title Image Date between None E Ey and None E G Part Number between Jaa sid AA n DA ri Ektron CMS400 NET Develope
549. rs on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt CMS Module Controls To insert a Standard Menu 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Standard Menu Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 394 The Standard Menu Control box appears Ektron CMS400 Menu Control Menul DefaultMenulD Select the from a list of menus MenuType SampleMenu v Dynamic menu Parameter None v of seconds CacheInterval Hide O Visible Positioning info GridLayout Style leave blank if none Wrap tag Span w 3 Use the following table to assist you with inserting a Standard Menu Field Description Control ID A unique name for the function you are inserting DefaultMenulD The numeric id of the menu that you want to insert If you do not know the DefaultMenulD you can navigate to it using the Select Menu drop down box Select Menu Select a menu to be used When a menu is selected the DefaultWenulD textbox is filled with that menu s id number If you insert the DefaultMenulD you do not need to select a menu MenuType The type of menu to render None databind only SampleMenu A sample display formatted as a bulleted menu list TreeMenu A sample display form
550. rt Ektron CMS400 Login Tag Paints the login or logout button which allows the user to login and ID Login1 OnlyAllowMemberLogin O AutoLogin O SuppressHelpButton 0O Hide O Visible M Positioning info GridLayout Style leave blank if none wanta sean Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 352 IMPORTANT When inserting a login function using ASP CF JSP or PHP the dialog box that appears has no settings Ektron CMS400 Login Tag Paints the login or logout button which allows the user to login and use the CMS400 application Use the following table to assist you with inserting a Login button Field Description ID Used in ASP NET only A unique name for the function you are inserting OnlyAllowMemberLogin Used in ASP NET only This changes the Login button so only membership users can log in This prevents someone from trying to login as an Ektron CMS400 NET user and gain access to the Ektron CMS400 NET Workarea The default is False Checked Allow only membership users to login C Unchecked Allow Ektron CMS400 NET users and membership users to login AutoLogin Used in ASP NET only When set to true users are automatically logged in using Active Directory authentication They do not need to enter a username or password The default is False Checked Use Active Directory aut
551. rted this Integer server control if no other content block is identified or is not available If you don t know the ID number of the menu use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DynamicParameter Select menu_id When you do this server control uses String the menu passed as a URL parameter ForeColor Sets the color of the font for the root menu This property appears in the Appearance category Hide Used to hide a menu in design time and run time Boolean True Hide menu False Show menu Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 162 DhtmIMenu Server Control Property Value Data Type HorizontalDisplay Displays submenu to the right of the root menu This only affects the first submenu of the root menu All subsequent submenus appear to the right of each submenu The default is False True Submenu appears to the right of the root menu Company Directory Company Policies Company Calendar Sub menu Root Menu Latest Changes False Submenu appears below the root menu Root Menu gt Company Directory Company Policies Submenu Company Calendar Latest Changes Boolean Language Set a language for viewing Dhtml Menus The language property shows results in design time in Visual Studio and at run time in a browser Inte
552. rts form tags ecmFormBlockNoFormTag does not The following is an example of form tags lt form name myform action onsubmit return EkFmValidate this method post gt lt form gt When using ecmFormBlock form tags are added automatically When using ecmFormBlockNoFormtTag form tags need to be added manually For more information about HTML forms see the Ektron CMS400 NET Administrator manual chapter 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 the Ektron CMS400 NET Administrator manual chapter Managing Library Assets section Updating Default Template for Multiple Quicklinks Here are the two formats for the form custom function lt ecmFormBlock id gt or lt ecmFormBlockNoFormTag id gt NOTE As an alternative you can use the multipurpose function which can display either a content block or a content block associated with a form For more information see MultiPurpose Function on page 487 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 485 Form Function The id argument represents the form s ID number visible when viewing the form from the View Form screen View Form Email Contact Form sw English U S
553. rty to True Modify HTML form tags in the aspx file An aspx page and associated code behind web form Set Include Tags property to False Here is the default NET generated form tag lt form id Forml method post runat server gt Modify the form tag as indicated in red lt form id Forml method post runat server OnSubmit EkFmValidate this gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 119 Forum Server Control WARNING The Discussion Board feature provides a forum where topics can be discussed on your Web site An administrator creates a topic and posts a starter question Any site visitor can then reply Use the Forum server control to place a Discussion Board on a Web page For more information about the Forum server control see the Ektron CMS400 NET Administrator manual chapter Discussion Boards Within that chapter be sure to follow the guidelines in the section Inserting the Forum Server Control After placing a Forum server control on a page follow the procedure described in Updating the Page Command on page 121 Otherwise the user may get an error when posting a reply Server Control Properties Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio he
554. rver Control cccccccesssseeeeeeeeeeeeeeeeseeeeees 135 Login Server GOntrol sssini aaa 143 Membership Server Control cccccceessseeeeeeeeeeeeeeeeeeeees 146 Menu Server Control cscccccsssscsssesessssseesseeeessseeeessesenseeees 152 DhtmiMenu Server Controll cccsscscsssseeesssseessesenseeeenees 160 MetaData Server Control cccsssscecssseeensssesesseeesseenenaees 167 MetaDataList Server Control ccccsssssseeeeeeesnseeeeeeens 171 Poll S rver COMO iaseisicscicstesscinicaastassanscinnsinasanicinstiantenitanacns 176 RssAggregator Server Control ccssssssseeeeeeeeeeeeeeeeeeeeeees 179 Search Server Controles 182 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 v IndexSearch Server Control 2 c 2 c ssceeceecceeeceeceeceneceeceeseees 218 SiteMap Server Control isisisi anaana 235 Dreamweaver Extension SUpport sssssssnsnnnnnnnnnnnnnnnnnn 238 Standard ASP NET Methods cccccccseeseesseeeeeeeeeeeees 403 Custom ASP FUNCIONS sissisisscsissvsiessceccessccsnmvoiomnasesnccsanne 411 Login FUNCTION vcsiiesesnecessiesssscectsscscanessssannettannessenssstnaxnennnannes 414 Content Block FUNCUON wiscsicscccsncsciscaiacacsisesncnnacinastaenninnce 416 Add Contentia 424 Search FUNCHONS sasisisrisiirriceiird ranana a 428 Search Display Function cccsseseeeeeeeeeeseeeeeeeeeeeeeeeeenees 438 List S mmary FUNGCHON sii csiissiisedscasua
555. rviceDemo Specifically four key sections of code are explained e identifying the Code Behind File e Setting Up an Instance of Web Services e Retrieving the Web Service s URL e Getting Content Blocks Identifying the Code Behind File Here is the first line in the news aspx file lt Page CodeBehind news aspx vb Language vb AutoEventWireup false Inherits WebServicesDemo news gt This line indicates that the page s functionality is set up in the Code Behind Visual Basic file news aspx vb The rest of the news aspx file contains only page display information Setting Up an Instance of Web Services The following code in news aspx vb sets up an instance of the Web Services Every page that uses Web Services must contain such a declaration Dim wsCms400WebService As New ContentWS ContentWS Getting Content Blocks The following lines of news aspx vb code retrieve all content blocks in the sample database s news folder formatted as an HTML string If iId gt 0 Then strHTML wsCms400WebService ContentBlock iId strHTML Replace strHTML asp aspx NewsInfo InnerHtml strHTML Else strHTML wsCms400WebService ListSummary Marketing News 0 1 Title asc DateModified 0 strHTML Replace strHTML news asp WebServiceDemo news aspx NewsInfo InnerHtml strHTML End If NOTE Since the database was created with NET you could use this code to get the HTML for the requ
556. ry 14 1 DateModified gt lt TD gt lt TR gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 528 XML List Summary Function The XML List Summary function wraps XML around the properties of a list of content created as a list summary in the Ektron CMS400 NET Workarea Once created you can use the XML to display the list summary information The ecmListSummaryXML function allows you to easily define how the list summary data appears on the Web page lt php ecmListSummaryXML Folder Recursive OrderBy MaxNumber ObjType SummaryType gt This function is basically the same as the List Summary XML function in ASP See XML List Summary Function on page 450 for details The only difference between the PHP function and the ASP one is the syntax for implementing it The PHP example is below lt php ecmListSummaryXML books 0 Title asc 0 folder gt RSS List Summary Function The RSS summary function is used to create an XML list of content summaries for RSS Syndication Shown here is the format of the RSS list summary function lt php ecmRssSummary Folder Recursive OrderBy MaxNumber gt This function is basically the same as the RSS Summary function in ASP See RSS Summary Function on page 460 for details The only difference between the PHP function and the ASP one is the syntax for
557. ry content block in the collection plus the content summary See Also Example of ecmTeaser Display on page 85 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page DynamicParameter To make this collection dynamic select coll_id String When you do this server control uses the collection passed as a URL parameter Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 83 Collection Server Control Property Description Data Type GetHtml Set to True if you want to retrieve and display Boolean content html body for all content blocks in the collection For example to display content inside a web server control such as a GridView Hide Used to hide output of collection in design time Boolean and run time True Hide collection False Display collection Language Set a language for viewing the collection The Integer language property shows results in design time in Visual Studio and at run time in a browser LinkTarget Defines the way a link acts when a link is clicked String Choices are _blank This target causes the link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned BASE target _parent This target makes the link load in the immediate frameset parent
558. s to see whether the user is able to add a content block Password The password for the username being authenticated Domain If using Active Directory specify the domain needed to authenticate the user Content_title Specify a title for the content block being added Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 424 Add Content Attribute Description Content_comment Specify a historical comment for the content being added ContentHTML Actual content for the content block SummaryHTML Summary information about the content block ContentLanguage Language of content FolderlD ID number of the content folder where the content block will be added to GoLive Date and time the content will go live Must match date time format set in the Web config key ek_dateFormat EndDate Date and time the content will expire Must match date time format set in the Web config key ek_dateFormat Metalnfo Specify the information for the metadata which will be used as a reference point for finding other words or information An example is lt metadata gt lt meta id 3 gt Title lt meta gt lt metadata gt Where ID is the metadata definition ID whose value is being set The value is set between the meta tags and the meta tag is repeatable for as many metadata definitions as you want to set for the given content block Add Content Example The
559. s String Creates variables Dim Str As String Dim strRet As String arStr Sets the variable arStr as an array of the XPathValues IndexSearchl1 GetXPathValues root subject For Each Str In arStr The for next loop iterates through the array of XPathValues strRet Str amp lt br gt Next Literall Text strRet Displays values on your Web form 6 Build the project 7 Browse to your web form 8 The list of book subject titles appears Edit View Favorites Tools Help ooa Address http localhost CMS400Example webform aspx Links EktronNet Welcome 4 Ektron Inc CMS400 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 230 IndexSearch Server Control Programmatically Predefined General Search Results Replaced By Specific Search Results This Code behind example shows a predefined search appearing on a Web page then being replaced by more specific search results This example creates a hyperlink list of book publishers When you click a specific publisher it replaces the publisher list with a book list from that publisher Follow these steps 1 2 Add an IndexSearch server control to a Web form Set the following properties DisplayXslt ecmTeaser Hide True HitsMarker blank ShowSearchBoxAlways False Weighted True XmlConfigld 4 Add two Literals Add the following code to the Page Load Event in code beh
560. s a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag String Ajax Search Ajax gives your site visitors an application like search experience For example the search displays results with reloading the page In addition results can appear in a separate area of the Web form Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 197 Search Server Control The Ajax search also lets you implement a paging feature When EnableA jax is set to true the MaxResults property determines the maximum number of results per page See Also MaxResults on page 193 1 SEARCH Search Text email Next Last ektron Medical s commitment to operating with integrity requires more than just adequate financial Ektron Inc an innovator in Web content management software today announced ResultTagld By using the Result TagId property you can designate where you want search results to appear This allows you to place the search criteria in one area of a Web form and the results in another The Result TagId property only works with the Ajax Search For example you have the following Tag lt span id results g
561. s form block dynamic select id When you String do this server control uses the form block passed as a URL parameter FormName Set this value to the name of your main runat server String form Hide Used to hide a form block in design time and run time Boolean True Hide form block False Show form block Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 118 FormBlock Server Control Property Value Data Type Include Tags Determines if tags are generated automatically of Boolean manually See Also Automatic versus Manual Generation of Form Tags on page 119 Language Set a language for viewing form content The language Integer property shows results in design time in Visual Studio and at run time in a browser WrapTag Allows a developer to specify a server control s tag String The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag Automatic versus Manual Generation of Form Tags When using the FormBlock Server control s Include tags property you have two options Option Recommended if you are developing How to Enable Let Ektron CMS400 NET generate form tags automatically A pure script aspx page Set Include Tags prope
562. s inserted Platform Code View NET lt cms Blog id Blog1 BlogID 41 runat server gt lt cms Blog gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Blog Calendar For a description of the Blog Calendar function see BlogCalendar Server Control on page 50 and Blog Server Controls on page 43 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Community Controls To insert the Blog Calendar function 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Blog Calendar Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 272 3 The Insert Ektron CMS400 NET Blog Calendar box appears Ektron CMS400 BlogCalendar Control ID blogcalendar 1 BlogID i Select the folder or fill it in above of seconds CachelInterval Hide C Visible M Positioning info GridLayout Style leave blank if none Wrap tag Span 4 Use the following table to assist you with inserting the Blog Calendar function Field Description C
563. s on a Web page a set of search fields A site IndexSearch Server visitor uses the page to search for information on your Web site Control on page 218 List Summary Displays a list of content block summaries ListSummary Server Control on page 135 Login Displays the login or logout button which lets the user Login Server Control log in and use Ektron CMS400 NET on page 143 Metadata Displays the metadata in the source of the Web page MetaData Server displaying the content Control on page 167 Menu Customizes the DHTML menus feature DhtmlMenu Server Control on page 160 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 406 Method Description More Information Search Inserts a text box with a search button in the template Search Server Control When the user completes the search screen it looks on page 182 through XHTML content on the Web site ShowSiteLanguage Lets a site visitor select a language in which to view site LanguageSelect Server Control on page 133 Addcontent The addcontent method lets you programmatically add a new content block to Ektron CMS400 NET without logging in This method can be used for several applications such as e A Web form allowing you to collect data from users about the content block e A loop function that moves information from a database to an Ektron
564. s specifies which JavaScript function to run when the String toolbar resets The toolbar reset offers the opportunity for the script to affect the operation of the toolbar with actions such as adding or removing commands disabling commands or creating entirely new toolbars This is the name not the full function definition of a JavaScript function The function must follow the format defined in the eWebEditPro documentation for this type of method Below is an example function initToolbarCommands sEditor strURL strAutoURL T ewan where the initToolbarCommands string is given to this property A toolbar reset is only called when the toolbar actually resets This often happens when the editor starts however if the user has been given the opportunity to save their own toolbar setup then this will not be called on startup It is always called when the user selects to reset the toolbar If this string is empty the default CMS method is called TranslationFile The translation file or stream that contains the XML String elements for the translation of strings used in the editor If this is blank the client system s windows setting is used to select form the series of default translation files ShowCMStToolbar NOTE For information on the Toolbar buttons and there functions see the User Manual Section gt Toolbars The CMS Toolbar appears when the ShowCMS Toolbar property is set to true
565. s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 327 5 Click insert A Discussion Forum icon appears and indicates the Discussion Forum s location on the template ol a It Shown below is an example of the code that is inserted Platform Code View NET lt cms Forum id Foruml BoardID 106 runat server gt lt cms Forum gt ASP This function is not available as an Ektron Dreamweaver Extension for ASP ColdFusion This function is not available as an Ektron Dreamweaver Extension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Display By Meta Value For a description of the Display By Meta Value function see MetaDataList Server Control on page 171 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert Display By Meta Value Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 328 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400
566. s tdssaeinascaatsavasadeatauen sani 647 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xxiii Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xxiv About This Manual This manual can be used as a reference for the developer or the person is who is setting up your Ektron CMS400 NET Web site To utilize the full potential of an Ektron CMS400 NET driven Web site learning and using the server controls supplied by Ektron is essential These server controls help make your site more robust and easier to maintain For more information see Introduction to Ektron CMS400 NET Server Controls on page 7 This document explains how to manually use custom tags for each platform supported by Ektron CMS400 NET e Standard ASP NET Methods on page 403 e Custom ASP Functions on page 411 e Custom ColdFusion Functions on page 501 e Custom PHP Functions on page 521 Besides explaining how to insert the functions to your Web templates manually this manual also explains how to create Ektron CMS400 NET templates in a WYSIWYG environment by using the Ektron supplied server controls for Visual Studio 2005 or by using the Dreamweaver extension supplied with the installation See Dreamweaver Extension Support on page 238 for additional information Ektron CMS400 NET has also implemented support for Web Services as well as syndication using RSS Information about configuration and
567. s the default setting By using the ascending descending option you will have the option to set the order of content blocks from most recent to oldest or vice versa As well as ordering the list by the user s first names or last names in ascending or descending order Max Number This attribute determines how many summaries appear on a page Enter the number of summaries to be displayed To display all summaries enter 0 zero and you will display unlimited results Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 464 Collection Function Collection Function The collection function is used to display the list of links that were created as a collection in the Ektron CMS400 NET Workarea The ecmCollection function is highly customizable allowing you to easily define how the collection data appears on the Web page Shown here is the format of the ecmCollection function lt ecmCollection id Display Function gt The ecmCollection function attributes are explained below Attribute Description id The id of the collection that you would like to be displayed is defined here displayFunction Specify a function that is defined in the API and determines how the appearance of the collection data on a Web page The display function must also be defined in the ecmCollection function See Also The Ektron CMS400 NET User Manual Section Workin
568. s the format for the content blockEX function lt CFMODULE template request ecm AppPath ecmContentBlockEx cfm p XSLT Override This functions are basically the same as the ContentBlock and ContenBlockEX function in ASP See Content Block Function on page 416 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion examples are below Static Content Block lt ET gt lt td gt lt CFMODULE id 1 template request ecm AppPath ecmContentBlock cfm gt lt td gt lt tr gt Dynamic Content Block SETS lt td gt lt CFMODULE id id template request ecm AppPath ecmContentBlock cfm gt lt td gt lt tr gt XML Content Block lt tr gt lt td gt lt CFMODULE id 13 XSLT override 1 template request ecm AppPath ecmContentBlockEx cfm gt lt td gt lt tr gt Add Content The add content function allows you to programmatically add a new content block to Ektron CMS400 NET without the need of logging in Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 504 Here is the format for the add content function lt CFModule template request ecm AppPath ecmAddConitent cfm Username Password Domain content_title content_comment ContentHiml SummaryHTML ContentLanguage FolderlID GoLive
569. s to self register themselves to your site Membership Control on page 355 Discussion Forum Forums provide a discussion board where topics can be discussed on your Web site Discussion Forum on page 326 Blog The Blog function allows you to quickly add a blog to a Web form It has all of the items commonly found on a blog page in one server control Blog on page 269 Blog Calendar Display a calendar on a Web page and associate it with a blog Blog Calendar on page 272 Blog Categories Displays the blog categories for a blog on a Web form Blog Categories on page 275 Blog Roll Displays the blog roll for a blog ona Web form Blog Roll on page 287 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 264 Command Description More Information Blog RSS Displays the icon jj for the blog s Blog RSS on page 290 RSS feed on the Web form Blog Entries Display a list of multiple blog posts on a Blog Entries on page 278 Web form Blog Recent Posts Displays a list of recent blog posts links on a Web form Blog Recent Posts on page 284 Blog Post Display an individual blog post on a Web form Blog Post on page 281 Ektron CMS400 ASP CF JSP PHP Functions Command Description More Information Content Controls Login Inserts an Ektron CMS400 NE
570. scending order by title e DisplayXslt will use the navigation display format Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 141 ListSummary Server Control e FolderID Displays summaries from the folder with the ID 14 e GetHtml Does not display the HTML from the content blocks in the list summary e MaxResults Unlimited results appear e OrderKey Summaries sorted by content block title e Random Displays summary for all content blocks in folder not just one random one e Recursive Includes only selected folder not its child folders Retrieving the XML Structure of a List Summary NOTE 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 1 Open anew Web form 2 Drag and drop a ListSummary server control onto it 3 Set the FolderlD property 4 Drag and drop a Textbox on the Web form 5 Set the TextMode property to MultiLine It is also recommended that you set the width of the text box to at least 400px 6 On the code behind page add the following line Textboxl Text ListSummaryl XmlDoc InnerxXml 7 Build the project 8 View the Web form in a browser 9 The XML structure of the list summary appears in the textbox Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 142 Login Server Control Login Server Control The Logi
571. sed in ASP NET only Content ID Type in the Content ID of the calendar that you want to insert If you do not know the Content ID you can navigate to it using the Select Calendar drop down box Select Calendar The drop down box is populated with a list of all the calendar titles When a title is selected the content ID textbox is filled with that content block s id number If you insert the calendar ID you do not need to select a calendar Dynamic Content To make this calendar dynamic select calendar_id When you do this server Parameter control uses the calendar passed as a URL parameter Used in ASP NET only CalDisplayType Specify the Calendar view type The default is Month ised in ASP NET only e Month A 30 day calendar month view e Day Single day view e Inline Display events that occur from the start date of the calendar through the end date e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 300 Field Description ShowXML Used in ASP NET only At runtime output the raw XML data instead of the calendar With this XML data you can apply your own XSL to create your own custom display formats Default is Unchecked Checked Show raw XML data C Unchecked Show Calendar Hide Used in ASP NET only
572. server gt lt cms ListSummary gt lt form gt lt body gt Shown below is an example of the code that is inserted Platform Code View NET lt cms ListSummary id ListSummaryl FolderId 14 DisplayXslt ecmTeaser runat server gt lt cms ListSummary gt ASP lt ecmListSummary Human Resources 1 1 DateModified desc DateCreated 0 _ gt ColdFusion lt cfmodule template request ecm AppPath ecmListSummary cfm Folder Human Resources MaxNumber 0 Recursive 1 ShowSummary 1 StyleInfo OrderBy DateModified desc ShowInfo DateCreated gt JSP lt ecmListSummary Human Resources 0 1 Title asc DateModified 0 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 351 Platform Code View PHP lt php ecmListSummary Human Resources 1 1 DateModified desc DateCreated 0 gt Login For a description of the Login button see Login Server Control on page 143 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt CMS Content Controls To insert a login button 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click Login 3 The Insert Ektron CMS400 NET Login box appears Inse
573. sited The BreadCrumb server control displays history breadcrumbs Your site visitors can use the breadcrumb trail to jump to previously visited pages The breadcrumb trail can appear vertically or horizontally on a Web page In addition you can define how many breadcrumbs 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 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 gt FAQ gt WebForm gt PR and then return to FAQ the breadcrumb trail looks like this Dev gt FAQ Breadcrumb Trail Type Horizontal text only Example Dev gt WebForm gt pr gt FAQ gt Meta Horizontal with images Horizontal with images and Alt text Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 59 BreadCrumb Server Control Breadcrumb Trail Type Example Vertical text only gt Dev gt WebForm gt pr gt FAQ gt Meta Vertical with images DEV gt Vv Vv v Vertical with images and Alt text DEY gt Vv Vv Vv ofl You should add a BreadCrumb server control to every Web form in your site Doing this ensures that a breadcrumb trail is created for each Web page This subsection c
574. solid e border left c9bda5 2px solid e font weight bold e font size 9pt e background A5B7C9 e font family arial Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 623 Style Class Description Attributes and Default Settings mv_MonthHeaderNext The button for moving the calendar to the next month The following example shows the month header next background in red lt lt hoot May Santry Monday Tuesday Wechesdey Thurecdsy tretay Saturchry WA a Wl a aa a Wis Bas BAe Baz SS a WS yn Wale a alas Alaa 6 Ga 5d B se Ss Bar od Bl we Ss lag Uo B 0 ed Glas zd Alz So Sl 23 Ss Alz Sd l 25 Ss Als Sd SB 27 d Size F Ala od Sl 20 Sd Alas e font weight bold e fontsize 9pt e background transparent e font family Arial e text align right mv_MonthHeaderPrev The button for moving the calendar to the previous month The following example shows the month header previous background in red May dune gt gt Sasrvcay Monday Tuesday Wedeesday Thurecdsy trictey Sanada Al W a aa na Bas a n Ws Balz 3S a WS 2 Sli Wn a Wales a Td Glas Td SJ 16 aAa To SB we Ss Gl so ToS 20 TS Alan Faz IA a Bl 2e A 2s Ss Aloe ed Bar Ss Alo 6 Alz 5d A wo 5 Blas e font weight bold e fontsize 9pt e background transparent e font family Arial e text align left Ektron CMS400 NET Developer Reference Manual Version
575. ssed HTML or XML from ContentBlock Web Service lt b gt lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt amp strProcessedHtml amp lt td gt lt tr gt SstrHTML strHTML amp lt table gt Earlier in the news aspx vb file the strProcessedHtml variable was defined as strProcessedHtml wsCms400WebService ContentBlock ilId So the strProcessedHtml variable uses the wsCms400WebService ContentBlock method to retrieve content in processed format Here is the resulting section of that page As you can see the content appears as within a browser RC International Announces the RC Cheetah January 14 2001 RC International a leading RC racing company has announced the availability of its new flagship product the RC Cheetah After nearly two years of development the RC Cheetah is designed to compete at the highest level in the RC racing arena The excitement level of the hard core enthusiasts can be felt at all the demonstrations of the RC Cheetah The RC Cheetah price performance ration is simply incredibie stated Bob Dickerson RC International VP of engineering The RC Cheetah has been devastating its competition in all the pre release races and we expect that to continue The major industry magazines are agreeing with Mr Dickerson s assessment RC Magazine has tested the RC Cheetah head to head with the competition s best and they concluded There is no comparison between
576. ssnscannnsnassan 460 RSS Summary EXAM ple jsicccciccscscccsscascccccssncnstencaskenetenessnbwersaese 460 RSS Summary AMC wtes niiin naa 463 Stafin ROIS omiin aa Aa 463 FRECUISING nania aa aai 463 Order sconna a E a a err 463 Ascending DeSCending sessin sameina 464 Mar INUIMDG aissa a A uageatanensees 464 Co llection PUNCUHOM cscssscscnsnsecsccsssssnssnnseaensnancsesenanesuscacecasnannes 465 Collection EXaim lO scisccisicacescccsscasescccnscasesscunsuncntennasnnemcenscnscass 465 The ecmNavigation Display Function cceceeesseneeeeeeeeeeenees 465 The ecmTeaser Display Function ccccccsssececeeeeseeeeeeeeeeseeneee 466 Collection Attributes ssasisissccsassscassssscdasssiscssiassansesdasseesdveraneans 468 EAE E TEA E AE AA A E A AT AT T NT 468 DISPlay PUNCUOM EE E A E E E E E E 468 RSS Gollection FURCUOM sicicciiisissssanissndsintessesieosecinazenanancies 469 XML Collection FURCHON iisiticsccccnciiciniverticivnnnnnnnn 471 Random COMTGIN sssri aa 476 Random Summary snsincinsissibn nn nnnNaiNuis 477 Event Calendar Fun ction sscssccssssssessesssesseenseeeseeseees 478 Event Calendar Style Sheet nnnsssunnnennnnnnnnnnnnrnnnnnnnnnnnnnn nnne 478 Event Calendar Sample siiccccccccssccccccstessscccsuseccesensesecuesescetereesuae 478 Calendar FUNCOM icsscssnssscessssssisessensssnssnascsassasisasscessinnreesinns 481 Calendar Style SiGe sic iiir aaea aaaea 483 Event Calendar Saiip scccccsccccccce cscs ee
577. st 192 168 0 219 Content Type text xml charset utf 8 Content Length length SoOsPaction urn ektron webservices content cms300 v21 GetContentBlock If the user does not select a content block which is true when the page first appears the page uses the ListSummary method to display all blocks in the marketing news folder using the List Summary format Else strHTML wsCms400WebService ListSummary Marketing News 0 1 Title asc DateModified 0 T The ListSummary method retrieves the content blocks as an HTML string so the page looks like this Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 574 Latest News RC International Announces the RC Cheetah 8 27 2002 2 43 01 PM RC International a leading RC racing company has announced the availability of its new flagship product the RC Cheetah RC International Hosts RC Conference 8 27 2002 2 44 44 PM RC International the fastest growing company in the RC industry announces plans to host the 3rd annual RC conference in Atlanta Georgia RC International Ships RC Sportster 8 27 2002 2 46 12 PM RC International an emerging leader in the RC racing industry has begun shipments of its first product RC Sportster The RC Sportster is designed to compete with the entry and mid level RC racer currently on the market The News aspx Sample XML The news aspx sample file in the cms400demo WebServiceDemo folder includes al
578. st 400px 6 On the code behind page add the following line Textboxl Text Metadatal XmlDoc InnerXml 7 Build the project 8 View the Web form in a browser 9 The XML structure of the MetadataList appears in the textbox Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 175 Poll Server Control Poll Server Control The Poll server control displays a poll or survey created from an Ektron CMS400 NET 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 The Great Pizza Poll Pepperoni Sausage Mushroom Onion O Veggie All Meat Hawaiian While you can use a FormBlock server control to add a poll or survey Ektron recommends using a poll server control because it provides greater flexibility on the poll s appearance Typically developers or site administrators want a poll or survey to be a small part 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 disturbing the surrounding content For a detailed description of these properties click on them or see Poll Server Control Properties on page 176 This subsection contains the following topics e Poll Server Control Properties on page 176 e Automatic versus Manual Generation of Form Tags on page 178 Poll
579. st of You Foo Fighters Best of You by Foo Fighters from the album In Your Honor Bonus Video Version Nan t Dhank Wih Mu Heart Rilacl Fved Deac v 5 The page appears with an RSS list of information Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 181 Search Server Control Search Server Control Introduction The Search server control displays a text box with a search button on the template The search is highly customizable and allows you to provide a basic search a standard search or advanced search The different types of searches are explained in Using the Advanced Search Properties on page 206 Below is a visual example of the different searches Description Web Page View A Basic Search a A Standard Search ae Search All the words Any of the words Exact Phrase C Match Partial Words An Advanced or Mixed Search Content Forms DMS Assets Jimages Files Hyperlinks C Intranet Folders Only sen ooo All the words O Any of the words Exact Phrase E Match Partial Words When users perform a search using the Search server control they can be looking through Ektron CMS400 NET content DMS assets forms and library items To learn more about configuring the Search server control to search Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 182 Search Server Control different conte
580. style sheet for String Using a Style Sheet on the submenu For example page 216 csslib mytest css Leave blank to use the default global css is the default style sheet It is located in webroot Workarea csslib SuppressWrapperTags Suppresses the output of the span div Boolean tags around the control The default is False True Suppress wrap tags False Allow wrap tags Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 196 Search Server Control Property Description Data Type For more information see TargetFolderDescription List A comma delineated list of folders to search The target folder list uses the Description property of a folder to define which folders are searched This is an optional property If you use this property it will supersede the FolderlD property The default is blank Below is an example of the syntax used Football 1 News Headlines 0 Football News and Headlines are the folder descriptions The ones 1 and zeros 0 define whether a site visitor is forced to search the folder or not 1 Automatically search this folder 0 Do not automatically search this folder String TargetFolderDescription List on page 205 Text Box Size The size of the display text box for user input The width is based on the number of characters Integer Text Box Examples on page 199 WrapTag Allow
581. summary for a content block Single Summary Function on page 560 Calendar Function Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 The ecmCalendar function displays a calendar that has been created in Ektron CMS400 NET Here is the format for the event calendar custom function lt ecmCalendar int calendarID String displayType gt 545 NOTE While you can display a month view calendar with ecmCalendar you can also use ecmEvtCalendar to display a month view calendar For more Information see Event Calendar Function on page 546 This function is basically the same as the Calendar function in ASP See Calendar Function on page 481 for details The only difference between the JSP function and the ASP one is the syntax for implementing it Calendar Sample Here is an example of the Calendar function in an Ektron CMS400 NET template lt tr gt lt td gt lt ecmEvtCalendar 24 MonthUpWithEvent gt lt td gt lt tr gt Event Calendar Function The ecmEvtCalendar function is used to display an event calendar that has been created in the Ektron CMS400 NET Workarea lt ecmEvtCalendar int calendar id gt This function is basically the same as the Event Calendar function in ASP See Event Calendar Function on page 478 for details The only difference between the JSP function and the ASP
582. t lt span gt You would add results to the property as shown below MaxCharacters MaxResults MaxTeaserLength OrderBy OrderDirection PostResultsAt Recursive ShowExtendedSearch ShowSearchBoxAlways ShowSearchOptions Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 198 Search Server Control Text Box Examples Value Web Page View 10 Search All the words C Any of the words Exact Phrase l Match Partial Words 50 oo Search All the words C Any of the words Exact Phrase I Match Partial Words Button Image Source Examples Value Web Page View blank oo Search All the words C Any of the words Exact Phrase Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 199 Search Server Control Value Web Page View search jpg Search All the words C Any of the words Exact Phrase l Match Partial Words http www ektron com images search jpg Search All the words C Any of the words Exact Phrase I Match Partial Words Search Button Text Examples Value Web Page View Click Me to Search Click Me to Search All the words C Any of the words Exact Phrase I Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 200 Search Server
583. t p amp gt gt lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 3 7 2006 2 02 19 PM lt pubDate gt lt item gt lt item gt lt title gt Ektron Announces Winner of All Stars Customer Competition lt title gt lt link gt http 192 168 0 82 CMS400Demo Developer ListSummary pr aspx id 292 lt link gt lt description gt lt CDATA amp lt p amp gt amp lt em amp gt All Stars competition identifies the most innovative and effective implementations of Ektrons Web solutions and tools amp lt em amp gt amp lt p amp gt gt lt description gt lt author gt Application Administrator lt author gt lt pubDate gt 3 6 2006 10 51 52 AM lt pubDate gt lt item gt lt channel gt lt rss gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 462 RSS Summary Function RSS Summary Attributes Listed below are all the different attributes and descriptions about them Starting Folder In this attribute you will need to specify which content folder you will want to get all the summaries from There are two options for this attribute Value Description By leaving the value blank all the summaries from the root content folder will be displayed Folder You can specify a specific folder to display the Path summaries from by inserting the folder path Recursive When you setup the sea
584. t server gt lt cms Collection gt lt form gt eer Cwhaw s 7 ies Shown below is an example of the code that is inserted Platform Code View NET lt cems Collection id Collectionl DefaultCollectionID 6 DisplayXslt ecmTeaser runat server gt lt cms Collection gt ASP lt ecmCollection 6 ecmNavigation gt ColdFusion lt cfmodule id 6 displayFunction ecmNavigation template request ecm AppPath ecmCollection cfm gt JSP lt ecmCollection 6 ecmTeaser gt PHP lt php ecmCollection 6 ecmNavigation gt Content Block This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt Content Controls For a description of the Content Block function see ContentBlock Server Control on page 91 To insert a content block Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 306 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Content 3 The Insert Content box is displayed Ektron CMS400 Content control Displays and manages a content block Control ID ContentBlock1 Content ID Select the category to retrieve list of content Select the content block to insert into the page Dynamic Content Parame
585. t summary for reading by an aggregator An aggregator consumes an RSS feed and displays it to the user An aggregator is similar in function to a portal There are several popular aggregators including e AmphetaDesk http www disobey com amphetadesk e NewzCrawler http www newzcrawler com The RSS Specification The RSS specification is a document http oackend userland com rss Ektron has implemented the specification but you can customize the RSS classes to support advanced features RSS Syndication in Ektron CMS400 NET Ektron CMS400 NET allows you to syndicate content by using NET Syndicating via NET requires that you have the Microsoft NET framework installed on your computer With Ektron CMS400 NET you can syndicate a collection and a list summary via RSS Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 580 Syndicating via NET Syndicating via NET Architecture of RSS Syndication aspx pages You can use an aspx page as a URL to dynamically create and return RSS documents To display an RSS feed on a Web site the site administrator identifies the URL of the aspx page The aggregator determines how to use the document s elements such as lt title gt lt description gt and lt link gt to display the syndicated content The sample aspx templates RSS_ListSummary aspx and RSS_Collection aspx are installed by default to localhost cms400demo folder They use the Web
586. t 483 F rm FUNCOM sirrcna 485 M ltiPurpose FUNCOM siisesiscsisanisnsiiansinnideassansansevsasaniaannnnnsians 487 Metadata FUNGUO Nisisirissnns anean 488 Greating ai item List id eirian neioii esd hence 488 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xvii ecmMetadata Example ccccsssseeccesseeeeeeeseeeeeeeeeseeeeeeenseees 489 More ecmMetadata Examples ccseeccsseeeeeeeseeeeeeeeeeeeeeeeees 490 Using a Dynamic Metadata TAG ecssisscsonscasssacnetseapssacnetansasiaarnats 491 ecmMetadata Attributes cscisincssccccsescctcsnssececcarsteecesearstercetennscece 491 Ley np it ils Esenas a terrier eererer tere rece entree 491 DANS Tennem a a A E RE 493 Show Site Language Function ccccesssseeeeceteeeeeeeeeees 494 DATML MENUS ss cpaanatuasnsesbaeroenrenanenaneonian ni Naeioeeeeseaelae 495 Additional Documentation in Ektron Knowledge Base 495 Displaying a Menu on a Web Page cscssssseessssneeeneeeseees 495 GenerateMenu and DropMenu cccccceeeeeeeeeeeeeeeeeeetetaeeteees 495 Displaying Menus in a Multi language System 0 cceeeeee 496 Customizing the Menu s Appearance cssssseeeeeseeeeeees 496 k MENUJS sscciss ctcssatiss ctscs stccecascncgerentcenterinaceiatneantaerntetacteeiatecaee 496 Fon a 0 a tre tercee rrr rerc crete cre ret creer 498 MOENULISB OC OlO less stcncsrudsscczeeseiesesisareeressscsdnuniesasceerueiesataeawaihacteey 498
587. t Calendar Function Event Calendar Function The ecmEvtCalendar function displays a month view event calendar that has been created in Ektron CMS400 NET Here is the format for the event calendar custom function lt ecmEvtCalendar id gt NOTE You can use ecmCalendar to call a calendar and display a different view such as daily For more Information see Calendar Function on page 481 The id argument represents the ID number of the event calendar in the Workarea View Calendar Calendar Example Title Calendar Example i Description Location Location Start Time Start End Time End Table Properties Event Calendar Style Sheet Before you insert an event Calendar into your Ektron CMS400 NET template you should make a reference to the style sheet CMS400Demo Workarea csslib calendarStyles css in your template This style sheet contains styles that define the Calendar Event Calendar Sample Here is an example of an event Calendar in an Ektron CMS400 NET template lt Er gt lt td gt lt ecmEvtCalendar 1 gt lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 478 Event Calendar Function When this code is displayed in a browser the Calendar with an ID 1 is displayed Here is the calendar displayed on a Web Page If Calendar Display Logged in Monday Tuesday Wednesday Thursday Friday 5J 1 a 2 F
588. t May Ane ooo EM nARR NS Mosam vne a OURAN oo Fa DA 2 VA GAl G Walz Hocker am Sle SS PAo BA Aa SA a Bau Your hockey ana Bastatbal aam froma 3 Als Wa w So Baz Sd Qe SS Qe SR w A Fala WS 2 eal Ses WA BA a2 Bales Falo DA w Salm e background c5daef e font family arial e font weight bold e font size 8pt e border top c9bda5 1px solid e border bottom c9bda5 1px solid e border right c9bda5 1px solid e border left c9bda5 1px solid e text align center Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 622 Style Class Description Attributes and Default Settings mv_MonthHeader Month header The following example shows the month header background in red st tay sn Suday Monday Tuesday Wednesday Thersdey Friday Saturday DA a A 2 Aa A a A o A cs A tieaey ARTs WA e SS 2 An Wi an Sa a Wau Yah hockey Arena Baskett game Foghat WA A 6 Aa A a A A w Aa SJal 6S 23 d Ala Sd Sas a Se Se A 2 d Sle 7d BJ 2e 7s amp 30 Ts Alas e font weight bold e font size 12pt e background transparent e font family Arial mv_MonthHeaderBkg Month header background The following example shows the month header background in red Hachss aame 2 2 1 i 12 n 14 Youth haches Arena Oesbemal game Focthat 1 1 12 16 1 2 a z 2 24 25 z zz 2 e border right c9bda5 2px solid e border top c9bda5 2px
589. t Title Comment This is the lt b gt body lt b gt of the content This is the lt i gt summery lt i gt for the content 2033 07 SS lt td gt Sens Content Block Function The ecmContentBlock and ecmContentBlockEX functions are used to display a content block on an Ektron CMS400 NET Web page Shown here is the format for the ecmContentBlock function lt ecmContentBlock int id gt Here is the format for the ecmContentBlockEX function lt ecmContentBlockEX int id String xslt int Overrideld gt These function is basically the same as the Content Block functions in ASP See Content Block Function on page 416 for details The only difference between the JSP function and the ASP one is the examples of implementing it The JSP examples are below Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 549 Static Content Block lt tr gt lt td gt lt ecmContentBlock 1 gt lt td gt lt tr gt Dynamic Content Block lt tr gt lt td gt lt ecmContentBlock id gt lt td gt lt tr gt XML Content Block lt tr gt lt td gt lt ecmContentBlockEx 13 W 1 gt lt td gt lt tr gt Form Function The ecmFormBlock function displays an HTML form content block This function has a parameter that lets you decide whether to have form tags added automatically or manually The following is
590. t XML Configuration s id number If you insert the XML ConfigID you do not need to select a XML Configuration FolderlD The numeric id of the folder that you want to search If you do not know the folder path you can navigate to it using the Select folder drop down box Select Folder Select a folder path to be searched When a folder is selected the folderlD textbox is filled with that folder s id number If you insert the Folder ID you do not need to select a folder Search Parm XML This property preserves settings that a developer would create in Visual Studio Weighted If this value is checked content blocks are ranked by the number of criteria matches For example if a content block matches all search criteria it appears at the top of the results page A hit marker appears for each match If a second content block only matches one criterion it also appears on the results page underneath the first content block One asterisk appears above the page s title to indicate the single match Checked display every content block that matches at least one search criteria C Unchecked show only content blocks that match all search criteria ShowSearchBoxAlways If set to unchecked the search box does not appear on when the results are posted to the Web page Recursive Determines whether the XML Index Search Control uses this folder s child folders in the search LinkTarget Defines th
591. t and calculation field types Data in other field types cannot be validated For these field types you can assign standard and custom validation checks The checks are applied when data is inserted into one of the field types and when the user tries to save a Data Design document whose fields have validation attributes You can modify the standard options and enter your own criteria for each field You can also establish dependencies between fields For example a value is only required for a field if a certain Checkbox field is checked Validation Elements in the Configuration Data The default configuration file includes standard validation options for plain text and calculation field types lt validation name calculation gt lt choice name none treeImg text gt lt caption localeRef dlgNV8n gt lt schema datatype string gt and lt validation name plaintext visible false gt lt choice name none treeImg text gt lt caption localeRef dlgNV8n gt The validation sections let you control the drop down list of validation choices for a field type for example Plain Text Here is an overview of that section of the cms_config aspx file lt datadesign gt lt validation gt 0 or more lt choice gt 0 or more lt caption gt lt schema gt lt calculate gt lt regexp gt OR lt script gt OR lt xpath gt lt validate gt lt regexp gt OR lt script gt OR lt xpath gt lt errormessage gt
592. t button allowing the user to access their workarea Workarea Preview On Lets the user to preview the entire Web site as if all checked in content was published Preview Preview Off Turns off preview mode Preview This function is basically the same as the Login function in ASP See Login Function on page 414 for details The only difference is the syntax used to implement the function This is listed below Login Function Example lt tr gt lt td gt lt php ecmlogin gt lt td gt lt tr gt Content Block Function The ecmContentBlock and ecmContentBlockEX functions are used to display a content block on an Ektron CMS400 NET Web page Shown here is the format for the ecmContentBlock function lt php ecmContentBlock ID gt Here is the format for the ecmContentBlockEX function lt php ecmContentBlockEx ID XSLT Override gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 524 NOTE As an alternative you can use the multipurpose function which can display either a content block or a content block associated with a form For more information see MultiPurpose Function on page 537 This function is basically the same as the Content Block function in ASP See Content Block Function on page 416 for details The only differences between the PHP function and the ASP one are the examples of implementing it The PHP examples
593. t e 16px Arial sans serif only works when called by the e text align e center CssClass e text decoration e none property Use the Font property in the Appearance category to define root menu text itemBorder Border color and e border e 1px solid 666666 size of the menu itemBorderBlank Separator border e border e 1px solid CCCCDD color and size of the menu Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 644 CMS400Demo css This file is located in webroot CMS400Demo It is used to customize the look of the Ektron Medical Demo site Developer Styles css The Styles css file is located in webroot CMS400Demo Developer Itisa general style sheet provided for creating a new Web application project Default css This file is located in webroot CMS400Demo Developer Itis the default CSS file for the Developer Web site ASPX files List Summary OrderedList css The OrderedList css file is located in webroot CMS400Demo Developer ListSummary Itis used to format the ListSummaryOrderedList aspx page List Summary unorderedlist css The unorderedlist css file is located in webroot CMS400Demo Developer ListSummary It is used to format an unordered List Summary Collection OrderedList css The OrderedList css file is located in webroot CMS400Demo Developer Collection Itis used to format the CollectionOrderedList aspx page Collection unorderedlist css
594. t in the metadata of a content block and using that content block s ID in the DefaultContentID property See Also Using the DefaultContentID and MetaTag Properties on page 105 Second by adding a comma delimited list of content blocks to Contentlds property See Also Using the ContentID Property to Display a Content List on page 109 Using the DefaultContentID and MetaTag process an administrator typically sets up the Workarea portion of the process Then a developer adds the server control to a Web form assigns the ID of the content block and the metadata name to the appropriate properties Because the content list in this process 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 have defined Using the Contentlds process a developer adds ContentList server control to Web form Then defines a list of content IDs in the Contentlds property Once the server control is deleted or the list in the Contentlds property is deleted It is not available and will have to be created again This subsection contains the following topics e ContentList Server Control Properties on page 100 e Using the DefaultContentID and MetaTag Properties on page 105 e Using the ContentID Property to Display a Content List on page 109 ContentList Server Control Properties The ContentList server control properties are described in this table Ektron
595. t part of the page In addition Ajax Searches are faster than traditional searches See Also Search Server Control on page 182 e The HTMLEditor server control displays the Ektron CMS400 HTML editor on a Web page By adding the HTMLEditor to a Web page site visitors can create or edit HTML content for a site or project Below is an example of the editor with the default toolbars See Also HTMLEditor Server Control on page 122 e The ContentList server control displays a list of content blocks created from a comma delimited list See Also ContentList Server Control on page 100 e The FolderBreadcrumb server control displays a sitemap style breadcrumb trail on your Web pages See Also FolderBreadcrumb Server Control on page 69 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 iii e The DesignTimeDiagnostic server control is used to verify the connection to Ektron s server controls Web service See Also DesignTimeDiagnostic Server Control on page 115 e The Sitemap server control utilizes the folder breadcrumb information in the Workarea to display a sitemap of your site See Also SiteMap Server Control on page 235 e Added list of additional developers resources See Also List of Developer Resources on page 2 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 iv Summary Table of Contents Securing Ektron CMS400 NET cccccccsssesssseeeeeese
596. t recent content block ShowExtendedSearch Allows a user to search via Searchable Boolean ShowExtendedSearch Property metadata on page 202 True Show extended search For more information on False Hide extended search Metadata and Search type metadata only a rs on Seal ape Property the sie screen if the Ma i oi see the Administrator true 9 Manual section Metadata e this property is set to True e the ShowSearchOptions property is set to True e atleast one content item in the starting folder and its subfolders if recursive Is Set to true has searchable metadata applied to it Note The folderlD property determines the search s starting folder ShowSearchBoxAlways If set to false the search box does not Boolean appear on PostBack The default is True True Display search box on PostBack False Do not display search box on PostBack Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 195 Search Server Control Property Description Data For more Type information see ShowSearchOptions If set to true the following choices Boolean Basic and Standard appear along with the search box This Searches on page 208 type of search is also known as a Standard search The default setting is True e All the words e Any of the words e Exact phrase e Match Partial words True Show search options False Hide search options Stylesheet Specify the location and
597. t you with inserting a Random Summary tag Field Description Collection ID Type in the collection ID or select it from the drop down list of the collection where the random summary function will retrieve summaries from 5 When completed click Insert A graphic to define where the Random Summary tag will appear on your template is inserted i Test page for rend lt ecm_showrandomsummary gt lt ShowRandomSummary 4 gt lt ecm_showrandomsummary gt Shown below is the code that will be inserted according to the platform that has been specified in the setup Platform Code View NET This function is not available as an Ektron Dreamweaver Extension for NET ASP lt ShowRandomSummary 2 gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 372 Platform Code View ColdFusion lt cfmodule id 2 template request ecm AppPath ecmShowRandomSummary cfm gt JSP lt ShowRandomSummary 2 gt PHP lt php ShowRandomSummary 2 gt RSS Aggregator For a description of the RSS Aggregator function see RssAggregator Server Control on page 179 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt CMS Module Control To insert an RSS Aggregator 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click RSS
598. tLegend e Hide e Language e LibraryFieldsetLegend e MaxCharacters e ShowExtendedSearch e ShowSearchOptions e Text Box Size e WrapTag e ButtonImgSrc EnableArchived e DisplayXslt e ButtonText EnableContent e EmptyResultMsg e ContentFieldsetLegend EnableDMSAssets e Hide e Display EnableForms e Language e EnableAdvancedLink EnableLibFiles e LinkTarget e EnableArchivedBtn EnableLibHyperlinks e MaxResults e EnableContentBtn EnableLiblmages e MaxTeaserLength e EnableContentFieldset FolderID e OrderBy e EnableDMSAssetsBtn Language e OrderDirection e EnableFolderFieldset Recursive e PostResultsAt e EnableFormsBtn ShowSearchOptions e RemoveTeaserHtml e EnableLibFilesBtn TargetFolderDescription e ResultTaglid e EnableLibHyperlinksBtn List e ShowDate e EnableLiblmageBtn e ShowSearchBoxAlways Property Descriptions The following table describes the Search server control Properties See Also Property Usage Table on page 184 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 185 Search Server Control Note The following table only lists Ektron specific properties It does not describe native NET properties such as font height width and border style For documentation of these properties see VisualStudio help Property Description Data For more Type information see Authenticated Indicates if you are logged in to the String Using CM
599. tatic CoOMmbINAtiOM s scccedisiccsascasassccccedasin a 423 Add Contei siron kree AAEN 424 Add Content Example ssssunsnsennneennnunrsnennnnennnnnnnnennnnnnnnnnnn nnn 425 eg 428 Search Tag Exaile sscsccsisacscsncccserseccncccwccareceenwecenacentaceseutesewcace 430 Search Tag AMMDUICS isccsccccscsscossccsascsessetsnccsenuacacsemeececsczetenrsdats 431 SHANE ONO ON esiseina eiee E Edi 431 FROCUISIVG ngrira AA E 431 EEA E E E E E 431 TEAT BOK sat accesSsccasaaectadaaaeacegs 2isceagennaseeccedeaaaeeddasseveedeadesstviectecamisade 432 Maxim m MANA CIO YS iv aterieceatatedeceetatinadea dened mettinan catia 432 Button mage SOUCC S cristcessesecenssrnteadoanisssinses aiaa 433 PSTLONN TEX bannann aa aaia 434 Font Fatessa a aN 434 FO O ace e E 436 FIOMIZOMTAl iosssisiasrseessusenszaessasnanns ters nsisnonsdaees a ceeianeanebrandqesisene 436 Sof e Uy leer eeemeenr rt rteee er enter reerer ter tenrtrerrnrrrreserter rere rene rerrereetrnrrr tere 437 Search Display FUNCION cccccscccsscssscesssescccnssesnasanecssescesenscanns 438 Search Display Example a scicascccccansaccnccccnsaccnccncnanocsiarandnacesnacce 438 Search Display with Default Content ccccceeeeeeceeeestteeeeeeees 439 Search Display Attributes sccccsceseeeeeeeeeeeeeeeeeeeeeeeeneeenes 439 Max Number of Content Blocks Returned ccseeeeseeeeeeeeeees 440 SM E A N TE N E A 441 SMOW DELS i Sasnneacsaaieincaandsaiaanseaatiareitensesaasannes 441
600. td gt lt tr gt When this code is displayed in a browser the Calendar with an ID of 1 and DisplayType of MonthUpWithEvent is displayed Here is the calendar displayed on a Web Page If Calendar Display Logged in Notice the add event and view event buttons that appear when logged in lt lt May June 2005Jul 2 6 9 2005 Mon Tue Wed Thu Fri Field Hockey 1 l2 l3 Location High School Start 5 00 PM 6 7 amp 9 10 End 8 00 PM 13 14 15 16 17 20 21 22 23 24 27 28 29 30 2004 2005 2006 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 483 Calendar Function If Calendar Display Logged Out lt lt May June 2005Jul gt gt 6 9 2005 Mon Tue Wed Thu Fri Field Hockey ihata Location High School Start 5 00 PM 6 7 8 9 10 End 8 00 PM 13 14 15 16 17 20 21 22 23 24 27 28 29 30 2004 2005 2006 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 As you can see when you are logged into the Web site you can add and view Calendar events When logged out you can only view calendar events 484 Form Function Form Function The ecmFormBlock and ecmFormBlockNoFormTag functions display an HTML form content block Both functions have the same parameters and display the form the same way The only difference is ecmFormBlock automatically inse
601. td gt lt b gt Date Created lt b gt amp glsCms400ListSummaryResult Item iLoop DisplayDateCreated amp lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt lt b gt Date Modified lt b gt amp glsCms400ListSummaryResult Item iLoop DisplayDateModified amp lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt lt b gt Modified By lt b gt amp glsCms400ListSummaryResult Item iLoop EditorFname amp amp glsCms400ListSummaryResult Item iLoop EditorLname amp lt td gt lt tr gt StrHTML strHTML amp lt tr gt lt td gt lt b gt Content Teaser lt b gt lt td gt lt tr gt strHTML strHTML amp lt tr gt lt td gt amp glsCms400ListSummaryResult Item iLoop ContentTeaser amp lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 575 strHTML strHTML amp lt tr gt lt td gt amp nbsp lt td gt lt tr gt Next This code loops through all content blocks in the Market ing News folder For each block the page uses the Web Service method glsCms400ListSummaryResult Item iLoop to display the following XML data e Content ID e Content Title e Date Created e DateModified e Modified By e Content Teaser The result looks like this Latest News Content Block Information Return from the GetListSummary Web service call Content ID 11 Content Title RC International Announces the R
602. te Modified the last date the content was modified e Date Created the date the content was created e Last Author First Name the last editor s first name e Last Author Last Name the last editor s last name e OrderOfThelds preserves the content ID order based on the list in the Contentlds property Display Type Determines how information on the page is displayed None databind only ecmNavigation lists the title of each content block See Also Example of ecmNavigation Display on page 85 ecmTeaser lists the title of each content block plus the content summary See Also Example of ecmTeaser Display on page 85 ecmUnOrderedList sorts the list in no particular order Shows the title and content summary Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 312 Field Description LinkTarget Defines the way a link acts when a link is clicked _blank This target causes the link to always be loaded in a new blank window This window is not named _ self This target causes the link to always load in the same window the anchor was clicked in This is useful for overriding a globally assigned base target _ parent This target makes the link load in the immediate frameset parent of the document This defaults to acting like _self if the document has no parent _top This target makes the link load in the full body of the window This defaults to acting
603. te of the lt standard gt element to determine if an invalid document should be saved This attribute lets you decide if a user can save an XML document when the data in one or more fields does not satisfy the validation criteria In Data Entry mode an example would be if a field requires a non negative whole number but the user does not insert a value in that field If the publishinvalid attribute s value is t rue content is not checked for validity when it is saved If false the content is checked for validity during a save If the content is valid it is saved If it is invalid the user is notified and a custom script can be created to allow the content to be saved or prevent it Ifthe publishinvalid attribute is not defined in the lt standard gt element the default is true so that Ektron CMS400 NET is backwards compatible with previous releases Custom Script that Handles Saving Invalid Files To determine whether or not an invalid XML document should be saved write a client side script that is called when invalid content is found The routine should ask if the user wants to save the invalid content The script should return True to save the content or False to abort the save Below is an example of such a script lt script language JavaScript1l 2 gt eWebEditPro instances MyEditor1 onerror myOnErrorHandler function myOnErrorHandler Ektron CMS400 NET Developer Reference Manual Version 6 0 for
604. te the calendar displays Used in conjunction with the EndDate property For example you have a calendar that shows only classes for the next three month semester Date WrapTag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an inline portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag String Calendar Style Sheet Before you insert a Calendar into your Ektron CMS400 NET template Ektron recommends referencing the style sheet webroot CMS400Demo Workarea csslib calendarStyles css in your template Copy the style sheet to your webroot folder then add it to your project Next create a reference to calenderStyles css For example html gt lt head gt lt title gt Company Calendar lt title gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 80 Calendar Server Control lt link href calendarStyles css rel stylesheet type text Css JS lt head gt This can also be accomplished via drag and drop If you drag and drop the calendarStyles css from the Solution Explorer to your Web form the reference is created in the HTML automatically For a description of the classes contained in calendarStyles css see calendarStyles css on page 616 Ektron CMS400 NET
605. ted with the content and can be processed in the receiving page e ControlName _Action the action to take save check in undo checkout e ControlName _ConteniTitle the content title e ControlName _Contenild the ID of the content e ControlName _Language the language of the content The content title caption is surrounded with span tags that have this ID e ControlName _TitleLabel All information for all content information fields except the content itself is surrounded with a div tag with this ID e ControlName _ContenitInfo The valid values for the ControlName _Action value are e Publish submit the posted content for publication e Checkin check in the content e Save save the content and redisplay in the editor e UndoCheckout undo the checkout of the content The server control displays the Ektron CMS400 HTML editor on a Web page By adding the HTMLEditor to a Web page site visitors can create or edit HTML Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 122 HTMLEditor Server Control content for a site or project Below is an example of the editor with the default toolbars bX BB SBRMA Brae Yu AO OATHE Apply Style Normal BIU A A i i wpeemei HRs HO eC The HTMLEditor server has two modes e working with Ektron CMS400 NET See Working with Ektron CMS400 NET Content on page 123 e working as an independent Html editor See Workin
606. tension for ColdFusion JSP This function is not available as an Ektron Dreamweaver Extension for JSP PHP This function is not available as an Ektron Dreamweaver Extension for PHP Content XSLT Tag The insert content XSLT command allows you to insert an XML content block and specify an XSLT other than the default to be applied to it This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt XML Function To insert a content XSLT tag perform the following steps 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET XML functions click on Insert Content XSLT Tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 317 3 The Insert Ektron CMS400 NET Content and Apply an XSLT Tag box is displayed Insert Ektron CMS400 Content and apply an XSLT Displays and manages a content block with an XSLT Content ID The XSLT must have a Fully qualified path like C somepathimyxslt xsl XSLT 4 Use the following table to assist you with this form Field Description Content ID Either type in or select from the drop down lists the ID number of the XML content to insert Select XSLT From the drop down list select the XSLT you would like to apply to the XML content block Enter XSLT If Enter XSLT is selected you can insert the path and file name of th
607. ter None v Hide L Visible ofseconds Cachelnterval Positioning info GridLayout Style Wrap tag Span v IMPORTANT When inserting a Content Block using ASP CF JSP or PHP a different dialog box appears Ektron CMS400Platform Content Tag Displays and manages a content block Content ID Select the category to retrieve list of content v Select the content block to insert into the page Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 307 Use the following table to help you insert a content block Field Description Control ID Used in ASP NET only A unique name for the function you are inserting Content ID Specify the ID number of the content block that you wish to use as a content block on the Web page If you do not know the Content ID you can navigate to it using the Select Category and Select Content drop down boxes Select Category Choose the folder where the content is located If you insert the content ID you do not need to select a category Select Content Select the content block to use from the list If you insert the content ID you do not need to select content Dynamic Content Parameter Used in ASP NET only Determines if content is displayed as static or passed dynamically By making content dynamic when the content displayed on a W
608. tered or Ektron Documentation NOTE In addition to the API help Server Control property descriptions are shown when you highlight a property in design view in VS2005 Properties ix Search1 Ektron Cms Controls Search Ea El Ektron kad Authenticated False ButtonImgSrc ButtonText res_srch_btn E API Help in PDF Format From the Desktop Click Start gt Programs gt Ektron gt CMS400 gt Documentation gt API Reference Manual From the Workarea Click Settings gt Help gt Developer s API Reference Manual From www ektron com http www ektron com web content management solutions aspx id 4020 Ektron Support and Product Pages Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 e http Awww ektron com support cems400_support aspx e http Awww ektron com web content management solutions aspx Ektron s Support and Product pages are a great launch pad to learn about Ektron CMS400 NET Supporting Documents You can find more detailed information about Ektron CMS400 NET in the following manuals e Ektron CMS400 NET Administrator Manual e Ektron CMS400 NET User Manual e Ektron CMS400 NET Quick Start Manual e Ektron CMS400 NET Setup Manual Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 Introduction to Ektron CMS400 NET Server Controls Ektron CMS400 NET s server controls let you insert many standa
609. tespace is stripped and return some text all sequences of whitespace get combined to one single space Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 599 Operator Description Syntax Example translate normalize string translate v e translate aed String 12 30 30 45 Result 12 45 e translate 12 30 03 54 Result 12 45 e translate 12 30 0123 a bcd Result bc da boolean Converts the value argument to Boolean bool boolean valu and returns true or false e not Returns true if the condition argument is bool not condition not false false and false if the condition argument is true true Returns true true number true Result 1 false Returns false false number false Result 0 lang Returns true if the language argument bool lang langua matches the language of the xsl lang ge element Otherwise it returns false number Converts the value argument to a number number v number 100 number alue Result 100 sum Returns the total value of a set of number sum nod sum cd price numeric values in a node set eset floor Returns the largest integer that is not number floor num floor 3 14 greater than the number argument ber Result 3 ceiling Returns the smallest integer that is not number ceiling n ceiling 3 14 less than the number argument umber Result 4 Ektron CMS400 NET Developer Reference Manual Versio
610. the RC Cheetah and its nearest competitor In speed handling and price the RC Cheetah out shines them all The RC Cheetah is now available at all RC International distributors and major Hobby stores Please contact RC International to locate a local dealer Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 578 Creating a Page that Provides a Web Service Below are the typical steps you would follow to create your own page that provides a Web Service 1 Decide which content blocks you want to provide Here are some examples a specific content block for example wsCms400WebService ContentBlock 2 would display content block 2 regardless of the URL parameters all blocks in a folder the GetListSummary method s first parameter is folder all blocks in a collection the Collection method s first parameter is collection ID 2 Decide what information you want to provide about those blocks and how to present it Review CMS400 NET Methods on page 564 to find the type of content and the kind of information that is available about it For example if you want to display XML data about content such as content title date modified date created use a method that begins with Get such as GetContentBlock GetCollection and GetListSummary 3 Create a new folder within the cms400demo folder This folder and some of its subfolders have files that are needed to run Web Services
611. the content This value describes the type of content the selected ID refers to If this value is blank then the content is a custom type to be defined type or unsupported type These are the possible types HTML Form String String Integer String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 125 HTMLEditor Server Control Property Value Data Type EditorReadyCall This specifies which JavaScript function to run when the String HTML editor is ready to start processing commands This happens after the initialization of the editor and the loading of the initial content This is the name not the full function definition of a JavaScript function The function must follow the format defined in the eWebEditPro documentation for this type of method Below is an example function initEditorIsReady sEditor strURL strAutoURL Ae win sees where the initEditorlsReady string is given to this property If this string is empty the default CMS method is called EnableUpload If this is true then the user can upload locally selected Boolean images and linked files that they have put into their content If enabled the automatic upload mechanism will allow upload the local files automatically with minimal user intervention If this value is false then the site developer must provide an upload page such as the CMS library where the upload can occur
612. the logo version to display The codebehind looks like this Select Case LanguageAPI1 CurrentLanguageID Case 1031 Imagel ImageUrl germanlogo gif Case 1033 Imagel ImageUrl englishlogo gif Case 1036 Imagel ImageUrl frenchlogo gif End Select Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 132 LanguageSelect Server Control LanguageSelect Server Control The LanguageSelect server control displays a language selection dropdown list on an Ektron CMS400 NET Web page This control lets a visitor to your Web site select a language in which to view the site Here is what the control looks like when published on a Web page Site Language English US z English US French Standard It lists all languages selected on the Settings gt Configuration gt Language settings screen For more information see the Multi Language Support chapter of the Ektron CMS400 NET Administrator manual You can place this control in any location of any page on your site On the sample site it appears in the lower right corner of the home page This subsection contains the following topics e LanguageSelect Server Control vs LanguageAPI Server Control on page 133 e LanguageSelect Server Control Properties on page 133 LanguageSelect Server Control vs LanguageAPI Server Control The LanguageSelect server control lets users view your site in the language they cho
613. the source code for the ecmNavigation display function Function ecmNavigation cInfo dime html R INEO html lt table border 0 cellspacing 0 cellpadding 0 width 100 gt Fortech inion nme rniko html html amp lt tr gt lt td gt amp nbsp amp nbsp lt a href html html amp info ContentLinks htm html st html html amp Cstr info ContentTitle Hem hemi lt a gt lt td gt lt tr gt lt tr gt lt td gt enbsp lt td gt lt tr gt next html html amp lt table gt ecmNavigation html end Function As you can see the ecmNavigation function is a simple ASP function that creates a table of the links to the specified collection It displays the title of the content blocks by using the info ContentTitle building block The ecmTeaser Display Function The following is an example of a collection function being used as a navigation menu in the Ektron CMS400 NET sample Web site lt ecmCollection 2 ecmTeaser gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 466 Collection Function In this example the collection with an ID 2 is displayed and the ecmTeaser function defines the appearance of the collection data on the Web page ecmTeaser displays the title and summary of each content block in the collection Here is how the collection might appear on a Web page RO international Home Products S
614. the template on the Web page a user can enter text and click the search button to search through all the content on the Web site Ektron has created two search functions e ecmSearch e ecmSearchNoFormTag Both functions have the same parameters and perform the same search The only difference is ecmSearch automatically inserts form tags ecemSearchNoFormTag does not The following is an example of form tags lt form name ecmsearch method post action search display asp gt lt form gt When using ecmSearch form tags are added automatically When using ecmSearchNoFormTag you need to add the tags manually Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 557 Here is the format for the search function You can interchange ecmSearch and ecmSearchNoFormTag when using this function lt ecmSearch java lang Siring startingFolder boolean recursive java lang String target int textBoxSize int maxCharacters java lang String buttonlmageScr java lang String buttonText java lang String fontFace java lang String fontColor java lang String fontSize boolean horizonial java lang Object spare1 gt This function is basically the same as the Search function in ASP See Search Functions on page 428 for details The only difference between the JSP function and the ASP one is the syntax for implementing it The JSP example is below Search Function Example lt TR gt lt TD
615. these properties see VisualStudio help Ektron Properties Property Value Data Type Authenticated Indicates if you are logged in to the CMS Explorer and Boolean can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 110 ContentRating Server Control Property Value Data Type CompleteGraph Display Specify a value to indicate how the ratings graph appears if a site visitor has already rated content e horizontal graph appears to the right of the AlreadyRatedMessage e vertical graph appears below the AlreadyRated Message e none graph does not appear String DefaultContentID The ID of a content block being rated by this server control It typically would be the content directly above the rating scale 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 Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Integer DynamicParameter To make this content rating control dynamic select id When you do this server control is attached to the content block passed as a URL parameter String GraphBarColor The color of the bars in the graph String Hide InitialGraphDis
616. this setup again and choose a different language Include Each template requires an include file to point to the API with the definitions for the custom functions Here specify the include file e For ASP use lt include file applicationAPI asp gt e For CFM use Leave blank e For JSP use lt include file applicationAPI jsp gt e For PHP use lt php include applicationAPI php gt Check for Include If checked the Include statement is added to your page Checked is the default Checked include statement added to your page C Unchecked include statement is not added to your page 4 Click Update Setup Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 246 5 A message appears Macromedia Dreamweaver Successful connection to the dreamweaver server file http localhost ans400example workarea dreamweaver aspx has been made and the username and password are correct Working Online will log you out of the CMS400 application NOTE A message other than this is probably due to an incorrect server file username or password Recheck your settings and try again 6 Click OK to continue 7 The setup dialog box closes You are ready to create templates using Macromedia Dreamweaver Editing and Saving Ektron CMS400 NET Content in Dreamweaver Making the process of setting up and managing your Web site easier the Ektron CMS400 NET Dreamweaver extensions allow you
617. tion Login Displays the login or logout button which Login Server Control on page 143 lets the user log in and use Ektron CMS400 NET Membership Creates a form for site visitors to add Membership Server Control on themselves to your Membership users page 146 list Menu Calls a defined menu to be used with an Menu Server Control on page 152 Xslt to display the menu MetaData Adds metadata contained in content MetaData Server Control on blocks to a Web page page 167 MetaDataList Creates a list of content blocks based on MetaDataList Server Control on the metadata contained in the content page 171 blocks Poll Displays a poll or survey created from an Poll Server Control on page 176 Ektron CMS400 NET form on a Web page RssAggregator Aggregates an RSS feed from an RSS RssAggregator Server Control on Web site page 179 Search Inserts a text box with a search button in Search Server Control on page 182 the template The site visitor enters criteria and launches a search of HTML For inf ti ina XML content forms and assets on your Web or ee ormanonon using site Indexing search see IndexSearch Server Control on page 218 Sitemap The Sitemap server control utilizes the SiteMap Server Control on folder breadcrumb information in the Workarea to display a sitemap of your site page 235 For information on other Breadcrumb types see BreadCrumb Server
618. tions Login Adds the login or logout button Login Function on page 552 Menu Functions DropHTMLMenu Used to display a DHTML menu DHTML Menus on page 553 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 544 the menu items properties Function Description More Information GenerateMenu Works with DropHTMLMenu to display DHTML menus DHTML Menus on page 553 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu Function on page 554 Metadata Functions Metadata Search Functions Displays the metadata for the current Web page Metadata Function on page 555 Search Inserts a text box with a search button Search Function on page 557 Search Display Creates an area to display search results Search Display Function on page 558 Summary Functions List Summary Displays a list of content block summaries List Summary Function on page 559 List Summary XML RSS List Summary Creates XML for a list summary by wrapping tags around all of the collection items and their properties This allows you to use an XSLT to define how the XML collection is displayed Creates an RSS feed out of the items in a list summary XML List Summary Function on page 559 RSS List Summary Function on page 559 Single Summary Displays the
619. to apply attributes to a block of code Custom Allows you to use a custom tag Using the DefaultContentID and MetaTag Properties You define a content list in the metadata of a content block Then using the ContentList server control you can display the list of content blocks associated with the content The ContentList server control pulls information defined in the metadata of the content to display the list of content The steps below show an example of using the DefaultContentID and MetaTag properties to create a content list 1 In the CMS400 NET Workarea create a metadata definition in the Name field enter a title of the data This name is used in the MetaTag property for the server control 2 Fill in all of the standard fields See the Ektron CMS400 NET Administrator Manual section Managing Content gt Metadata gt Working with Metadata Definitions gt Adding a Metadata Definition gt Metadata Definition Fields The Type must be Content Selector Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 105 ContentList Server Control Add Metadata definition TestContentList Searchable Property 3 Add the definition to all appropriate folders See the Ektron CMS400 NET Administrator Manual section Managing Content gt Metadata gt Working with Metadata Definitions gt Assigning Metadata to a Folder 4 Fo
620. to perform content related tasks directly from Macromedia Dreamweaver saving you time and effort Through Dreamweaver you can perform the following tasks e Add new content blocks to Ektron CMS400 NET e Edit existing Ektron CMS400 NET content block The following sections explain how to perform these tasks NOTE The user specified in the setup information for the extension will only be able to perform tasks they have permissions to in Ektron CMS400 NET Accessing Manage Content Commands To access the CMS Manage commands menu follow this path Commands gt Ektron CMS400 NET Server Controls gt Edit via Dreamweaver Or Commands gt Ektron CMS400 ASP CF JSP PHP gt Edit via Dreamweaver The path you follow depends on which Dreamweaver Extension you installed If you installed both extensions you can use either one Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 247 A list of all CMS Manage Content commands that can be performed is displayed Clean Up Word HTML w w Add Remove Netscape Resize Fix 3 lt Create Web Photo Album Set Color Scheme Format Ektron CMS400 NET Server Controls Ektron CMS400 ASP CF JSP PHP Edit via Dreamweaver The following sections explain how to use the manage content commands Edit Content The edit content command allows you to get a content block from the Ektron CMS400 NET Web site
621. together in one server control The other seven BlogEntries BlogPost BlogRoll BlogCategories BlogRecentPosts BlogRSS and BlogCalendar display each blog part individually See Also Blog Server Controls on page 43 e The AnalyticTracker server control tracks statistics about visits to your Web site See Also Content Analytics Server Control on page 89 e To collect ratings and feedback about your Web site use the ContentRating server control It places a scale a Web page that allows visitors to rate and comment on content on your site See Also ContentRating Server Control on page 110 e The PostResultsAt property in the FormBlock server control has been removed This is now taken care of in the Workarea It is located on the Post Back Message tab See the User Manual section Working with HTML Forms gt Creating a New Form gt Redirect to an Action Page and Forwarding Form Data e The Business Rule server control adds a Business Rule created in the CMS400 NET Workarea to a Web form See Also BusinessRules Server Control on page 73 e The Forum server control displays a Threaded Discussion Board on a Web form See Also Forum Server Control on page 120 e Ajax has been added to the Search Server Control When you enable Ajax site visitors to have an application like search experience Some benefits of the Ajax Search are paging of search results and being able to place the results on a differen
622. tom b38b3b 2px Galu dw ale Balm Wan waz wAlo solid Fala Td as dA 26 Sd Alar dG an os A ze Ss Glo mv_dayBorder The weekday cell that holds listed events The border right following example shows the day border in red c9bda5 1px This class effects all weekday solid cells except the today cell gaa SEON WA 1 A a A a Bs Ms Bs M7 e border top c9bda5 1px solid Ale BS o WA w WA Ww Ww Wass e background f0e9c5 e border left CERK G 18 S F 7 Td Be TS EPEK EErEE c9bda5 1px solid e border bottom Wiz din eau Bhan Bim Baz Baa c9bda5 1px solid 5a amp 22 aA wo Se n Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 629 Style Class Description Attributes and Default Settings mv_dayBorderWeekend The Weekend day cell that holds listed events The following example shows the day border weekend in red s lt Apdi May Amg Sunday Monday Tuesday Wednesday Thuredsy Pridey Saterchry WA 1 SS 2 dS 2 Sls BOs Bale Ballz boce ame FERE ERPE EREEREER EPE EIEE DA TS Bl WE wz TaT we SA we SA 20 SA 4 22 A mw I amp 2 Ta A 26 Ta GB 26 Ta A 27 Bi iil a 5 bl m i o ts e et E e border right c9bda5 1px solid e border top c9bda5 1px solid e background c5daef e border left c9bda5 1px solid e border bottom c9bda5 1px solid mv_eventTitle The event title cell The
623. trol on page 130 This tag appears on the following menu s e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a Language API 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Language API 3 The Language API box appears Insert Ektron CMS400 Language API 4 Use the following table to assist you with inserting a Language API box Field Description Control ID A unique name for the function you are inserting Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 342 Field Description Hide Used to hide a Language API in design time and run time Checked Hide Language API C Unchecked Show Language API Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info Set position information of a control as absolute when using a GridLayout GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document
624. tron CMS400 NET Content When Ektron CMS400 NET content has been edited in Dreamweaver you can use the save content command to save your changes back to Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 254 To save existing Ektron CMS400 NET content perform the following steps 1 Make changes to an existing Ektron CMS400 NET content block as described in Edit Content on page 248 In the Ektron CMS400 NET Manage Content Menu click on Save Content The Save Ektron Content dialog box is displayed 4 Use the following table to complete the form Field Description Title Editing this field will rename the content block in Ektron CMS400 NET Comment Start Date Enter a comment for the content block If desired type in a start date for the content block NOTE Date format MUST match what is set for the ek_dateFormat element in the Web config file located in the site s webroot By default this is dd mmm yyyy hh mm ss tt for example 24 Dec 2005 10 15 00 AM End Date If desired type in an end date for the content block NOTE Date format MUST match what is set for the ek_dateFormat element in the Web config file located in the site s webroot By default this is dd mmm yyyy hh mm ss tt for example 24 Dec 2005 10 15 00 AM Content Folder Disabled 5 Click Save to save the changes made to the content The co
625. tron CMS400 NET controls see Introduction to Ektron CMS400 NET Server Controls on page 7 The following examples shows the Login server control added by drag and drop vs adding a Login method by the ASP NET method Drag and Drop Login server control Toolbox a X WebForm2 aspx WebForm2 aspx b Data Os o Web Forms o o Components o o o HTML Clipboard Ring General ektron A Pointer E Calendar Collection E ContentBlock FormBlock LanguageSelect ListSummary Menu ye Search Adding a Login function via an ASP NET method lt tr gt lt td gt lt S AppUI ecmLogin gt Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 403 lt td gt lt tr gt Best Practice Ektron recommends using CMS400 NET server controls when available over Ektron standard ASP NET methods The methods are being replaced by the server controls You can still use the standard ASP NET methods in Ektron CMS400 NET Referencing Methods in Visual Basic Before you can use methods with Visual Basic you must add a reference to them from Visual Basic Follow these steps to do so 1 Open Visual Basic 2 Choose or add a project 3 In Solution Explorer right click References and choose Add Reference Solution Explorer CMS5400Sample a amp S amp lo Solution CMS400Sample 1 project A CMs400Sample gt O Ektron Ektro
626. troncms400 mxp NOTE In the folder path vXX represents the version of Ektron CMS400 NET you have installed 6 After you select the file click the Install button 7 The installation begins with the Macromedia Extensions Disclaimer Click Accept 8 The extension begins to install Once installed you see a confirmation box Macromedia Extension Manager The EKTRON CMS400 extension has successfully been installed In order for the changes to take effect you must dose and then restart Dreamweaver 9 Click OK to continue Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 242 10 The Macromedia Extension Manager is again displayed but with the added extension Macromedia Extension Manager File Help amp Dreamweaver e On Off Installed Extensions lt A EKTRON CMS400 ASP CF JSP PHP 6 0 3 Command Ektron Inc ah Z EKTRON CMS400 NET NET Server controls 6 0 7 Command Ektron Inc Insert and update Ektron CMS400 Server controls into an ASP NET Web page using Dreamweaver A With an Ektron CMS400 enabled Web site business users can author publish and manage Web content e g text images tables files hyperlinks while ensuring that necessary parameters are in place for maintaining control over the site s look and feel navigation and security Ly Non technical content contributors can log into the Ektron CMS400 application directly from thei
627. u When you are logged in to your Ektron CMS400 NET site two menu items are added to each 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 a menu Item see Ektron CMS400 NET Users Manual gt Working with Menus gt Managing Menus gt Adding a New Content Block to a Menu via Navigation Link on a Web Page For Information on a editing a menu see Ektron CMS400 NET Users Manual gt Working with Menus gt Managing Menus gt Editing a Menu via Navigation Link on a Web Page CMS Developer Book 2 ASP NET Unleashed gt Programming C NET Ss WaNeTHowto Eyeatmenu frags Add or Edit Y Editmenu whole menu Add or Edit submenu This subsection contains the following topics Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 160 DhtmIMenu Server Control e Menu Server Control vs DhtmlMenu Server Control on page 161 e DhtmliMenu Server Control Properties on page 161 e Using a Style Sheet on page 165 e Formatting the DhtmlMenu Server Control on page 166 Menu Server Control vs DhtmiMenu Server Control See Menu Server Control vs DhtmiMenu Server Control on page 152 DhtmIMenu Server Control Properties The DhtmIMenu server control properties are described in this table Note The following table only lists Ektron specif
628. ubsection contains the following topics e Recognizing the Server Control Within the HTML on page 30 e Recognizing the Server Control Within the Code Behind on page 30 e Customizing the Server Control in the Code Behind on page 30 e Troubleshooting Error Creating Control Message on page 31 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 29 Recognizing the Server Control Within the HTML Within a Web page s HTML a lt cms gt tag wraps the VS 2005 object as shown below lt cms Search id Searchl runat server ButtonText Search Display Vertical gt lt cms Search gt Above is an example of a Search Server Control Below is an example of a ContentBlock Server Control lt cms ContentBlock id ctrlMainContentBlock runat server DefaultContentID 1 DynamicParameter id OverrideXslt Default gt lt cms ContentBlock gt Recognizing the Server Control Within the Code Behind Within the VS 2005 code behind file the Ektron server controls appear along with the VS 2005 controls in the Web Form Designer Generated Code section When you Click the plus sign to display this section you see something like the following The content block listed in HTML above is circled below to help you see their relationship 4 Region Web Form Designer Generated Code This call is required by the Web Form Designer F lt System Diagqnostics DebuggerStepThrough gt Private Sub In
629. uest ecm AppPath ecmEvtCalendar cfm gt JSP lt ecmEvtCalendar 1 gt PHP lt php ecmEvtCalendar 1 gt Collection For a description of the Collection function see Collection Server Control on page 82 This tag appears on the following menu s e Commands gt Ektron CMS400 ASP CF JSP PHP gt CMS Function or e Commands gt Ektron CMS400 NET Server Controls gt Content Controls To insert a collection Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 302 1 Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Collection 3 The Insert Ektron Collection box is displayed Insert Ektron CMS400 Collection Tag Dynamic Content Parameter Dynamic Collection Parameter Random Output of seconds Cachelnterval Positioning info GridLayout Style Wrap tag IMPORTANT When inserting a collection using ASP CF JSP or PHP a different dialog box appears CMS400 Collection Tag Displays and manages a collection Colecon Select the collection to insert into the page w Display Function Select the display function or fillit in above Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 303 4 Use the following table to assist you with inserting a Collection Fie
630. ully updated your information Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 149 Membership Server Control Property Value Data Type WrapTag Allows a developer to specify a server control s String tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag DisplayMode Lets a developer decide what type of membership form is added to the Web form The following table describes settings for the DisplayMode property Setting Description Example UserRegistration Lets a site visitor register as a Usemame 0 membership user j First Name Last Name Password Confirm Pwd E Mail Address Register Reset ResetPassword Lets a membership user reset his Usemame password Register Reset Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 150 Membership Server Control Setting Description Example UnsubscribeSecured Lets a membership user unsubscribe The Usemame membership user i needs to enter his Password username and password to unsubscribe Register Reset UnsubscribeUnsecured Lets a membership user unsubscribe by entering his membership username only Us
631. umbs show you the path through the sitemap to the current page FolderBreadcrumb Server Control on page 69 For information on other Breadcrumb types see BreadCrumb Server Control on page 59 and SiteMap Server Control on page 235 FormBlock Displays a content block that is FormBlock Server Control on associated with a form page 117 Forum Forums provide a discussion board Forum Server Control on page 120 where topics can be discussed on your Web site HTMLEditor The server control displays the Ektron HTMLEditor Server Control on CMS400 HTML editor on a Web page page 122 By adding the HTMLEditor to a Web page site visitors can create or edit HTML content for a site or project IndexSearch Perform XML index searches on XML IndexSearch Server Control on content XML content is created using page 218 Smart Forms For information on searching other content types see Search Server Control on page 182 LanguageAPI Allows developers to force a language LanguageAPI Server Control on for a Web site page 130 LanguageSelect Lets user select language of site LanguageSelect Server Control on page 133 ListSummary Displays a list of content block summaries ListSummary Server Control on page 135 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 41 Server Control Names Description More Informa
632. ummary Function Single Summary Function The single summary tag is used to display the summary of one content block in the Ektron CMS400 NET Web site instead of a list of all the summaries in a content folder Seen below is the single summary tag lt ecmSingleSummary ContentID ShowSummary Stylelnfo Showlnfo Spare1 gt You can look at the single summary tag as just a simpler form of the List summary tag The format for each of them is almost identical but the single summary tag does not require as many attributes to be passed A list and description of the attributes are shown in this table Attribute Description Required Content ID This is the ID number of the content block the Yes summary information will come from ShowSummary Do you want the content summary to be displayed Yes Stylelnfo Inline style information for the generated text No hyperlink Showlnfo Information that will appear to the right of the No hyperlink Spare1 Not yet implemented MUST BE Single Summary Example Shown below is an example of the single summary function in an ASP Web page lt TR gt Tros lt ecmSingleSummary 14 1 DateModified gt lt TD gt lt TR gt The previous example had the following properties e Displays the summary for the content block with an ID 14 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8
633. unctions 238 Installing the EXtenSiOnS ssccccssseeeeesesseeeseeeeeneeeeeeeseeeeees 239 0 2 SER nee apm a eanas 243 Editing and Saving Ektron CMS400 NET Content in Dream WAV GN cerrara aa aa aia aaa ara e Ea aa EE aa Eiaa 247 Accessing Manage Content CommandS ccsccceeeesseteeeeeeeeee 247 EAF I E A T cre error Teel cette A tren cetce ce rrr 248 DAVE COMEN an 251 Saving NeW COmMent iissa eai 251 Saving Existing Ektron CMS400 NET Content cee 254 Using the Ektron CMS400 NET Extensions sssssseeeeeees 255 Custom Function SymMDOlS kreisis aa 256 Ektron CMS400 NET Command Menug 0 sscsssesreeeees 260 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 xiv Inserting Custom FUNCTIONS ccccceeeeeeeeeeeeeeeeeeeeneeeeeeneeeenees 266 rN Foil UlpIell ol nlemereeerrnrs trertaret rrrrntcrmeerstentcrrre terres er enrrrrrre T 266 Anal iG S ian edness pidecaedivaedsceeernbane 266 36 E N E E E E E A E A E E eerie 269 Blog Calenda e nssssinmea nonen a aa ea 272 Blog Cale QOS S easiai anaa aaa 275 Blog EMES iinan cc ietasoeagn teiestewen in teenaaates 278 BO OSU inann Araneta Arcane Seve dates Sauntadatne tauetenaane Ueveasoentuen 281 Blog Recent POSS i sevcasccescncvenweccns sewerianssscawenwennne cacuewevenashcaxwenvansiiteg 284 BOG iena ct ami aaecet oc ctedactor secieveet atsnctarante aseseraantsateathacce aecataactens 287 Blog RSSra a NA 290
634. upport Neves Careers Search Employment Opportunities Plastic Molder 123 8 27 2002 2 38 34 PM RC International is looking for an experienced plastics molder Servo Control Engineer 124 8 27 2002 2 40 26 PM RC Intarnatinnal ie lankad far a hinhh clillad carun cantral anninaar tn inin mir taam The format of the collection on the Web page depends on the displayFunction that is used Below is the source code for the display function ecmTeaser html jai ier jer jer sr ior fer ler fer next html Function ecmTeaser cInfo dim html info lt table border 0 cellspacing 0 cellpadding 0 width 1003 wy tml tml tml tml tml tml tml tml tml Jot ier ger jer dsr D sy iar jer tml tml tml tml tml tml tml tml tml amp amp amp amp amp amp amp amp amp for each info in clInfo Mitre lt td gt ea Mosr unt CStr info ContentLinks we gt W Cstr info ContentTitle lt a gt amp nbsp info DateModified Heeck lt tr gt lt eme lt t dow Cstr info ContentTeaser lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt html amp lt table gt ecmTeaser end Function html As you can see the ecmTeaser function is an ASP function that creates a table of links to the specified collection The ecmTeaser function displays the e Content title e Date modified e Content
635. use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 DefaultCalendar ID The ID number of the calendar that appears where you Integer inserted this server control If you don t know the ID number of the calendar use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 15 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 77 Calendar Server Control Property Value Data Type DisplayType Specify the Calendar view type The default is Month e Month A 30 day calendar month view Monday Tuesday Wednesday Thursday Friday 1 5 6 7 8 12 13 14 15 e Day Single day view String Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 78 Calendar Server Control Property Value Data Type DisplayType Con t e Inline Display events that occur from the start date of the calendar through the end date Thursday December 01 2005 Saturday December 31 2005 12 15 2005 Monthly Audit Business Office Start 8 00 AM End 10 30 AM This is to test a recurring calendar event 12 21 2005 Christmas Party Event Room Start 7 30 PM e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt December Jan S
636. use of these features is also found in the following sections e Web Services on page 561 e Syndicating Web Content as RSS on page 580 Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 1 List of Developer Resources In addition to the information in this manual the following resources provide information on developing your site Below is a quick reference list of resources e Ektron s DevCenter on page 2 http dev ektron com e Ektron s Developer Training Course on page 3 http www ektron com cms400 web cms aspx id 2653 e Developer Site Provided with Ektron CMS400 NET Install on page 3 http localhost CMS400Demo developer default aspx e Ektron CMS400 NET API Documentation on page 4 http www ektron com web content management solutions aspx id 4020 e Ektron Support and Product Pages on page 5 http Awww ektron com support cms400_support aspx http Awww ektron com web content management solutions aspx e Supporting Documents on page 6 http www ektron com web content management solutions aspx id 4020 Ektron s DevCenter e http dev ektron com The Ektron DevCenter includes a wide array of resources to assist our developers and partners Whether you re looking for a solution to a specific problem or just seeing what you might be able to do with CMS400 NET you should be able to find what you need here User Discussion B
637. utput Content Type of seconds Cachelnterval Hide Visible Positioning info GridLayout Style Wrap tag Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 347 IMPORTANT When inserting a list summary using ASP CF JSP or PHP a different dialog box appears Ektron CMS400 List Summary Tag Used to display a list of content block summaries Folder Select the folder or fill it in above Recursive d Show Summary Style Info Order By Show Info Max Number of Summaries 4 Use the following table to assist you with inserting a metadata control Field Description Control ID A unique name for the function you are inserting Used in ASP NET only Folder ID Enter the folder ID If you do not know the folder path you can navigate to it using the Select folder drop down box Select Folder Select the folder the summary information comes from The folder drop down contains folders from your site If you insert the folder path you do not need to select a folder from the dropdown box Recursive If checked Summary information is gathered from the folder selected and all of its child folders Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 348 Field Description Order By Specify how the summaries are ordered
638. ve to deal with one server control and its settings This makes adding a blog to your site quick and easy Using the Individual Blog server controls to display a Blog allows you the flexibility to display the parts of a Blog you want to display For example you might to display the Blog entries and a Blog roll but not display a Blog calendar In addition using the individual Blog server controls allows you to further define the display details of each control Blog Server Control The Blog server control allows you to quickly add a blog to a Web form It has all of the items commonly found on a blog page in one server control These items include blog posts a comments link a blog roll blog categories recent blog posts the RSS feed for a blog and a blog calendar If you want to learn more about each item see the User Manual section on Blogs Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 43 Blog Server Controls Using the Blog server control allows you to easily maintain the overall look of the blog When you change display properties such as the background color or the font they change for the whole blog not just a piece of it While you can change display properties you can not change the location of each item in the server control The title always appears on the top with the tagline below it The blog posts always appear to the left and the calendar and blog roll to the right The Story
639. vent of the code behind ContentBlock1 Fill The code in the page load event should now look like this ContentBlock1 Fill BreadCrumbl1 DisplayTitle ContentBlockl EkItem Title This ensures that the content block information is loaded first Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 68 FolderBreadcrumb Server Control FolderBreadcrumb Server Control As mentioned in the BreadCrumb server control section there are two kinds of breadcrumbs sitemap breadcrumbs and history breadcrumbs Ektron handles history breadcrumbs with the BreadCrumb server control See Also BreadCrumb Server Control on page 59 Sitemap breadcrumbs show you the path through the sitemap to the current page like the path shown at the top of the page of a Yahoo directory listing Sitemap breadcrumbs always show the same path for the same page regardless of how that page is reached The FolderBreadcrumb server control displays sitemap breadcrumbs This type of trail is typically made up of the folder path for the content For example the FolderBreadcrumb below matches the folder structure where the content is located Home gt gt Conditions gt gt Wellness Articles Folders O CMS400Demo O _Rotatinglmages a O About Us Y Blog O Book Store Conditions gt elness Articles O Contact Information The sitemap for each FolderBreadcrumb is set on the Breadcrumb tab located in the Workarea folder
640. vo Control Engineer 124 RC International is looked for a highly skilled servo control engineer to join our team Show Info The show info field determines what sort of information is displayed to the right of the hyperlinked title There are five different options that you may choose from Value Displays the Web Page View ID ID number for the content block looket Pb Rilled s r baam DateModified date the content was last modified 124 8 27 2002 2 40 26 PM ced Te highly skilled servo ce am DateCreated date when the content was first created A24 4 25 2002 4 54 42 PM ed TOendigh lt j aefitrol Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 458 Single Summary Function Value Displays the Web Page View AuthorFname first name of the user who last edited the content block ked Ommy skilled ser AuthorLname last name of the user who last edited the content block er 124 Johnson ioked eg a high wed serv Spare 1 There is one attribute fields at the end that are currently not used This is here for future scalability When you insert a single summary tag into your template you must leave this attributes as Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 459 RSS Summary Function RSS Summary Function The RSS summary function is used to create an XML list of content su
641. whether search is recursive 1 recursive search 0 non recursive search Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 570 Parameter Where Defined in Application API xxx How Implemented by CMS Starting Folder Search Describes path to folder in which search begins Here are some examples e root content folder e Products RC Cars begins search in the RC Cars folder Allow Fragments n a Selected by user on page that performs search Search All the words Any of the words Cc Exact Phras C Match Partial Words Options 0 false do not allow fragments 1 true allow fragments If fragments are allowed and the user enters AT as the search string the search returns topics with these words pat ate hatter If fragments are not allowed and the user enters AT as the search string the search only returns topics with the word at Note This parameter is handled automatically by CMS when displayed on Web page For Web Services this needs to be defined Max Number Search Display Specify the maximum number of topics to display when a search is performed For example 0 unlimited 1 one result 7 seven results Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 571 Parameter Where How Implemented by CMS Defined in Application
642. wn here is the format of the ecmLanguageSelect function lt php ecmLanguageSelect gt This function is basically the same as the Show Site Language function in ASP See Show Site Language Function on page 494 for details The only difference between the PHP function and the ASP one is the syntax for implementing it Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 541 Custom API Custom API As you have seen the formatting for the custom functions used in Ektron CMS400 NET for PHP are defined in the file ApplicationAPI php As a developer you may make changes to this file to further enhance how the custom functions appear on your Web site However Ektron recommends creating a copy of the file and renaming it to an arbitrary name for example MyCustomAPI php and including that file when creating Ektron CMS400 NET templates This ensures that your custom API will not be overwritten if you upgrade to another version of Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 542 Custom JSP Functions IMPORTANT Ektron CMS400 NET maintains and displays content via custom Ektron JSP functions For the custom JSP functions to work properly do the following e Inthe applicationapi jsp file set the WSSoap_address The applicationapi jsp file is located by default in http localhost cms400demo WorkArea platforms JSP applicationap
643. y Used to hide a collection in design time and run time Checked Hide collection C Unchecked Show collection Note If Hide and Visible are both checked the property is hidden Visible Used in ASP NET only Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Used in ASP NET only Set position information of a control as absolute when using a GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Used in ASP NET only Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 305 5 When completed click insert A graphic defines where the collection appears on your template ektron Collection G 2 Code 3 spit ca Design 7 Tite 9 lt head gt lt body gt lt form id form1 runat server gt Untitled Page lot oe M lt cms Collection id Collection1 DefaultCollectionID 6 DisplayXslt ecmTeaser runa
644. y on want a predefined list of page 225 books to appear on a web page To access the window click the gray button ShowSearchBoxAlways If set to false the search box Boolean True does not appear on PostBack False Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 224 IndexSearch Server Control Property Description Data Values Type Weighted If you set this value to true Boolean True display every content content blocks are ranked by block that matches at least one the number of criteria search criteria matches False show only content For example if a content blocks that match all search block matches all search criteria criteria it appears at the top of the results page A hit marker appears for each match If a second content block only matches one criterion it also appears on the results page underneath the first content block One asterisk appears above the page s title to indicate the single match WrapTag Allows a developer to specify String Span The lt span gt tag is used a server control s tag to designate an in line portion of The default is Span an HTML document as a span element Div The lt div gt tag is used when you want to apply attributes to a block of code Custom Allows you to use a custom tag xmlConfigID ID of the Smart Form whose Integer indexed fields will appear on the search screen SearchParmXML Property Th
645. y Text Site Window Help FE Common Layout Test Tables Recor Sh aio 7 F Play Recorded Con amp E ih 4 2 Edit Command List Get More Commands Shoe HH gnc mml ES denied _ lt html gt Apply Source Formatting lt head gt App ice Forma lt title gt Untitled Document lt t Clean UP HTML lt meta http equiv Content T Clean Up Word HTML Add Remove Netscape Resize Fix lt head gt o ua A oa l a N lt body gt Create Web Photo Album Set Color Scheme w mat Table t Table Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 240 2 The Macromedia Extension Manager is displayed gt Macromedia Extension Manager File Help amp 1 A On Off Installed Extensions peera genni N 3 From this dialog box follow the path File gt Install Extension 4 The Select Extension to Install window opens Select Extension to Install File name Files of type Macromedia Extension Packages mxp x Cancel Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 241 5 Locate the Macromedia Extension Package mxp file that corresponds to Ektron CMS400 NET By default the file gets installed to the following directory C Program Files Ektron CMS400vXX Utilities Select Extension to Install Look in C Utilities ef Be C400_ASP_PHP_CF_JSP mxp EX
646. ySiring parameter to read a content ID String dynamically Hide Used to hide the breadcrumb trail in design time and run Boolean time True Hide breadcrumb trail False Show breadcrumb trail Language Set a language for viewing content The language property Integer shows results in design time in Visual Studio and at run time in a browser LinkTarget Determines the type of window that appears on this Web String form when a user clicks an item in the breadcrumb trail The default is _ self _Self opens in same window _Top opens in parent window _Blank opens in new window _Parent opens in the parent frame Mode Allows you to make the breadcrumb trail appear as non String hyperlinked plain text The default is Normal Normal breadcrumb trail is hyperlinked DisplayOnly breadcrumb trail is plain text Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 70 FolderBreadcrumb Server Control Property Response Data Type Separator Enter one or more characters to separate the items ina breadcrumb trail on this Web form The default character is the greater than sign gt String SuppressWrapperTags Suppresses the output of the span div tags around the control The default is False True Suppress wrap tags False Allow wrap tags Boolean WrapTag Allows a developer to specify a server control s tag The default is Span Span The lt sp
647. you can navigate to it using the Select Category and Select Content drop down boxes DynamicParameter Gets or sets the QueryString parameter to read a content ID dynamically DisplayStyle Indicate how to display the folder bread crumb horizontally or vertically The default is Horizontal Hide Used to hide a Language API in design time and run time Checked Hide C Unchecked Show Language API Note If Hide and Visible are both checked the property is hidden Visible Used to show or hide the function at run time Checked Hide function C Unchecked Show function Note If Hide and Visible are both checked the property is hidden of seconds Cachelnterval Sets the amount of time the server control s data is cached The default is 0 zero This is the amount of time in seconds a control s data is cached For example if you want to cache the data for five minutes you set the CacheInterval property to 300 three hundred See Also Caching with Server Controls on page 36 Style Positioning Info Set position information of a control as absolute when using a GridLayout GridLayout Web page For example style Z INDEX 101 LEFT 328px POSITION absolute TOP 240px Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span gt tag is used to designate an in line portion of an HTML document as a span element Div
648. z k tr on ___ Redefining Web Content Management Ektron CMS400 NET Developer Reference Manual Version 6 0 for NET 2 0 Rev 8 Ektron Inc 5 Northern Blvd Suite 6 Amherst NH 03031 Tel 1 603 594 0249 Fax 1 603 594 0258 Email sales ektron com http www ektron com Copyright 2006 Ektron Inc All rights reserved EKTRON is a registered trademark of Ektron Inc Version 6 0 for NET 2 0 Rev 8 July 18 2006 For updated versions of this manual please visit http www ektron com web content management solutions aspx id 4020 EKTRON INC SOFTWARE LICENSE AGREEMENT READ THIS BEFORE LOADING SOFTWARE YOUR RIGHT TO USE THE PRODUCT DELIVERED IS SUBJECT TO THE TERMS AND CONDITIONS SET OUT IN THIS LICENSE AGREEMENT USING THIS PRODUCT SIGNIFIES YOUR AGREEMENT TO THESE TERMS IF YOU DO NOT AGREE TO THIS SOFTWARE LICENSE AGREEMENT DO NOT DOWNLOAD CUSTOMER should carefully read the following terms and conditions before using the software program s contained herein the Software Downloading and or using the Software or copying the Software onto CUSTOMER S computer hard drive indicates CUSTOMER S acceptance of these terms and conditions If CUSTOMER does not agree with the terms of this agreement CUSTOMER should not download Ektron Inc Ektron grants and the CUSTOMER accepts a nontransferable and nonexplosive License to use the Software on the following terms and conditions 1 Right to use

Download Pdf Manuals

image

Related Search

Related Contents

ARUN_p01_表紙 [更新済み] - 株式会社オオトモ  DP-6600 Service Manual  Owner`s Manual • SC-X50 LED SCANNER  MANUEL D`UTILISATION  Bischoff & Bischoff Manual de instrucciones Tobago    Sport Fi ECU RevC User`s Manual (ENG)  Samsung 2433BW  吾妻腟壁圧定鈎  PR5000 Wash Beam  

Copyright © All rights reserved.
Failed to retrieve file