Home

Ektron CMS400.NET Developer Reference Manual

image

Contents

1. Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 115 Property Description Data Type Values DisplayXslt Determines how the information String None databind only on the page is displayed ecmNavigation lists the title of every content block in the folder See Also Example of ecmNavigation Display on page 122 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 123 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page FolderPath The folder that contains the String Any folder content blocks which appear in the List Summary See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 The Recursive property determines whether content blocks in this folder s child folders also appear Hide Used to hide output of List Boolean True Hide results Summary in design time and False show results run time Language Design time only View content Integer Integer blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 116
2. When you select a page its properties 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 5 0 Revision 8 25 Introduction to Ektron CMS400 NET Server Controls gp Solution Explorer class View al Search Properties hx FormBlock1 ServerControlLibrary FormBlock gt E 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 Manual Version 5 0 Revision 8 26 Introduction to Ektron CMS400 NET Server Controls Add New Item CMS400Intranet Templates Categories me Beb Project Items a ul p55 5 C Code Web Form WebService Mobile Web E Data Form G Web ili E p G utility cd E Class Module Component Class if Data Form DataSet Web User Wizard Control gt S 4 form For Web Applications Name WebForm3 aspx coct_
3. Property Description Data Type Values 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 118 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 WrapTag Allows a developer to specify a String Span The lt span gt tag is used server control s tag The default is Span 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 5 0 Revision 8 117 OrderKey Property The OrderKey property determines what information appears to the right of the hyperlinked title The values are described below content was first created Value Description Web Page View DateModified Displays the date the Pole Was last modiiigd RC Sportster The RC Sportster s design nid level RC racer currently on the market iferdace ee 2 aa 44 PM growing host the 3rd a
4. Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 312 Custom ASP Functions For example lt ID gt 27 lt ID gt Attribute Description Options MaxNumber Maximum number of summaries returned 0 Zero Unlimited See Also Max Number on page 311 ObjType Determines whether the list summary is for the folder or a E single piece of content Folder 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 page 318 The default ObjType is Folder when left blank 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 collection lt ID gt lt ID gt The content block ID lt Title gt lt Title gt The title of the content block For example and CSS lt Title gt lt Title gt HIML for the World Wide Web with XHTML lt QuickLink gt lt QuickLink gt The quicklink associated with the content block For example lt QuickLink gt CMS400Example collection aspx id 27 lt QuickLink gt lt Teaser gt lt Teaser gt The s
5. IDOCTYPE HTML PUBLIC 1 T A lt html gt Apply Source Formatti Ce chead gt Apply Source Formatting to Selection MU ctitle gt Untitled Document lt t Clean UP HTML Clean Up Word HTML Lees in lt meta http equiv Content T lt head gt Add Remove Netscape Resize Fix Iptimize Image in Fireworks lt body gt Create Web Photo Album Set Color Scheme own p 45 Format Table Sort Table The Macromedia Extension Manager is displayed On Oft Installed Extensions Te ee 2 From this dialog box follow the path File gt Install Extension Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 205 Dreamweaver Extension Support 3 The Select Extension to Install window opens Select Extension to Install File name Files of type Macromedia Extension Packages mp Cancel A 4 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 CMS400v50 Utilities Select Extension to Install gop ee Files of type Macromedia Extension Packages mp Cancel 5 After you select the file click the Install button 6 The installation begins with the Macromedia Extensions Disclaimer Click Accept Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 206 Dre
6. ccccsssseeeeesssssseeeeesseeeeeeees 428 Custom od ee er en ee rr 430 Web Services acca sss sreencnsseserecteetaacessiestreeed 431 Introduction to Web Services ssseccccssseeeeeeseseeeeeeeseseeeeees 431 CMS400 NET s Implementation of Web Services cc 432 Benefits of Using Web Services c ccccceeeeeeeeeeeeeeeeeteeeeeeaeees 432 WS Components and CMS400 NET Architecture 432 Software and Hardware Requirement cccsseeeeeeneeeee 432 Installation OT Ples ssri 433 Setup INSIrUCHONMS sssrinin ienanc eaaa 433 Providing Web Service Information in Your CMG 435 CMS400 NEW MethGd Ss s 595 i atestvsareceasrngnceseers edanecer epoca 435 The CMS400 NET Content Sample Page ceseseeeeseeeeees 439 The Search Display Method Parameters scceeeeeeseees 441 Sample Output from One Mend sicisisc sccenasia ccssecossascceneesaex teenies 443 GSIGOMIENIBIGCKS crcccsatpintrcecsssinecccecitspraceeeestainehiacestesinticcestaaipat 443 The News aspx Sample NON XML cccceeeeeeeeeceeeeeeeeeeeeneeeeee 444 Identifying the Code Behind File ececccseeeeeeeeeeeseeeeees 444 Setting Up an Instance of Web Services ccceceeeeees 445 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 xvii Getting Content BlOCKSs z lt cxcciaisteoncaitiadsomsehacnizemccioioannseaads 445 The News aspx Sample XML Jissie 447 S
7. ccessseeessseeeeeees 82 Automatic versus Manual Generation of Form Tags 84 SEACH Server COMO sv ivscsecesistesscessssscsssnncsasssnnesenenereacnntsnstanns 85 Search Server Control vs IndexSearch Server Control 86 Search Server Control Properties ccssssseeceseseeeeeeseseeees 86 Specify Search Control To Display Search Results on a Sepa rate PG Cacia sissies srananira ee eieae a Eiran AAEE NRE SSRE 94 IndexSearch Server Control ssseseseeeeeeeeeeeeenseeeeeeeeees 97 IndexSearch Server Control vs Search Server Control 98 IndexSearch Server Control PropertieS ccsssecesseseeeeeeees 98 Using the IndexSearch Server Control Programmatically Ex ample sccsdececcncescuceacstencctcancnaseusnscsensesccsnuncsdunecteccececiesnacecseencucate 106 Programmatically Predefined General Search Results Re placed By Specific Search Results ccsssseeeeesseeeeeeeees 109 Turn Off Caching In Netscape Navigator and Mozilla Firefox 113 ListSummary Server Control ccccccccssssseeeeeeeeeeeeeeeseeeeeees 114 ListSummary Server Control Properties cccessseeeeees 115 List S mmary Example sscscaicsnccnscssctnccnccctotetancecentncocintenenccckencee 119 Collection Server Control wissscisssssssssccssscsesesesesnnsesnsasnssscescies 120 Collection Server Control Properties cccssseeeeeseeeeeees 121 Using the Collection Server Control Programmatically Exam OG se
8. DisplayXslt 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 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page String ecmNavigation Example of ecmNavigation Display on page 122 ecmTeaser Example of ecmTeaser Display on page 123 EmptyResultMsg The return message displayed if the search returns no hits The default is Search returned zero results String FolderPath The folder at which the search begins The starting folder need not be the root folder The Recursive property determines if the search examines this folder s subfolders String Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 Hide Used to hide Search Server Control in design time and runtime True Hide control False Show control Boolean Language Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Integer Ektron CMS400 NET Developer Reference Manual Version 5 0 Rev
9. 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 J 5 gt lt head gt lt body gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 365 Custom ASP Functions 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 361 Some examples might be Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 366 Custom ASP Functions lt ecmMetaData 1 2 gt i metadata 1 Notepad ile Edit Format Help aul lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 Transitional EN gt lt Title gt cms400 Sample web site cms400 Login Information lt Tit le gt lt
10. ccssssseeeesseseeeeeeeseeeeeeeens 69 ContentBlock Server Control cccceeeeeseeeeeeeeeseeneeneeeeees 71 Static Content Bln ssisiscesissecesccccstscnedesisncdedeatecsatscauseaaecsesscadaes 71 ContentBlock Server Control PropertieS ccccceseseeeeetteteeeees 72 Dynamic Content BIOCK cissiscscsscsccicsccsnccctnsccsacectnsecanseccntecinseecace 73 AMLE Content BloCkK sisisi ainni nenas aR aiai 76 The OverrideXslt and DisplayXslt Properties 0 eeeeeeeeeee 77 Using the ContentBlock Server Control Programmatically Ex Ample svcd sseccsecsteacecceeccedsacctearcdeactuecccussudceecuctatesdacacesbecsicacsusamwieccets 79 FormBlock Server Control siririna 81 FormBlock Server Control Properties ccsssseessseeeeeeees 82 Automatic versus Manual Generation of Form Tags 84 Search Server COMPO sis cevescstscsescsrancnassnesvatninwnsscnsevssechieriaeres 85 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 X Search Server Control vs IndexSearch Server Control 86 Search Server Control Properties cssssseeeesesseeeeeeeeeseeees 86 Search Server Control Property Example ccccssceeeseeeeeeseees 89 TOKT BOX EXAIMPICS aruni A 90 Button Image Source Examples 0 cccccceeeeeeeeeeeeeeeeeeeeeenaeeeeee 91 Search Buttoni Text Examples onasan a 92 Display Example Ssusse 93 ShowDate Examples cccccececceceeceeeeeeeeeeeeeaeeeeeaeeseeaaeeee
11. tags Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 44 Introduction to Ektron CMS400 NET Server Controls Property Description For more information see 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 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
12. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 364 Custom ASP Functions 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 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 new ID and exclusion list Shown below is the sample code for this
13. ASP NET Unleashed Programming C NET VB NET How to Example set to 10 ASP NET Unleashed Programming C NET gt 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 It is located in webroot CMS400Example Workarea csslib Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 183 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 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 menu style sheet for each Web page If you have more than one menu on a single Web page they share the style sheet The following is a list of style sheet properties that can be modified inthe pop_style css Style Class Description Attribut
14. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 304 Custom ASP Functions Shown here is the format of the list summary function lt ecmListSummary Folder Recursive Stylelnfo ObjType ShowSummary OptionList OrderBy Asc Desc Showlnfo 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 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 Ektron CMS400 NET Developer Refer
15. gt Managing Metadata Definitions gt Adding a Metadata Definitions String KeyWordValue Language The value that is associated with the KeyWordName Some examples of a KeyWordValue might be Home page or company Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list String Integer MaxNumber The maximum number of results returned for display 0 unlimited Integer OrderBy The order of the list to be returned e Title The title of the content block e ID The 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 String Recursive Whether to search sub folders of the identified root folder The root folder is identified in the Folderpath property Boolean SortOrder Ascending or Descending String Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 192 Property Value Data Type WrapTag Allows a developer to specify a server control s tag The default is Spa
16. 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 DDS 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 CMS400Example 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 5 0 Revision 8 376 Custom ColdFusion Functions 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 CMS400Example WorkArea WebServices ContentWS asmx WSDL gt and lt cfset application AppPath CMS400Example WorkArea platforms ColdFusion gt The application WSDLpath needs to updated with the location of the WSDL file For example For example if your site is
17. lt cfset nString nString amp Attributes endStyle gt 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 building 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 390 Custom ColdFusion Functions 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 Login Contact Ektron 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
18. on page 133 Calendar Server Control Properties The Calendar Server Control properties are described in this table NOTE There are additional settings to help define the calendar in the Ektron CMS400 NET Workarea These include display weekends forward only show all Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 129 label etc For information on these properties see Ektron CMS400 NET Administrator s Manual gt Calendars gt Managing Calendar Modules gt Viewing Calendar Modules 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 Net 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 32 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 32 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 130 Property Value Data Type DisplayType Specify the Calendar view
19. xsl iattribute gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name src gt lt xsl value of select ItemImage gt lt xsl attribute gt lt img gt lt A gt lt xsl text gt lt xsl text gt lt xslsit gt lt A gt lt xsl attribute name href gt lt xsl value of select ItemLink gt lt xsl iattribute gt lt xsl value of select ItemTitle gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 174 lt A gt lt xsl otherwise gt lt xsl choose gt lt xsl when gt lt xsl whentest ItemType Javascript gt lt xsl choose gt lt xsl whentest ItemImageOverride True gt lt A gt lt xsl attribute name onClick gt Javascript lt xsl value of select ItemLink gt lt xsl attribute gt lt xsl attribute name href gt lt xsl attribute gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name srce gt lt xsl value of select ItemImage gt lt xsl iattribute gt lt img gt lt A gt lt xsl when gt lt xsl otherwise gt lt xsl iftest not ItemImage gt lt A gt lt xsl attribute name onClick gt Javascript lt xsl value of select ItemLink gt lt xsl attribute gt lt xsl attribute name href gt lt xsl attribute gt lt img gt lt xsl iattribute name border gt 0 lt xsl attribute gt lt xsl attribute name src gt lt xsl value of select I
20. 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 1 2 3 o 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 25 26 27 28 Manchester 22 23 24 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 1 2 3 4 sle 8 9 10 11 12 13 14 15 16 17 18 19 20 28 22 23 24 25 26 27 28 29 30 3 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 5 0 Revision 8 Style Class Description Attributes and Default Settings etCtrl_Background 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 aa
21. 20 6 Add the following code to the code behind If Not ContentBlockl 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 60 Introduction to Ektron CMS400 NET Server Controls 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 when you refresh you get the new time List of Server Controls To customize your Ektron CMS400 NET application you can use these server controls Server Control Description More Information Names BreadCrumb Creates a breadcrumb trail of where site BreadCrumb Server Control on visitors have been and allows them to page 198 navigate back to previous pages Calendar Displays an event calendar Calendar Server Control on page 127 Collection Displays links generated by collections Collection Server Control on page 120 ContentBlock Displays and manages a content block ContentBlock Server Control on page 71 DhtmIMenu Displays a drop down menu with submenus DhtmlMenu
22. DataGrid1 DataBind NOTE When using drag and drop server controls for the Collection and DataGrid you need to call the DataBind method in the code behind An example line of code would be DataGrid1 DataBind This subsection contains the following topics e Steps to Data Binding Using Drag and Drop Server Controls on page 54 e Customizing the DataGrid Table View on page 57 Steps to Data Binding Using Drag and Drop Server Controls The following example uses a Collection Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 54 Introduction to Ektron CMS400 NET Server Controls 1 Drag and drop a data bindable Server Control on the Web form z E 7 Y A X Start Page WebFormi aspx cbForm1 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 Collection1 Ektron Cms Controls Collection 2 S El Ektror 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 5 0 Revision 8 55 Introduction to Ektron CMS400 NET Server Controls 3 Drag and drop a DataGrid on the web form EG Aa X Start Page WebForm1 aspx WebFa a Collection ID 1 Count 1 o o Column0 Column
23. File Edit Format Help lt DOCTYPE HTML PUBLIC w3C DTD HTML 4 0 lt Title gt cms400 Sample web site lt Title gt lt meta name Keywords content CMS400 content management solution business users developers benefits 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 426 Custom PHP Functions Use the GenerateNextGenMenu and DropNextGenMenu Custom functions to display a DHTML menu on a Web page Place Generat eNextGenMenu once on the page to provide an infrastructure for DropNextGenMenu Then place propNextGenMenu aS needed to implement individual menus Follow
24. 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 5 0 Revision 8 150 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 Month Up with Event monthupwithevent mup_nonMonthCell The cells at th
25. 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 5 0 Revision 8 154 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 44 15 16 17 18 19 20 21 2 23 24 25 26 27 23 Manchester Monarchs take
26. lt Dim AppUI As New ApplicationAPI gt Creates an instance of the ApplicationUI class that can be used by each method 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 Add Content on page 268 block s to Ektron CMS400 NET Collection Displays links generated by Collection Server Control collections on page 120 Content Block Displays and manages a content ContentBlock Server block Control on page 71 Event Calendar Displays an event calendar Calendar Server Control on page 127 Form Displays a content block that is FormBlock Server Control associated with a form on page 81 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 267 Standard ASP NET Methods Method Description More Information IndexSearch Displays on a Web page a set of search fields A site visitor uses the page to search for information on your Web site IndexSearch Server Control on page 97 List Summary Displays a list of content block summaries ListSummary Server Control on page 114 in which to view site Login Displays
27. 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 CMS400Example 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 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 localhost CMS400Example collection aspx id 26 lt link gt lt description gt An Application Driven Tutorial Approachp 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 localhost CMS400Example 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 P
28. 8 27 2002 2 40 26 PM RC International is looked for a highly skilled servo control engineer to join our team 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 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 lt cfset cTeasers tObj GetEcmCollectionItems 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 100S gt gt lt cfif cTeasers Count gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 391 Custom ColdFusion Functions 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 cfe
29. Authenticated False DefaultFormID 0 x 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 61 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 CMS400Example 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 cms400example Workarea ServerControlWS asmx gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 31 Introduction to Ektron CMS400 NET Server Controls You will need to edit this line if you change the location or name of the ServerControlWS asmx file 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 and content blocks For example if you insert a List Summary Server Control its FolderPath property identifies the folder whose contents are displayed If
30. CMS400Example Workarea Entry point for Web Service This Web page webservices ContentWS asmx displays examples of all methods webroot CMS400Example bin Directory for compiled Web Service code webroot CMS400Example bin WebService dll Web Service dll Setup Instructions After you install CMS400 NET you need to open IIS select CMS400Example 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 5 0 Revision 8 433 5 6 7 Web Services webservice Properties i 2 x Directory Documents Directory Security HTTP Headers Custom Errors When connecting to this resource the content should come from amp share located on another computer A redirection to a URL Local Path cMs400s ample webservice I Script source access IV Log visits MV Read IV Index this resource M Write I Directory browsing Application Settings Application name Cmsao0s ample WebService Remove Starting point lt Default We WebService Configuration Execute Permissions Scripts only bs Application Protection Low IIS Process Unload Cancel Apply Help Make sure you are on the Directory tab which is selected by default Press the Create button next to
31. Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 265 Standard ASP NET Methods Solution Explorer CMS400Intranet e Fa a A Solution CMS4001Intranet 1 project CMS400Intranet Add New Item Add Existing Item Add Reference New Folder Add Web Reference Set as StartUp Project Add Web User Control Debug Add HTML Page Save CMS5400Intranet Add Web Service Add Component _ Remove Add Class Rename 4 Click Web Form 5 Inthe code behind add an tmports zktron 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 3 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 below Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 266 Standard ASP NET Methods Line Description lt Page Language vb AutoEventWireup false gt A generic net line of code that should always be placed in the template lt Import Namespace Ektron Cms UI CommonUI gt An import statement that calls the namespace Ektron CMS UI CommonUI to display information from the net assembly file
32. For more Information see Calendar Function on page 353 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 cms400example calendarStyles css in your template This style sheet contains styles that define the Calendar Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 350 Event Calendar Sample Custom ASP Functions Here is an example of an event Calendar in an Ektron CMS400 NET template lt tr gt lt td gt lt ecmEvtCalendar 1 gt lt td gt lt tr gt 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 lt lt May June 2005 July Monday Tuesday Wednesday Thursday Friday Fa 1 Fd 2 Eda Fa 6 EdE 7 Fd s Fd a 9 Eda Centaur s Online Centaur s Online Marketing 2005 Marketing 2005 al 13 Fd 5 14 Fd 5 15 Eg 5 16 Ed 5 Internet World Fa 5 20 Fal 21 al B 22 Fa B 23 Fal 5 28 Eq 29 Fal 5 30 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 351 Custom ASP Functio
33. 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 341 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 ShowRandomConitent id gt This function is basically the same as the Random Content function in ASP See Random Content on page 121 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 418 Custom PHP Functions 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 php ShowRandomSummary id gt This function is basically the same as the Random Summary function in ASP See Random Summary on page 122 for details Event Calendar
34. collection function into the template Login Inserts an Ektron CMS400 NET login Login on page 217 function into the template Content Inserts an Ektron CMS400 NET content Inserting a Content Block block function into the template on page 220 Collection Inserts an Ektron CMS400 NET Inserting a Collection on page 222 List Summary Inserts an Ektron CMS400 NET list summary function into the template Inserting a List Summary on page 225 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 215 Dreamweaver Extension Support content block into the template Command Description More Information Metadata Inserts an Ektron CMS400 NET Inserting a Metadata metadata function into the template Function on page 229 Search Inserts an Ektron CMS400 NET search Inserting a Search function into the template Function on page 232 Calendar Inserts an Ektron CMS400 NET event Inserting an Event calendar function into the template Calendar Function on page 235 Form Inserts an Ektron CMS400 NET form Inserting a Form on page 238 XML Index Search Inserts an Ektron CMS400 NET XML Index Search into the template Inserting an XML Index Search on page 241 Display By Meta Value Inserts an Ektron CMS400 NET display by meta value block into the template Inserting Display By Meta Value on page 246 Standard Menu Inserts an Ekt
35. 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 April Tweedy Weceaday Thurecey se March Sunday Moncey May gt gt friday Saterday WE 1 aA a2 WA WE a SA s WAe Sar WA s Sale Falun So A 19 ia FA 13 Td Blas DA a TS 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 5 0 Revision 8 144 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 c April May Amer Sunday Moedey Tuesdsy Wednesday Thursday Friday Saturday 3 1 GAB CEN GE CEN GEJ 4 Hockey Game 35 2 GE GE GB GB e GB a ae e background f0e9c5 e border bottom c9bda5 1px solid e font fami
36. gt lt HEAD gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 188 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 Title Contact Ektron English U S Content Summary Metadata Schedule Comment Required fields 500 max Separator Character Contact Ektron 486 characters left email Support questions ektron contact The list can display the information as a list of hyperlinks You ca 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 190 e MetaDataList Server Control Properties on page 190 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 189 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 block
37. lisle ii s 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Manchester Monarchs take on 29 30 31 the Portland Pirates font size 12pt font weight bold background transparent font family Arial text align center border bottom aaaaaa 1px 2004 2005 2006 solid mup_eventDisplayEventTitle Display for the event title The following example font weight shows the event display event title in red bold lt lt Apr May 2005 Jun gt gt 5 5 2005 background Sun Mon Tue Wed Thu Fri Sat Location VWA transparent mi 23 41516 i o font family 8 9 10 14 12 13 144 Arial 15 16 17 18 19 20 21 fontsiz size 22 23 24 25 2 27 28 Manchester Ar Monarchs take on 10pt the Portland Pirates text align 2004 2005 2006 left Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 157 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 sd me ee a W 2lislsisle m 8a 9 10 11 12 13 44 15 16 17 18 19 20 21 22 23 24 25 25 27 28 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
38. lt Content gt lt ID gt 24 lt ID gt lt Title gt ASP NET Unleashed lt Title gt lt QuickLink gt CMS400Example collection aspx id 24 lt QuickLink gt lt Teaser gt lt p 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 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 1 2 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 Hyperlink gt lt a href CMS400Example collection aspx id 24 gt ASP NET Unleashed lt a gt lt Hyperlink gt lt DisplayStartDate gt lt DisplayStartDate gt lt FolderlD gt 0 lt FolderID 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 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 CMS400Example 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
39. 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 Button Text 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 C Microsoft ASP NET Prog Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 245 Dreamweaver Extension Support 4 When completed click insert A graphic defines where the XML Index Search appears on your template lt cms IndexSearch id IndexSearch1 XmlConfigId 4 DisplayXslt ecmTeaser HitsMarker runat server gt lt cms IndexSearch gt lt P gt lt P gt mbsp lt P gt Search Tag Description esis vhyaiadtds asd tue cree na Thee ra a ee onthe er otro eRe re uaeonn vet Se eto Ae RCT Shown below is an example of the code that is inserted Platform Code View NET lt cms IndexSearch id IndexSearchl XmlConfigId 4 DisplayXslt ecmTeaser HitsMarker runat Server gt lt cms IndexSearch gt Inserting Display By Meta Value For a description of the Display By Meta Value function see MetaDataList Server Control on page 189 To insert Display By Meta Value Ektron CMS400 NET Developer Reference Ma
40. 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 394 Collection Functions Collection Displays links generated by collections Collection Function on page 388 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 377 Custom ColdFusion Functions Function Description More Information 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 393 Random Content Randomly displays the content of a collection item Random Content Function on page 381 Random Summary Randomly displays the summary of a collection item Random Summary Function on page 382 RSS Collection Creates an RSS feed out of the items in a collection RSS Collection Function on page 394 Content Functions Content Block Displays and manages a content block Content Block Func
41. ASP NET from the which server technology dropdown box Do you want to work with a server technology such as ColdFusion ASP NET ASP JSP or PHP O No do not want to use a server technology Yes want to use a server technology Which server technology ASP NET VB Click Next Choose how you want to work with your files during development For these example steps choose the Edit and test locally my testing server is on this computer radio button 8 Choose where you want to store the files How do you want to work with your files during development Edit and test locally my testing server is on this computer O Edit locally then upload to remote testing server Edit directly on remote testing server using local network Where on your computer do you want to store your files c Ninetpub wwwroot M yFirstSite B Because IIS has been installed on your computer your computer can be used as a local testing server Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 10 Creating a Web Site 9 Click Next 10 Add the URL to browse to the root of your site Dreamweaver communicates with your testing server using HTTP just like a browser so it needs to know the URL of your site s root folder What URL would you use to browse to the root of your site http localhost MyFirstSite Example http ServerOne RootFolder Test URL 11 Click Test UR
42. 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 Es NOTE The following placeholder declaration is required by the Web Form Designe Private designerPlaceholderDeclaration As System Object Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 49 Introduction to Ektron CMS400 NET Server Controls 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 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
43. BA Bw BAw Wha Ba FE Bia Bla Bias Bla wie Ba BA 3 Dw As 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 lt lt March April Max gt gt Sunday Monday Tuesday Wednesday Thursday trey Satar day IWA a A a Als ETE EE 81 A a2 Sls WA BAe Bale 7d Slag 6 B14 Sd Bas a Blas a Siz 6 Biss oS 12 B20 Alan od az Ala Wa Tzs SI oe Ts Daz a Ale SS ae Ss Slo 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 5 0 Revision 8 143 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 sso Sund Monciny Tuesday Wedreacey Thurecdsy dumm gt gt tday Sardy CE aa aaa a a VAs WA cs Ez Mockar same GEJ 2 Tn Wn an a Ea r aEETEETEETKECEK END r af Ge via via Bie Vale BAe r ak Gai 2c Se od Aas
44. CMS400 NET this file is in webroot cMS400Example Workarea java For a description of the ek_menu js file see ek_Menu js on page 372 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 375 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 z English US French Standard German Standard Shown here is the format of the ecmLanguageSelect function lt php ecmLanguageSelect gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 428 Custom PHP Functions This function is basically the same as the Show Site Language function in ASP See Show Site Language Function on page 369 for details The only difference between the PHP function and the ASP one is the syntax for
45. CMS400 NET Developer Reference Manual Version 5 0 Revision 8 163 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 e MenuExample o CMS Developer o Book a ASP NET Unleashed a Programming C NET a VB NET How to o News a All Stars Customer T a Web Design Firms a Enhanced Workflow a Visual Rapid CMS Integration a 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 Ektron 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 5 0 Revision 8 164 e MenuExample o CMS Dev ies o Book a ASP NET Unleashed a Programming C NET a VB NET How to a Add Add or Edit a Edit Menu s
46. 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 61 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 50 Introduction to Ektron CMS400 NET Server Controls Literal DhtmlJavaScript w ai RC international bE pek S Sy Refe 13 Home Literal DropDownMenu of Support Nevs Careers Search Calendar OE p E E 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 dropping 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 5 0 Revision 8 51 Introduction to Ektron CMS400 NET Server Controls First drag and drop a List Summa
47. Custom ColdFusion Functions 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 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 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 322 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 386 Custom ColdFusion Functions lt CFMODULE template request ecm AppPath ecmListSummary cfm Folder books MaxNumber 0 Recursive 0 OrderBy Title asc 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 exampl
48. Ektron CMS400 NET Server Controls e Troubleshooting Error Creating Control Message on page 50 Recognizing the Server Control Within the HTML Within a Web page s HTML a lt cms gt tag wraps the VS NET object as shown below lt cms Search id Searchli 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 cems ContentBlock id ctrlMainContentBlock runat server DefaultContentID 1 DynamicParameter id OverridexXslt Default gt lt cms ContentBlock gt Recognizing the Server Control Within the Code Behind Within the VS NET code behind file the Ektron server controls appear along with the VS NET 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 Fs lt System Diagqnostics DebuggerStepThrough gt Private Sub InitializeComponent 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
49. 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 MenuExample CMS Developer Book ASP NET Unleashed Programming C NET VB NET How to Add Add or Edit Edit Menu submenu News Add or Edit Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 168 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 Ga CMS Developer LE ook ASP NET Unleashed Pro ing C NET VB NET How to 3 E brews All Stars Customer Web Design Firms Enhanced Workflow ie Visual Rapid CMS Integration Ektron Partners and Customers TreeMenu XSL code Below is the XSL code that is used to create TreeMenu 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 output method xml version 1 0 encoding UTF 8 indent yes omit xml declaration yes gt lt Change sitepath to match you environment gt lt xsl variable name sitepath gt CMS400Example lt xsl variable gt lt les menulId must be different for each menu on the pag
50. Hide Used to hide a RssAggregator Server Control in design boolean time and run time True Hide Metadata Server Control False Show Metadata Server Control Language Design time only View content blocks collections etc Integer in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 195 Property Value Data Type 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 Using the RssAggregator Server Control These steps show how to use the RssAggregator Server Control 1 Drag a RssAggregator Server Control into a template 2 Setthe URL property with the path of the RSS feed you want to display This example use the following RSS feed http ax phobos ap
51. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 236 Dreamweaver Extension Support Field Description CalDisplayType Specify the Calendar view type The default is Month 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 ShowXML 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 Unchecked Show Calendar Hide Used to hide a calendar in design time and run time Checked Hide calendar Unchecked Show calendar 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 Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Info GridLayout Set
52. Logout button Login on page 217 ektron Content Block Static content block Inserting a Content Block on page 220 ktron Search Tag Search Inserting a Search Function on page 232 ektron List Summary List Summary Inserting a List Summary on page 225 ektron Collecti n No symbol appears when Metadata Inserting a Metadata Function on Metadata is inserted in a Web page 229 page Collection Inserting a Collection on page 222 ektron Calendar Event Calendar Inserting an Event Calendar Function on page 235 ektron Form Block l Form Content Block Inserting a Form on page 238 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 213 Dreamweaver Extension Support Represents More Information Search Tag XML Index Search Inserting an XML Index Search on page 241 Metadata ektron display by Display By Meta Value Inserting Display By Meta Value on page 246 Standard Menu DHTML Menu Inserting a Standard Menu on page 250 Inserting a DHTML Menu on page 253 Language Language Select English U S v Inserting a Language Select Box on page 258 ektron Lang API Language API Inserting a Language API on page 260 Ektron CMS400 NET Commands Menu The following section explains how to loca
53. RM Kectn25 Pu ran sarot ksectoru e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu fri set Hockey game 5 r Location VWA 2 j 8 7 Sean 7 00 PM e 1 t2 13 14 End 10 30PM 1s 16 17 18 19 20 29 z z2 z 2s 2 27 28 2 30 31 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 421 Custom PHP Functions Event Calendar Sample Here is an example of the event Calendar in an Ektron CMS400 NET template lt tr gt lt td gt lt php ecmEvtCalendar 24 MonthUpWithEvent gt lt td gt lt tr gt Form Function The ecmFormBlock function displays an HTML form content block For more information about HTML forms see theEktron 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 php ecmFormBlock id gt This function is basically the same as the Form function in ASP See Form Funct
54. 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 10 Stream Nothing Optional ByVal o As Object Nothing Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 457 Syndicating Web Content as RSS 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 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 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 Ver
55. Server Controls oniinn oiia a 29 Updating the Server Controls cccssiascoscssases cacssssnes scacasasnans cacaesssnocsed 29 Inserting Server Controls Using Drag and Drop 00 29 Adding a Server Control to a Template ccccceeeeseeesetteeeeees 29 SELVSlGCOMMOIW SASK soeassecitscasassasanteasssdstadassanase hasenguaasasanneneags 31 Using CMS Explorer to Browse Your Ektron CMS400 NET Site 32 Buld ihe Pro 6Ctccs ncacsecctsceiacsetecsctdaccateteneliccetescentectecdscapieereescennteerses 33 Inserting Server Controls Programmatically seceee 33 Steps to Insert a Server Control Programmatically 00 c ccceeee 34 Step 1 Declare the Namespace ceeseeeeeeeeeeeeeeeeeenaeeeeee 35 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 ix Step 2 Create an Instance of the New Control 0 35 Step SSL ING Prope eS rannen aie 36 Step 4 Call the Fill MGthOd sirere 37 Step 5 Use text Property to Display the Conttrol 05 37 Server Control Properties in Code Behind cccccececssteeeeeeeennees 38 Displaying Properties for a Control cecccseeceeeeesseeeeeeeeeneaes 38 Mutual Server Control Properties in Code Behind 39 Accessing Additional PropertieS ccecceeeeeeeeeeeeteeneeeees 41 Accessing ltems in an Array sssesesissserrrrrssrrrrrressrrrnreeeerenns 47 Referencing the Page Property c
56. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 431 Web Services e http aspalliance com jnuckolls articles introws default aspx e http aspnet 4guysfromrolla com articles 062602 1 aspx e http www 15seconds 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
57. Site A home page needs to be created and defined in order to build the site map CR E Site MyFirstSite c inetpub wwwroot MyFirstSi Steps to Add a Home Page 1 Right click the local root folder in the Files window For example Site MyFirstSite c inetoub wwwroot MyFirstSite 2 Click New File 3 A file titled WebForm aspx appears in the Files window Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 14 Creating a Web Site 4 Right click WebForm aspx and choose Edit gt Rename Eek i P Code ii b Tag Inspector i w Files Fies WERS EJ v MyFrstsite Local view aAC amp Se yale Site MyFirstSite c jnetpub wwwroot MyFirstSite WebForm a New File New Folder Open Open With Cut Ctrl x Edit Copy Ctrl C Select gt Paste Ctrl V e aae Delete Del PeP heck Out Duplicate Ctrl D Put Rename F2 Chark T 5 Cneck in J lel cK Out 5 Name the file Index aspx Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 15 Creating a Web Site 6 Right click Index aspx and select Set as Home Page nes Assets aC Y B j B Site MyFirstSite c jnetpub wwwroot MyFirstSite Index aspx New File New Folder Open Open With gt Edit gt Select gt Turn off Read Only Locate in Remote Site Add ta Canaritan 7 To view a site map click Map view from t
58. 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 5 0 Revision 8 252 Dreamweaver Extension Support 4 When completed click insert A graphic defines where the Standard Menu appears on your template oles ise Loson Lf me pe a Bt O 14 lt P gt amp nbsp a5 lt cms Menu id Menui DefaultMenuID 15 runat server gt lt cms Menu gt 16 lt P gt C E E T E O T T T TT Necerintinn Shown below is an example of the code that is inserted Platform Code View NET lt oms Menu id Menul DefaultMenuID 15 runat server gt lt cms Menu gt Inserting a DHTML Menu For a description of the DHTML Menu function see Dhtm Menu Server Control on page 178 To insert a DHTML Menu Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 253 Dreamweaver Extension Support 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 Ektron CMS400 DhtmiMenu Control Control ID 5htmiMenu1 DefaultMenulD Select the from a list of menus MenuStyle Stylesheet Dynamic menu Parameter None v 3 Use th
59. Team via our Web Site at http www ektron com support cms400_support aspx For questions and answers about purchasing Ektron CMS400 NET from Ektron contact the sales department by sending an e mail to sales ektron com 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 5 0 Revision 8 461 Additional Information 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 5 0 Revision 8 462
60. URL parameter String Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 180 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 Sub menu False Submenu appears below the root menu Root Menu gt Company Directory Company Policies Company Calendar Latest Changes Submenu Property Value Data Type 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 HorizontalDisplay Displays submenu to the right of the root menu This Boolean Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 181 Property Value Data Type Language Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Integer MenuHoverOverColor Sets the background color for the root menu when hovering over it String MenuStyle A specified inline style that defines the root menu For example enter the follo
61. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 314 Custom ASP Functions XML Tags Description 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 5 0 Revision 8 315 Custom ASP Functions lt Content gt lt ID gt 24 lt ID gt lt Title gt ASP NET Unleashed lt Title gt lt QuickLink gt CMS400Example collection aspx id 24 lt QuickLink gt lt Teaser gt lt p 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 lt p gt lt Teaser gt
62. co Fe Wray H a Authenticated Bab Gsdee O E 6b betel a wa a CmsSitePath wi aie Gd ee eG OND Lona Ave Redes apa E G ers ContentParameter Gd by Sula a Shavie t OAF aecates wars DefaultCollectionD cya Ge E Gab ud oatioed acta wns DisplayXsk aa 6 Saeed Gel ees Chae heros o SPs DynamicParameter a E cai nila GY ax Gis Gr gates AAT iets GetHtml C10 WS ee WS Wee ee a Re wh eR Hide OO Oe SW 8 Tw Sie ew Hee ee Language SOIIIIIIIIIIIIIIIIIIIIII f Ef properties 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 5 0 Revision 8 125 Address E http localhost cms400example randomcontent Go Links CMS300 Samples Menu Welcome to RC International Hello There Gail Elliott gelliott test com Sales 603 555 1113 Responsible for the Northeast region ET Maine Mass NH NY VT Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 Lill lt 126 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 131 You can adjust a ca
63. crash has to be seen Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 280 Custom ASP Functions 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 being 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 tee fient mendia a namn nann taal Edit and use sales c Preview 3 United Kingdom View Content Difference tool has become View History partnerships have been made with every m Add Task Properties As a result Mr Acme and his team have ha 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 Stat
64. display the menu None Use Default menu_ID The control uses the menu passed as a URL parameter 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 DhtmlMenul DefaultMenuID 16 ForeColor runat server gt lt cms DhtmlMenu gt Inserting a Language Select Box For a description of the Language Select Box see LanguageSelect Server Control on page 65 To insert a Language Select Box Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 258 Dreamweaver Extension Support Move the blinking cursor to the area that you want to place it From the list of Ektron CMS400 NET Functions click Language Select The Language Select box appears Hide Visible Positioning info GridLayout Style a Wrap tag 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 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 Unchecked Show function Note If Hide and Visible are both c
65. 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 5 0 Revision 8 226 Dreamweaver Extension Support Field Description Order By Specify how the summaries are ordered 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 may 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 See Also Example of ecmNavigation Display on page 122 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 123 Dynamic Content Parameter Checks the QueryString for this value and replaces the list summary with a content block whe
66. ecccsseeeeeeesseeeeeeeseeeeeeeees 364 Using a Dynamic Metadata Tag ssscceeeeeseeeeeeeeeeeeeeeeees 365 ecmMetadata Attributes ccsssecccssseeeeeeessseeeeesseseeeeeseeees 366 emi USAiii gusty aassapsasseauessenuctsasanubanpieadaameassoneesenitetts 366 DANG ATE P E TE IE A E E E T 368 Show Site Language Function cccccsssseeeeeeteeeeeeeeees 369 DHIML GIS ccicccseccasssanssasnsenasanesasnssncnencsenccsnsasscacaannsaansnnees 370 Additional Documentation in Ektron Knowledge Base 370 Displaying a Menu on a Web Page sssssessseeseseeneeeens 370 GenerateMenu and DropMenu ccccccceeeeneeeeeeeeeeeeeeeeetaeeeeees 370 Displaying Menus in a Multi language System 0 cceeeeeee 371 Customizing the Menu s Appearance cccssseeeeeeseeeeeees 371 OK MONS asses cesesacccctecedactecccsssecsecstartecceeracedecaxseaensievicaceceauvidens 372 POMPA scsccasaiceccestajaiettscnieiaietetsaaniaiesetanstiaieateseindaieatndraaiaiegeteuetdd 373 MVS AUTO EOC lOi saiia aa 374 XM MEMU isiin E 375 Custom ColdFusion Functions cccceeceeeeeeeeeeeeeeeeeees 377 Login PUNCH OM eo ciscctsestecscessesdccccdssecinrncdesmaiotadetencetesdestccnisnontecet 379 Logo Tag ay clini Olloemrereer ren terete rere see rrceretnrer rn errtrerer ey rrr 380 Gontent Block FUNCHOM ascsccsssccsscccesectettsceccainiecscceatomccececenincecs 380 SLANG Content BIOK ssacassssssnaaacansanntdoacsasannaaaencassannnaenca
67. fe Design E4 Title loginexample RASS AN SANA SEAS RNR S SASS NNSA SNES SSNS SSS SSRN SSNS SERS S NESE SSS SNES SESS SSSR SESS ESSE AS SSE SSSA ESAS ESSE S ETS Files loginexample aspx loginexample vb veer lt Macromedia Dreamweaver MX 2004 loginexample CMS400Example log 3 4 8 Q 8 e oe St lt meta name vs_defaultClientScript content Javascr q lt table width 95 border 1 cellpadding 0 Perttritiitiitiititiitiitiiiitiiiiiiiiiitiiciiiiiiiiiitiiiiiiiiiiiiiiiitiiiiititiitiiiitiitiit iit ii iii titi ily lt meta name vs_targetSchema content http schemas 12 lt LINK href default css type text css rel stylest_ ile lt HEAD gt 14 lt body gt 15 lt form id Forml method post runat server gt 16 lt p gt amp nbsp 17 lt p gt 16 lt p gt 19 lt p gt 20 lt P gt amp nbsp lt P gt sansa Mi gt lt body gt lt form Form1 gt lt p gt 470 x 164 6K 1 sec NOTE The custom ASPX function that is inserted into this template by default has been stripped out Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 212 Custom Function Symbols During the process of inserting functions symbols are used to represent the custom display functions The following table explains each symbol Dreamweaver Extension Support Symbol Represents More Information Login
68. gt To pass in a standard content block pass the id value in the url parameter as illustrated below http localhost CMS400Example index asp id 2 To pass in a Form content block pass the ekfrm value in the url parameter as illustrated below http localhost CMS400Example index asp ekfrm 2 NOTE For more information about passing the id value as a url parameter see Dynamic Content Block on page 381 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 eemContentBlock and passes the DefaultID value as the id argument If the DefaultID value is zero 0 ecemContentBlock 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 398 Custom ColdFusion Functions 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 132 for details The only difference between the Coldfusion function and the ASP one is the syntax fo
69. implementing it Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 429 Custom PHP Functions 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 5 0 Revision 8 430 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 technologies 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
70. in Ektron CMS400 NET You e ek _Menu js ek_Menu js can change 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 cms400 Example Workarea java For a description of the ek_menu js file see ek_Menu js on page 372 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 402 Custom ColdFusion Functions 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 375 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 ecmL
71. ion Tue wea thu Fri Hockey Game Location VWA mm 213 4 4i1 5 6 ie 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 23 Manchester Monarchs take on EAE 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 5 0 Revision 8 153 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 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA
72. lt php ecmContentBlock ID gt Here is the format for the content blockEX function lt php 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 423 This function is basically the same as the Add Content function in ASP See Content Block Function on page 49 for details The only differences between the PHP function and the ASP one are the examples of implementing it The PHP examples are below Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 407 Custom PHP Functions Static Content Block lt tr gt 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 Er gt lt td gt lt php ecmContentBlockEx 13 W 1 gt lt td gt lt tr gt 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 Here is the format for the ecmSearch function lt php ecmSearch StartingFolder Recursive targetpage textbox Ektron CMS400
73. 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 FolderID 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 CMS400Example 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 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 Dis
74. navigation bar the second row of the second column Modify gt Templates gt New Editable Region or click the Editable Region button 6 Inthe Name field type Body Editable Region as the name for this region of the template This editable region will be used as a placeholder for the text of the site pages 7 Click OK In the Document window the region is highlighted and identifiable by the region name ee Editable Region 1 2 200 cvssossonsscevonssvcscessnencocanesese SS 437 x 653 v 8 Click File gt Save 9 In the Save as text box choose a name 10 Click Save NOTE Make sure not to move the DWT file from the Templates folder Also do not rename or move the Templates folder As long as the DWT file remains inside the Templates folder the links from the pages derived from the template to the template will not be broken Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 22 Creating a Web Site Applying the Template The new template is ready to apply to the index products and services pages In an applied template the editable regions are highlighted They appear in a highlight color on all pages to which the template is applied as well Steps to Apply the Template Select File gt Open Browse to and select Index aspx Select Modify gt Templates gt Apply Template to Page Click the Template Click Select In the table type
75. 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 NET toolbox View gt Toolbox 2 Right click the mouse within the Toolbox 3 Click Add Tab Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 27 Introduction to Ektron CMS400 NET Server Controls 4 Type Ektron Server Controls then press enter Components iad HTML Clipboard Ring General Ektron Server Controls Wil server Expl 3 Toolbox Output Click the Ektron Server Controls Tab Right click the mouse in the empty area Click Add Remove Items The Customize Toolbox dialog appears ONO Customize Toolbox E E x Name Namespace Assembly Name IE O apone Microsoft VisualBasic Comp Microsoft YisualBasic Compatibility Dat Dlapopcarray Microsoft VisualBasic Comp Microsoft visualBasic Compatibility Dat AdRotator 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 Win
76. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 310 Custom ASP Functions 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 is design nid level RC racer currently on the market nferdoce 927 2002 2 44 44 PM growing host the 3rd A RC conference in Atlz user who last edited the content block DateCreate Displays the date when the i level RC racer currently on the mark d content was first created st the ard aad RC at a in A AuthorFname Displays the first name of the r serwho last edited the nid level RC racer currenth content block host the 3rd annual RC cc AuthorLname Displays the last name of the Cl KU Sportster ine KU gt p d mid level RC racer currentl to host the 3rd annual RC ct Max Number This attribute determines how many summaries appear on a page Enter the number
77. 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 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 Using the Collection Server Control Programmatically Example The following is an example of using code behind and a drag and drop Collection Server Control to display random content from a collection Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 124 1 Drag and Drop a Collection Server Control on your Web form 2 Set the properties in the properties window NOTE In this example the Random property and the GetHiml property must be set to True StartPage randomcontent _Idisplay aspx randomcontent_htmidisplay aspx vb s BS ak Pa dooce g Doea rr a Ektron Cms Controls Collecion E E E E aif cea alo a 103 rharrds lt a gt vas TOE 8 Ektron diaaa de RAS BS S Ba Gi AD
78. provider has updated is now reflected See A so Using the RssAggregator Server Control on page 196 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 195 e Using the RssAggregator Server Control on page 196 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 194 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 Net 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 32 DisplayXslt 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 122 ecmTeaser lists a title and a description of every RSS feed item See Also Example of ecmTeaser Display on page 123 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page
79. raaa 277 Placing Your LOGIN BUNOW i cccscccccsccncnsnncncteeseescensnsssanenscecens 277 Content Block FUNCTION ccccsseseeeeeeeeeeeeeeeeeeeeeeeeeeeeeneees 278 Content Block Examples sccseccsssseeeeeeeseeneeeesseeeeeeeeneeneaees 281 OAICH FUR CH ONS siesicensscitiensindnnctencnictniasaiamannceietancnatesenininads 288 Search Tag Example wsicsicescssssccscccnsesemcccunancemianaanooamccaatsenccxcancce 291 Search Tag Attribute S sssiasiciscsciaccccccstsccsatasseoccsncccecsncescatescececece 292 Search Display FUNCTION sssini soiin 299 Search Display Examples eiaeia 300 Search Display Attributes cccceseeeeeeeeeeeeeeeneseeeeeeeneeeees 301 List Summary FUNCOM sissies iina 304 List Summary EXaMple sscscccccscasccecscscacstcccstsesstiecetsecnscexeanecnnaaxe 306 List Summary Attribut s isisisi dininin ainiaan aaa 307 XML List Summary FUNCHON cascsiissisesisscssssinesssctsnccenntscatinatas 312 Archive List Summary Function cccccssssseeeeeeeeeeeeeeeees 317 Single Summary FUNCHON csccccccscsccnesscesesssarnesnnesacnsscasecasanns 318 Single Summary Example nciccnccccecdocccecsscceteciccscestececseccesneseseceee 319 Single Summary Attributes cccccesseseeeeeeseeeeeeeneeeeeeeeneeeee 319 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 v RSS Summary FUNCUOMN sciicsccsscccisensnssesessnennnnsnensassnasnnansaanes 322 RSS Summary Example ssccccsncscscccsssssnscccssnsuncencscncunte
80. rting Documents asses cs cocci secede ccesci cae eetaeececenssneeecbens 461 SUPPONE nee nee Eee 461 COG sicssisacaasienssesrinraeruaceeeieisireriaeaninaaaeniaieasinneis 461 ITORIM AU ON d a e oraaa tease 461 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 xviii About This Manual 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 24 This document explains how to manually use custom tags for each platform supported by Ektron CMS400 NET e Standard ASP NET Methods on page 263 e Custom ASP Functions on page 273 e Custom ColdFusion Functions on page 377 e Custom PHP Functions on page 404 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 NET or by using the Dreamweaver extension supplied with the installation See Dreamweaver Extension Support on page 192 for additional information Ektron CMS400 NET has also
81. second argument does not exist the third argument specifies an XSLT identified in the Edit XML Configuration screen The following table provides additional detail about the second and third arguments screen illustrated below Note that in this example the XSLT Packaged option is the default XSLT since it is selected Edit XML Configuration new configuration re litle new configuration D 6 Description xslt 2 Display Information Files prefixed with CMS300SampleTest xmIFile Default C XSLT 1 xmifiles xsit samplexsit1 xsl Q C XSLT 2 xmifiles xsit samplexsit2 xsl 0 C XSLT 3 0 To use this display XSLT Enter this for Enter this for argument 2 argument 3 The default XSLT specified in the Edit XML configuration none Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 285 Custom ASP Functions To use this display XSLT Enter this for Enter this for argument 2 argument 3 XSLT Packaged from the Edit XML configuration screen that 0 is the 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 XML configuration screen is used XSLT 1 from the Edit XML configuration screen 1 XSLT 2 from the Edit XML configuration screen 2 XSLT 3 from the Edit XML configuration screen 3 An absolute or relative path to an XSLT An
82. text indicates its type In the above example you can see that the DefaultCollectionID 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 50 Mutual Server Control Properties in Code Behind 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 NOTE 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 39 Introduction to Ektron CMS400 NET Server Controls display Property Value Data Type IsLoggedIn 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 LoggedInUserlD Gets the Ektron CMS400 NET ID of the user to Integer NOTE Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 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
83. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 322 Custom ASP Functions RSS Summary Example Shown below is an example of the ecemRssSummary function in an ASP Web page LR lt TD gt lt ecmRssSummary Books 0 Title 0 gt a Te lt TR gt The previous example has the following properties e Displays summaries from the Books folder e Not recursive e The results will be displayed in ascending order by title e Unlimited results will be shown Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 323 Custom ASP Functions Here is how an RSS summary appears when viewed without a RSS reader on a web page Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 324 Custom ASP Functions lt xml version 1 0 gt lt rss xmins 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 CMS400Example WorkArea WebServices ContentWS asmx lt link gt
84. the philosophy that se Management Conference EN R _ i d Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 282 Custom ASP Functions 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 When a user accesses this page it adds the content block ID number to the tag s template and the content block with the corresponding ID appears on the Web page in the specified template 3 Empoyment Opportunities Microsoft Internet Explorer File Edit View Favorites Tools Help i Favorites A media ral Support News Careers Search Calendar Title Servo Control Engineer Job Number 124 RC International a leading supplier of consumer level radio controlled vehicle control engineer to join our team The candidate will join our highly skilled te next generation products Responsibilities for this position will include The ia 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 283 Custom ASP Functions Managing Content gt Forming URLs For Ektron CMS400 NET Docum
85. then start it back up Now you can use the Ektron CMS400 NET Extension Pack Refer to Using the Ektron CMS400 NET Extension on page 210 for more information on using Dreamweaver to create and edit templates for Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 207 Dreamweaver Extension Support 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 e Work Online e Include e Check for Include To change these options follow these steps Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 208 1 Dreamweaver Extension Support Follow the path Commands gt Ektron CMS400 NET gt Setup Macromedia Dreamweaver MX 2004 Ri Ctrl Shift x es a Get More Commands Apply Source Formatting lt atyle gt Clean Up HTML i 46 lt HEAD gt Clean Up Word HTML 47 lt body gt Add Remove Netscape Resize Fix 48 kform id Form1 method oo eee Osa SO ie lt table BOCOLOSSTAEEEEEE Creat Web Photo Abn takca 50 lt Iwteble EIWwWsSrc q Set ia ert gt ample g r Iw 51 lt tr gt 52 lt td gt lt img src image Format Table r 0 alt gt lt tc 53 lt td gt lt img src image _ S0 t Tabl
86. understand how the samples work this section explains the news sample NET page news aspx which is installed tO webroot CMS400Example WebServiceDemo 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 444 Web Services 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 ilId SstrHTML Replace strHTML asp aspx NewsInfo InnerHtml strHTML se strHTML wsCms400WebService ListSummary Marketing News 0
87. 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 id 2 displayFunction ecmTeaser This function is basically the same as the Collection function in ASP See Collection Function on page 107 for details The only difference between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion example is below Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 388 Custom ColdFusion Functions 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 CFMODULE id 1 displayFunction ecmNavigation template request ecm AppPath ecmCollection cfm gt 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 lt cfparam name Attributes nId default gt lt cfparam name Attributes href default gt lt cfparam name Attributes target default gt lt cfparam name Attributes startStyle default gt lt cf
88. various Microsoft Web sites These Web sites include http msdn microsoft com library default asp url library en us vbcon html vbwlkwalkthroughcreatingbasicwebformspage asp http msdn microsoft com library default asp url library en us dndotnet html introwebforms asp Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 2 Creating a Web Site http msdn microsoft com library default asp url library en us vocon html vbiskCreatingWebProject asp http msdn microsoft com library default asp url library en us vocon html vbconintroductiontowebprojects asp When using Microsoft Visual Studio NET you are creating a Web application instead of a Web site Web Applications typically involve more programming code and can include Web services Fundamentally Web applications and Web sites can be the same thing Microsoft s view is Visual Studio NET is for building applications Web or otherwise If you are building a simple web site their recommendation is to use Microsoft FrontPage NOTE Ektron recommends using Microsoft Visual Studio NET or Macromedia Dreamweaver MX 2004 Ektron has added extended functionality for both products in Ektron CMS400 NET Most Web applications include the following e a Web project e references e assembly information e a Global asax file e astyle sheet e aweb config file e one or more Web Forms For a complete description of the above items visit the foll
89. 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 5 0 Revision 8 152 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 week header in red lt lt Apr May 2005 Jun gt gt 5 5 2005 BBM
90. 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 calls the Ektron custom functions file to allow the page to function properly It must appear at the top of the template file To customize you Ektron CMS400 NET application you need to be familiar with these functions Function Description More Information Calendar Functions Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 404 Custom PHP Functions Function Description More Information Event Calendar Displays a month view event calendar Event Calendar Function on page 419 Collection Functions Collection Displays links generated by collections Collection Function on page 413 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 417 Random Content Randomly displays the content of a collection item Random Content Function on page 418 Random Summary Randomly displays the summary of a collection item Random Summary Function on page 419 RSS Collection Creates an RSS feed out of the items in a col
91. xsl attribute gt lt xsl value of select ItemTitle gt lt A gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 176 lt xsl otherwise gt lt xsl choose gt lt xsl otherwise gt lt xsl choose gt lt span gt lt br gt lt xsl apply templates select Item Menu gt lt xsl otherwise gt lt xsl choose gt lt xsl template gt lt identity template gt lt xsl template match node gt lt xsl copy gt lt xsl apply templates select node gt lt xsl copy gt lt xsl template gt lt xsl stylesheet gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 177 DhtmiMenu Server Control NOTE For optimal performance Ektron recommends using at minimum Internet Explorer 5 5 Netscape 6 0 or Mozilla Firefox 1 0 The DhtmIMenu 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 CMS Developer Before using the DhtmlIMenu 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 menu When you are logged in to your Ektron CMS400 NET site two menu items are added to each menu Add an
92. you are not sure of the folder path click the gray button VISLLVI ASCENUNIY DisplayXslt ecmNavigation YA Hide False annuane 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 Password Domain Select Close Login Logout Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 32 Introduction to Ektron CMS400 NET Server Controls 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 site Ektron CMS Explorer 8 Folders Corporate Human_Resources Marketing MISZIT News Sales E Users Navigate through the folders select an object then click the Select button The selected object is pasted to the server control property Language f l Folder Selection NOTE Although you see the object in the selected language in Visual Studio NET the language is not store
93. 0 Revision 8 442 Web Services Parameter Where How Implemented by CMS Defined in Application 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 contentutmi 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 Jjob title gt Plastics Molder lt Jjob 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
94. 00 Example N 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 Simply 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 5 0 Revision 8 112 12 The XML Content Block for that book appears Address 4 http localhost CMS400Example collection aspx id 23 i Go Links 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 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 d
95. 00 NET Developer Reference Manual Version 5 0 Revision 8 453 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 list 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 Awww newzcrawler com The RSS Specification The RSS specification is a document htip backend userland com rss Ektron has implemented the specification but you can customize the RSS classes to support advanced features Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 454 Syndicating Web Content as RSS RSS Syndication in Ektron CMS400 NET Ektron CMS400 NET allows you to syndicate content by using NET Syndicating via NET requires that yo
96. 00 NET Site on page 32 String DefaultContentID DynamicParameter Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 The ID of a content block that appears where you inserted this server control if no other content block is identified or is not available If you don t know the ID number of the content block use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 To make this content block dynamic select id When you do this server control uses the content block passed as a URL parameter Integer String 76 Property Value Data Type Hide Used to hide a content block in design time and run time True Hide content block False Show content block Boolean Language Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list 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 77 must be one of these values default one two three DisplayXslt Specify an external XSLT file See Also The Overr
97. 01 PM Products Page 8 27 2002 7 50 09 PM 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 300 Custom ASP Functions performed the results replace the content block The sample code below does that lt b 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 Search Display Attributes Listed below are the attributes for the SearchDisplay tag Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 301 Custom ASP Functions 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 5 0 Revision 8 302 Custom ASP Functions Style Info An HTML style string u
98. 06 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 314 5 6 ie 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 26 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 5 0 Revision 8 156 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 mm 21 314 5 6 E 8 9 10 14 12 13 44 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 2004 2005 2006 The event display date header The following example shows the event display date in red lt lt Ar May 2005 n gt M Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA W 2lsl
99. 1 Title asc DateModified 0 SstrHTML 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 requested ID NewsInfo InnerHtml wsCms400WebService ContentBlock iId As you can see we are assigning to the variable NewslInfo InnerHtml the Web service wsCms400WebService followed by the ContentBlock method For a list of methods see CMS400 NET Methods on page 435 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 2 International Ships RC Sportster8 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 445 Web Services If iId gt 0 Then strHTML wsCms400WebService ContentBlock ild 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 HTT
100. 1 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 318 Custom ASP Functions Single Summary Example Shown below is an example of the single summary function in an ASP Web page lt TR gt lt TD gt lt ecmSingleSummary 14 1 DateModified gt a De lt TR gt The previous example had the following properties e Displays the summary for the content block with an ID 14 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 engine
101. 1 Drag an Ektron CMS400 NET server control onto a Web form 2 Drag three Literals onto the Web form ContentBlock ID 0 f Literal Literal f Literal Literal Literal Literal3 3 Open the code behind for the Web form 4 Add the following code to the Page_Load event 40 Introduction to Ektron CMS400 NET Server Controls Literall Text ContentBlockl IsLoggedIn If ContentBlockl IsLoggedIn Then Literal2 Text ContentBlockl loggedInUserName amp is logged in Literal3 Text ContentBlockl loggedInUserID amp is the User ID End If Build and run the solution Browse to the login page and log in Browse to the new Web form you added o NOON The login information is displayed WebForm5 Microsoft Internet E File Edit View Favorites Tools Qx 0O x 1G http flocalhost CMS400Examph Links EktronNet Welcome 8 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 41 Introduction to Ektron CMS400 NET Server Controls To access additional properties use the same syntax you use for standard properties but add ekitem Or ekitems after the obje
102. 134 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 5 0 Revision 8 135 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 5 0 Revision 8 136 Style Class Description Attributes and Default Settings dv_DayHeader The day header for the calendar The following e background example shows the day header in red 99DDFF e col
103. 3 DISPIAY EUNCUON RE E A E E A TA 393 SUDI BOCK aaa R 393 XML Collection Functlon ii2scc ccc 393 RSS Gollectlon PUMCUON wiacccsccscc coset ceccecccsesct ect eeeeeceee 394 Event Calendar FUNCION cccscscccccccictccscecstcteecdencecsteecescsenscececesss 394 Event Calendar Salmpletssssctacesasasiestcatasntraccacsges facceguacaatavteacdemntatsee 397 Form FUNCOM iisscesseces cece seitescecesscdicctitandciscemercciecndiceacuasnanenccecens 397 Mu ltiPurpose FUNCHION i cccsssncsesnescsccscunensescnsnsessascostnexennanacceass 398 Metadata FUNCOM scssssedecissssscissadiscssesasdansdssansidassisncstbesstdauscinas 398 DHTML MENUS isa ssccctanstssastainaraciadainsininatemaisinnccisininninaiticiesast 401 Additional Documentation in Ektron Knowledge Base 45 401 Displaying a Menu on a Web Page eceeeeeeeeeeeeteeeeeseeeeeeeeees 401 GenerateMenu and DropMenmu cccceceeeeeeceeeteteeeeteees 401 Customizing the Menu s Appearance cc cccceceeeeesteeeeetteeeeeees 402 ek IMGNU Sis sccocseesssvarernanvsscccnemeies sancinementsy secmendenss skcmadedwys cmememeues scene 402 XML Men PUN COM assis scccecsceccccctecscceacnrmctececcnnadcedememenccncedeaacaee 402 Language Select Function scscsscesscssesssersnesscenscersenssornse 403 GUStOMm PHP FUNCUOINS sicccccsccticcssgpcceecnntcccticnctssenttcieemens 404 bogin FUNCTION eset scececdecseteietncdacciwacactencetivecsauaneccdecenauacnanencatenes 407 L gin FUNCTION ERAN DIG si
104. 8 271 Standard ASP NET Methods yj CMS400 Work R aCA D Content a s0 Human Resources Content Title Content Title 1 Marketing Content ID 31 7 Products Status Approved Published s Support Last User To Edit admin SE Syndication Last Edit Date 14 Jun 2004 22 54 00 PM Start Date 14 Jun 2004 11 55 00 AM End Date None Specified Date Created 14 Jun 2004 22 49 00 PM Approvals None Specified XML Configuration None Specified HTML Content A4ssumed inherited Path History Comment Comment Metadata itle ContentTitle Keywords Summary his is the summary for the content Content his is the body of the content Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 272 Custom ASP Functions 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 appli
105. 9 For information on adding server controls see Making the Server Controls Available on page 27 Inserting Server Controls Using Drag and Drop Because Visual Studio NET 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 NET 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 5 0 Revision 8 29 Introduction to Ektron CMS400 NET Server Controls Ektron Server Controls h Pointer ara Al cl ean dra nun 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 NET Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 30 Introduction to Ektron CMS400 NET Server Controls gp Solution Explorer 9 class View al Search Properties a x FormBlock1 ServerControlLibrary FormBlock gt 4 E CssClass Font ForeColor L E Behavior Accesskey Enabled True EnableViewState True TabIndex 0 ToolTip visible True E Data DataBindings E Ektron
106. ASP Functions menuLiteBgColor Example Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 374 Custom ASP Functions 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 ecmGetMenuXML 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 5 0 Revision 8 375 Custom ASP Functions 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 ItemTit le 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 lt ImageOverride gt False lt ImageOverride gt lt Item gt lt Item gt
107. Application Using Microsoft Visual Studio NET 2 Greaund a Web gi 0 1 01 deeerereerceny Rerrecer ts ere ecerer eerrreeryT errcrrrren creer es 4 Steps to Create a Web Proj6Ctissccecsasecscccedsedececeecteadeassncesschavectees 4 LI SUNG WV SOA ONS nasso an 6 Creating a Site Using Macromedia Dreamweaver MX 2004 7 Deining a Local Steaua anao merece perry rercrrrer rar re reer 9 Steps to Define a Folder for Use as a Local Site ee 9 Building the Site Map in the Files Window ccceeseeeeeseeees 12 Steps to Add a Home Page csc csccctsssicsceceteidaceceessbideessecesyendecteee 14 Creating a Subtolder and FNS sss scccsisdcpssansceassivancauadelssttganasespsanenss 17 Steps to Create a Subfolder and Files 0 ccceceeceseseeeeeeeee 17 Greatngthe TemplalSimiisnn ooa 17 Steps to Create a Templates ccccsassccccsssceccencsssestecccssenateccesssenecane 18 APDIVING INC Tei Plate sa 23 Steps to Apply the Template wicscixcestsceseteteettieictacsntetieccnaietcce 23 Testing and Viewing the SMG cscs icisteceesssntesesccanes peccsadasin alededapinencsueds 23 Steps to Test and View the Site ccc cseeeeeeeeesteeeeeeeees 23 Introduction to Ektron CMS400 NET Server Controls 24 Opening the Sample Project ssssescessssseeeeesseeseeeeesseneeees 25 Seting Up a Template sass cisiscsasasesicsseissnestivscssiveansecsadecsssveaacaqaases 26 Making the Server Controls Available cccsssseecsseeeees 27 Removing the
108. Column2 abc abc abc on abc abc abc o o abc abc abc HE abc abc abc abc abc abc o o o 4 In the DataGrid properties choose the DataSource Properties DataGrid1 System Web UI WebControls DataGrid AK z Data A DataBindings DataKeyField DataMember DataSource Collection1 5 The DataGrid is populated with column headers and the type of information that will be in the table 6 Go to code behind and add DataGrid1 DataBind to the Page_Load event Private Sub Page Load ByVal sender As System Object Put user code to initialize the page here DataGridi DataBind End Sub Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 56 Introduction to Ektron CMS400 NET Server Controls 7 Switch to Design mode and right click on the DataGrid 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 Application Customizing the DataGrid Table View Customizing the DataGrid is a great way to display and format specific information from a data source You can select formatting for columns paging and borders plus other general formatting for the table In the following example we choose table columns Ektron CMS400 NET Developer Reference Manual Version 5 0 Rev
109. DHTML menu DHTML Menus on page 401 GenerateMenu Works with DropHTML menu to display DHTML menus DHTML Menus on page 401 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu Function on page 402 Metadata Functions Metadata Displays the metadata for the current Web page Metadata Function on page 398 Search Functions Search Inserts a text box with a search button Search Function on page 382 Search Display Creates an area to display search results Search Display Function on page 383 Login Function This tag is responsible for displaying the following buttons on the Web page Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 379 Custom ColdFusion Functions This function is basically the same as the Login function in ASP See Login Function on page 46 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 Tp Shown here is the format for the content blockEX fu
110. Date Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 45 Introduction to Ektron CMS400 NET Server Controls Property Description For more information see Status Teaser The status of the content block e approved e checked out e checked in e expired e pending deletion e pending expiration e pending start date e submitted The content block summary Ektron CMS400 NET User manual Appendix A Content Statuses 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 Xslt1 The content block s first Xslt as defined in Ektron CMS400 NET Xslt2 The content block s second Xslt as defined in Ektron CMS400 NET Xslit3 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 Xsit5 The developer can use this property programmatically Ektron CMS400 NET only uses Xslt1 2 and 3 in the workarea Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 46 Introduction to Ektron CMS400 NET Server Controls Accessing Items in an Array To access and manipulate content blocks returne
111. Date 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 O Unlimited Returned on page 302 Returned Style Info An HTML style string used No Style Info on page 303 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 303 of the content block O No 1 Yes Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 299 Custom ASP Functions Search Display Example Insert the following on the page that displays search results You may place it on the same page as the search tag or a separate page Sener lt td gt lt ecmSearchDisplay 0 1 gt lt td gt Lre 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 When the tag is added to a template and a search is performed the results appear similar to the following RG international Home Products Support News Careers 1 RC Sportster 20 30 2002 10 58 00 AM RC Cheetah 20 30 2002 10 56 36 AM RC Lilly 20 29 2002 4 58 38 PM RC Redstar 8 27 2002 7 52
112. ESS ESS SASS SESS ESSE S ESSE SS SN SN RASS ARSE SSSR SS ESS ERASE ESSE SASSER SESS SSNS ESSE SEES SS SSE SSSA ESSE SNES PRN SAA ESSE SSSA S NESSES NESSES ESSE STEN ESSERE ESSE SEES SESS SESS ESSE SEES E SES control paints a login button on the templa ogin appears Clicking the button opens th The following sections explain how to insert each function Login For a description of the Login button see Login Server Control on page 63 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 217 Dreamweaver Extension Support 3 The Insert Ektron CMS400 NET Login box appears Insert Ektron CMS400 Login Tag Paints the login or logout button which allows the user to login and ee Hide O Visible M Positioning info GridLayout Style leave blank if none Wrap tag Span v 4 Use the following table to assist you with inserting a Login button Field Description ID A unique name for the function you are inserting Hide Used to hide a Login button at run time Checked Hide Login button Unchecked Show Login button 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 Unchecked Show function No
113. ET 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 vs_targetSchema gt lt HEAD gt Shown below is an example of the code that is inserted Platform Code View NET lt coms MetaData id MetaData2 runat server DefaultContentID 12 gt lt cms MetaData gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 231 Dreamweaver Extension Support Inserting a Search Function Insert Ektron CMS400 Search Ektron CMS Search For a description of the Search functions see Search Server Control on page 85 To insert a Search function 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 The Insert Ektron Search box is displayed Display Type Max Number of results ShowSearchBoxAlways Display Horizontal Hide Visible PostResultsAt E Positioning info GridLayout Style ButtonImgSrc ButtonText Sea EmptyResultMsg MaxCharacters TextBoxSize Wrap tag Search returned zero resull Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 232 Dreamweaver Extension Support 3 Use the following table to assist you with inser
114. ET Developer Reference Manual Version 5 0 Revision 8 333 Custom ASP Functions Creating Custom Display Functions The following section explains how to create custom display functions for your ecmCollection function Function Structure All display functions use a similar structure Function yourCollectionDisplayFunction cInfo cimi Nemi NEO html html amp lt b gt List of Content Titles lt b gt lt br gt for each into im CENEO html html amp info ContentTitle amp lt br gt next yourCollectionDisplayFunction html end Function Creating a Basic Display Function Explained below is a how to create a basic display function 1 Inthe API file define the display Function MyDisplayFunction cInfo function end Function 2 Declare any necessary attributes Function MyDisplayFunction cInfo dim html info end Function 3 Add any html or text to apply to the Function MyDisplayFunction cInfo collection data as a whole not dim html info individually for example add a html lt yise opening and closing html table tag html html amp lt ul gt end Function Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 334 Custom ASP Functions 4 Adda for loop to cycle through each collection item and apply the information defined Function MyDisplayFunction cInfo dim html info html lt ul gt for each info in cInfo
115. EkSearch xXMLSearchRangeType ExactPhrase H bRet IndexSearchl AddParm IndexSearchl Search IndexSearchl Parm Valuel Request QueryString publisher iterall Text lt hl gt Publisher amp Request QueryString publisher amp Books lt h1 gt iteral2 Text lt a href webform aspx gt Back lt a gt Else siterall Text lt hl gt Publishers lt h1 gt Dim arStr As String Dim Str As String Dim strRet As String arStr IndexSearchl GetXPathValues root publisher For Each Str In arStr strRet lt a href webform aspx publisher amp Server UrlEncode Str amp gt amp Str amp lt a gt lt br gt Next Literall Text strRet End If 5 Save your Web form 6 Build your Web form 7 Browse to the Web form in your browser Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 110 8 The list of publishers appears Address http flocalhost CMS400Example webform aspx v EJ co Links EktronNet Welcome 4 Ektron Inc CMS400 Example 5i Publishers Microsoft Press Peachpit Press 9 Click on a publisher Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 111 10 A list of books with teasers by that publisher appears Address http localhost CMS400Example webform aspx publisher Prentice Hall v EJ co Links 4 EktronNet Welcome Ektron Inc 4 CMS4
116. Files Window on page 12 e Creating a Subfolder and Files on page 17 e Creating the Template on page 17 e Applying the Template on page 23 e Testing and Viewing the Site on page 23 By completing the examples in these sections you create a site with a template hyperlinks and multiple pages When you are completed your site should look similar to the picture below You might choose different colors and text but the layout should be the same TEN AR I W E UE enna o JP EA y Address El http localhost MyFirstSite Index aspx E Links EktronNet Welcome Ektron Inc CMS400 Example Welcome to RC International My Home Page EE Welcome To My Home Page PRODUCTS papoyan Please check out the products and services I have by clicking the links in SERVICES the navigation panel to the left GENIN To contact me click CONTACT in the menu to the left Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 8 Creating a Web Site Defining a Local Site Before creating pages for a site it is necessary to define the site in Dreamweaver This is done by selecting a folder on the computer s hard disk in which all the files for the site will be contained This is the local root folder After the site is defined the pages for the site are created in Dreamweaver saved inside the local root folder and then uploaded to the Web server The local site and the rem
117. 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 123 for details The only differences between the PHP function and the ASP one is the use of the DisplayType parameter and the syntax for Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 419 Custom PHP Functions implementing it The 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 om lt ie Adi Title Calendar Example J Description Location Location Start Time Start End Time End Table Properties Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 420 Custom PHP Functions Attribute Description DisplayType Specify the Calendar display type e Month A 30 day calendar month view gure w u o outh hockey srana Beckotbat gene tbat Ww n n n m n l e Day Single day view e inline Display events that occur from the start date of the calendar through the end date Sunday May 01 2005 Saturday July 30 2005 ssoms Hooy gase we SeeTOO
118. Functions Below is the source code for the ecmNavigation display function Function ecmNavigation cInfo dume NEm sun html lt table border 0 cellspacing 0 cellpadding 0 width 100g gt for each info in CINEO html html amp lt tr gt lt td gt amp nbsp nbsp lt a href html html amp info ContentLinks Em html ee en gt t html html amp Cstr info ContentTitle bem hemi e e a td gt tr lt tr lt td eos 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 See Creating Custom Display Functions on page 334 for more information 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 330 Custom ASP Functions Here is how
119. 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 This 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 unders
120. Installing the Extension on page 204 e Setup on page 208 e Using the Ektron CMS400 NET Extension on page 210 e Inserting Custom Functions on page 216 To use the 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 203 Dreamweaver Extension Support 1 In Windows Explorer navigate to the following location C Program Files Macromedia Dreamweaver MX 2004 Configuration Translators ASP NET_VB 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 MX 2004 Configuration Translators ASP NET_Csharp 7 Open the PreviewM
121. 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 If the user selects a content block and clicks the blue text of any title a new page appears with Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 449 Web Services strHTML Web Service strHTML e information about the block title and any XSLTs used for rendering e ademonstration 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 lt table gt lt tr gt lt td gt lt b gt Content Block Information from GetContentBlock lt b gt lt td gt lt tr gt strdHi ML amp lt tr gt lt td gt lt b gt Content Block Title lt td gt lt td gt gcbCms400ContentXml Item ContentTitle amp ML a
122. International a leading RC racing company has announced tl color cccccc Be a border solid blue availability of its new flagship product the RC Cheetah 1pt margin 2px width 100 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 Startdate The Start Date assigned to the content block when created Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 309 Custom ASP Functions Value Summaries sorted by 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 asc 1 This will order the Summaries in an ascending order desc 0 This will
123. L If everything works the following message appears Macromedia Dreamweaver MX 2004 1 The URL Prefix test was successful If this message does not display an error message displays to help direct you on how to fix the issue For example Dreamweaver MX 2004 Dreamweaver cannot use the prefix you entered to display live data Please double check your site configuration or click on Help for more information on how to correct this problem HTTP Error 404 C Don t show me this message again 12 Click Next 13 Choose if you want to copy your site to a remote server For these example steps choose the No radio button When you are done editing a file do you copy it to another machine This might be the production web server or a staging server that you share with team members Yes want to use a remote server Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 11 Creating a Web Site 14 Click Next 15 A summary appears Your site has the following settings Local info Local root folder will be created Site Name MyFirstSite Local Root Folder c inetpub wwwroot MyFirstS ites Remote info Access I ll set this up later Testing server Access Local Network Remote Folder c inetpub wwwroot MyFirstS ites Your site can be further configured using the Advanced Tab NOTE If you feel comfortable using Dreamweaver to create your Web site you can click the Advanced Tab and
124. LanguageAPI id LanguageAPI2 runat Sserver gt lt cms LanguageAPI gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 262 Standard ASP NET Methods 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 NET to rapidly integrate Ektron CMS components into their templates and sites For more Information on Ektron CMS400 NET controls see Introduction to Ektron CMS400 NET Server Controls on page 24 The following examples shows the Login Server Control added by drag and drop vs adding a Login method by the ASP NET method Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 263 Standard ASP NET Methods Drag and Drop Login Server Control Toolbox 4 X WebForm2 aspx WebForm2 aspx vb Data Web Forms Components HTML Clipboard Ring General ektron A Pointer E Calendar E Collection E ContentBlock FormBlock LanguageSel
125. M 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 CMS400Example collection aspx id 27 lt link gt lt description gt The easiest HTML book weve seen that still manages to be comprehensive and to stay firmly grounded in the reality of todays demanding users and complex 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 tss gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 325 Custom ASP Functions 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 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 f
126. ML menu DHTML Menus on page 426 GenerateMenu Works with DropHTML menu to display DHTML menus DHTML Menus on page 426 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu Function on page 428 Metadata Functions Metadata Displays the metadata for the current Web page Metadata Function on page 423 Search Functions Search Inserts a text box with a search button Search Function on page 408 Search Display Creates an area to display search results Search Display Function on page 409 Language Functions Language Select Lets a site visitor select a language in which to view site Language Select Function on page 428 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 406 Custom PHP Functions Login Function This function 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 46 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 content block and content blockEX functions are used to display a content block on an Ektron CMS400 NET Web page Shown here is the format for the content block function
127. Manual Version 5 0 Revision 8 iv Using the RssAggregator Server Control eceessseeeees 196 BreadCrumb Server Control cccssssssseeeeeeeeeeeneeenneees 198 BreadCrumb Server Control Properties ccsssseeeeees 199 Using the BreadCrumb Server Control csssseeceeeseeeeeees 201 Dreamweaver Extension Suppott sseeee 203 Requirements esc scisecccsncccncaecsncdunectbenadinealoencacsencetecantenecendeetucess 203 Preparing Dreamweaver for Ektron CMS400 NET Functions 203 Installing the Exten Slo scsscsccccsscscecccccccstcasccencuacecetinesaseccesmesatore 204 oo 2 Bee oe ee eee ee eee rere er 208 Using the Ektron CMS400 NET Extension cccesseeeeeees 210 Inserting Custom FUNCTIONS ceseeeeeeeseseeeeeeeeeneeeeeeeeeneneees 216 Standard ASP NET Methods ccccccccceeeceeeceeeeeeeeeeeeeees 263 Replacement of Standard Methods cccccccccssseeeeseneeeees 263 Referencing Methods in Visual Basic cc ceccssseseeeereeees 265 Adding a New Web FOr tm cccccssssecesssseeeeeeeseeeeeeenseeneeeeeneees 265 Requirements for Standard Methods ccccccssssssseseeeeees 266 Standard Methods ee HW Hee SP eee 267 Add COMENIUS aa nse he eee 268 Custom ASP FUNCIONS siscssiiiccsescscasnnctsonrssesmmmnsinceennnoseens 273 Login FUNCTION ccscscsessncesaccnssscexssanecuneasscaussnessenneniecenscasnmansanncs 276 Login Tag Example ne ae nn Pe opr
128. Menu Functions DropHTMLMenu Used to display a DHTML menu DHTML Menus on page 370 GenerateMenu Works with DropHTML menu to display DHTML menus DHTML Menus on page 370 XML Menu Creates XML for a menu by wrapping tags around all of XML Menu on the menu items properties page 375 Metadata Functions Metadata Displays the metadata for the current Web page Metadata Function on page 361 Search Functions Search Inserts a text box with a search button Search Functions on page 288 Search Display Creates an area to display search results Search Display Function on page 299 Site Language Functions ShowSiteLanguage Lets a site visitor select a language in which to view site Show Site Language Function on page 369 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 275 Custom ASP Functions 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 Ektr
129. NET Developer Reference Manual Version 5 0 Revision 8 408 Custom PHP Functions MaxCharacters ButtonImgSrc ButtonText FontFace FontColor FontSize Horizontal Spare gt This function is basically the same as the Search function in ASP See Search Function on page 77 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 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 87 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 409 Custom PHP Functions 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 d
130. Navigation 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 For Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 328 Custom ASP Functions information about creating your own custom display functions see Creating Custom Display Functions on page 334 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 Here is how a collection might appear on a Web page RG international Home Products Support Nevs Careers Search Products Page Products RC Cheetah elcome to RC International product page Whether you are a ill b s ey 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 the RC Sportster The RC Sportster is racing world is designed for the entry level RC enthusiast Cheetah is desi Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 329 Custom ASP
131. ODULE Ids menu id number template request ecm AppPath ecmDHTML_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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 401 Custom ColdFusion Functions 2 If the user clicks textto 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 MenuId menu id number Title lt img src graphic file name gt template request ecm AppPath ecmDHTML_DropNextGenMenu cfm gt For example lt CFMODULE MenulId 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 To customize a menu
132. P GET protocol click the Invoke button Parameter Value Contentld l Invoke SOAP The following is a sample SOAP request and response The placeholders shown need to be replaced with actual values POST cems300sample cms300ws CMS300Content asmx HTTP 1 1 Host 192 166 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 market ing news folder using the List Summary format Else StrHTML wsCms400WebService ListSummary Marketing News 0 1 Title asc DateModified 0 The ListSummary method retrieves the content blocks as an HTML string so the page looks like this Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 446 Web Services 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
133. PostResultAt The Web form name where the results are posted For example Webform2 aspx NOTE webform2 aspx represents the name of the second Web form 3 Adda second Web form to the project 4 Drag and drop a Search Server Control on it WebForm2 aspx m Search All the words C Any of the words Exact Phrase 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 we wv E a uj e y eee oe Address Links EktronNet Welcome Ektron Inc CMS400E All the words O Any of the words Exact Phrase C Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 95 8 Use the search dialog ww we le pe Address http localhost CMS400Example webform aspx Links EktronNet Welcome Ektron Inc cms400 All 43 words Any of the words Exact Phrase CI Match Partial Words 9 The search results are loaded and displayed in the second Web form automatically pec amp il lel Te Pern Kroes OO S amp S MB ld Address 4 http localhost CMS400Exampl webform2 aspx Links EktronNet Welcome 8 Ektron Inc CMS400 Example 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
134. 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 cma400Example wWebServiceDemo folder includes all elements described in The News aspx Sample non XML on page 444 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 glsCms400L
135. Server Control on page 178 FormBlock Displays a content block that is associated FormBlock Server Control on with a form page 81 IndexSearch Perform XML index searches on XML IndexSearch Server Control on content page 97 For information on using XHTML Search see Search Server Control on page 85 LanguageAPI Allows developers to force a language for a LanguageAPI Server Control on Web site page 68 LanguageSelect Lets user select language of site LanguageSelect Server Control on page 65 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 61 Introduction to Ektron CMS400 NET Server Controls Server Control Description More Information Names ListSummary Displays a list of content block summaries ListSummary Server Control on page 114 Login Displays the login or logout button which lets Login Server Control on page 63 the user log in and use Ektron CMS400 NET Menu Calls a defined menu to be used with an Xslt Menu Server Control on page 161 to display the menu MetaData Adds metadata contained in content blocks MetaData Server Control on to a Web page page 186 MetaDataList Creates a list of content blocks based on the MetaDataList Server Control on metadata contained in the content blocks page 189 RssAggregator Aggregates an RSS feed from a RSS Web RssAggregator Server Control on Site page 194 Search Inserts a text box with a se
136. T 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 cms300sample cms300ws CMS300Content asmx HTTP 1 1 Host 192 166 0 219 Content Type text xml charset utf 8 Content Length length So0sPaction urn ektron webservices content cms300 v21 GetContentBlock 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 A sample SOAP request and response e A sample 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 5 0 Revision 8 440 The Search Display Method Parameters Web Services Parameter Where How Implemented by CMS Defined in Application API xxx Search Text n a Search text used in search method Ektror All the words Any of the words Exact Phrase C Match Partial Words Search Type n a Type of search used in search method Options and all the words or any of the words exact phrase exact phrase Note This parameter is hand
137. 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 1 2 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 CMS400Example 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 Ekt Custom ASP Functions Random Content 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 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 r gt ya eE Title RC Sportster RC Cheetah RC Lilly RC Red
138. WebForm Microsoft Internet Explorer provided by Ektron Inc File Edit View Favorites Tools Help Om O HBO Pare kera amp Address E http localhost CMS400Example webform aspx i Links 4 EktronNet Welcome Ektron Inc 4 CMS400 Example 4 Welcome Microsoft ASP NET Pro ing 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 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 the properties in the properties window Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 106 NOTE 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 StartPage WebForm aspx WebForm a
139. 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 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 5 0 Revision 8 123 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
140. a cookie value that is set by selecting a language from the dropdown list Integer Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 66 Property Value Data Type 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 67 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 browsers language and display the site in that language This subsection contains the following topics e LanguageSelect Server Control vs LanguageAPI Server Control on page 68 e LanguageAPI Server Control Properties on page 68 e Code Behind Only Properties on page 69 LanguageSelect Server Control vs LanguageAPI Server Control The LanguageSelect Server Control lets users view your site in the language they choose The Languag
141. a name Keywords content CMS400 content management solution business users developers benefits gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 400 Custom ColdFusion Functions 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 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 Generat eNextGenMenu once on the page to provide an infrastructure for DropNextGenMenu Then place propNextGenMenu 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 CFM
142. alue for XSLT Override XSLT The default XSLT specified in the Edit XML Configuration Default XSLT 1 from the Edit XML configuration screen XSLT 2 from the Edit XML configuration screen XSLT 3 from the Edit XML configuration screen Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 78 To use this display XSLT Enter this Enter this value for value for XSLT Override 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 XML OverrideXSLT configuration is ignored screen For example sample xslt See Also The Managing XML chapter of the Ektron CMS400 NET Administrator manual Using the ContentBlock Server Control Programmatically Example The following code will display a content block Before adding these lines of code you need to drag and drop a literal box on your Dim MyContentBlock As New ContentBlock MyContentBlock DefaultContentID 8 Literall Text MyContentBlock EkItem Html To display a content block with the content block title do the NOTE Web form MyContentBlock Fill 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 Fill Ektron CMS400 NET Developer Reference Manual Ve
143. alue of select Title gt lt xsl when gt lt xsl otherwise gt lt A gt lt xsl attribute name href gt lt xsl value of select concat Link gt lt xsl attribute gt lt xsl value of select Title gt lt A gt lt xsl otherwise gt lt xsl choose gt lt UL gt lt xsl apply templates select Item gt lt UL gt lt xsl template gt lt identity template gt lt xsl template match node gt lt xsl copy gt lt xsl apply templates select node gt lt xsl copy gt lt xsl template gt lt xsl stylesheet gt 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 167 gt MenuExample CMS Developer Book 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 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 ona Web Page
144. amples 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 93 Value Web Page View 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 Specify Search Control To Display Search Results on a Separate Page The following example shows a search dialog box on a Web form and the results displayed on separate Web form This is done when you have the search dialog box in a navigation pane and the results displayed on a separate Web form 1 Drag and drop a Search Server Control on a Web form WebForm aspx a Search All the words C Any of the words Exact Phrase M Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 94 2 Set the following Ektron properties for the Search Server Control DefaultResultsDisplay False DisplayXslt None Databind Only
145. amweaver Extension Support 7 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 MX 2004 8 Click OK to continue 9 The Macromedia Extension Manager is again displayed but with the added extension Macromedia Extension Manager File Help amp ii Dreamweaver MX 2004 iy nepi Installed Extensions EKTRON CMS400 5 0 1 Ektron Inc Insert and update Ektron CMS400 controls into an ASP NET Web page using Dreamweaver or Dreamweaver Mx 2004 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 their 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 10 If needed exit Dreamweaver
146. anguageSelect 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 page 369 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 5 0 Revision 8 403 Custom PHP Functions Custom PHP Functions 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 CMS400Example 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 CMS400Example 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
147. arates 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 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 362 Custom ASP Functions 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 blocks metadata in a Web page the ecmMetadata call looks like this lt html g
148. arch button in the Search Server Control on page 85 template The site visitor enters criteria and launches a search of the XHTML content on P For information on using XML your Web site Indexing search see IndexSearch Server Control on page 97 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 62 Login Server Control The Login 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 This subsection contains the following topics e Placing a Login Button on page 63 e Login Server Control Properties o
149. archBoxAlways 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 243 Dreamweaver Extension Support 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 match 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 Di
150. ary FUNCUOM ssssiscsccisccsscssecsccssccecescessceecasecescace 412 RSS List Summary Function sccccccicreccciccesteticccceseatectedesenececcere 413 Collection FUNCUON ccssicsccscsscscesciessceciestezecassietedtstexasistasiexicieeass 413 XML Collection FUNCtION ccccscesessssessessseueecesseueneeseensnens 417 RSS Collection FUNCtion cccccccsssssseseesceecesssseneeeeeeneneenes 418 Random Content Function cccccccssssseceeeeessssseeneeeeeesensenees 418 Random Summary Function sseecccsssseeeeesseneeeeesseeneeeeeees 419 Event Calendar Function cccccccsssssseceeeeeseeseeeseeseeeenennenees 419 Form UMC un iiicocsicscavaccivnc Svscteiss Atsoesssdnca ewes teas eed eee 422 MuliPurpose FUNGUO Mccain 423 MEtaC alal FUnetiO fioiienosa a aaan 423 DHTML MENUS iiisccestescascasscccesceadetedcatccasteteetegaitetastivastasdeastastetaze 426 XML Menu Function cccsseeseesessesecssseeeenssseueneeeseueneseesnenaes 428 Language Select Function cccsssseeeeessssseeeeeesseeeeeeeees 428 Custom cal Ree ie Nee eea EE 430 Web SerViCeS nnciccncsccsccaiccsescasesccccnctensnsececccssnsennsccsccccasneenns 431 Introduction to Web Services cc csssssseeeeseessesneeeeeeeeeeeeasens 431 WS Components and CMS400 NET Architecture 432 Software and Hardware Requirement cccssseeeeeeeeeeee 432 Installation OF Files xcsssscecsiccestececcecacacedsacacceccasgecacaetistasactesateata
151. as New Collection MyColl DefaultCollectionID 1 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 Collection Dim ekitem As New Ektron Cms Common ContentBase myColl DefaultCollectionID 2 myColl Fill Labell Text lt ul gt For Each ekitem In myColl EkItems Labell Text amp lt li gt lt a href amp ekitem QuickLink amp gt amp ekitem Title amp lt a gt Next Labell Text amp lt ul gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 37 Introduction to Ektron CMS400 NET Server Controls 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 e labell text lt ul gt displays the opening tag for the bulleted list e 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 1i gt for each content block in the collection displays its quicklink and title Next loops through all content blocks in the collection e labell Text amp lt ul gt Closes the bulleted list Server Control Properties in Code Behind Every serve
152. ation 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 localhost CMS400Example collection aspx id 26 lt link gt lt description gt An Application Driven Tutorial Approachp 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 localhost CMS400Example 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 CMS400Example collection aspx id 27 lt link gt lt description gt The easiest HTML book weve seen that still manages to be comprehensive and to stay firmly grounded in the reality of todays demanding users and complex 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 Refe
153. ayed on the standard submit button or the alt text of a search button image EmptyResultMsg The return message displayed if the search returns no hits The default is Search returned zero results MaxCharacters Specify the maximum amount of characters that is accepted in the TextBoxSize text box 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 234 Dreamweaver Extension Support 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 4 When completed click insert A graphic defines where the search appears on your template Search aspx o Code spit a Design 7 Te webroms Jo 4t C B lt HEAD gt lt body gt lt form id Form1 method post runat server gt lt cms Search id Search1 DisplayXslt ecmTeaser Recursive False FolderPath runat server gt lt cms Search gt OTT TPTettcr Te TC Cocccc ooo es RRRAS SASS SESS SANE ERE NNN EERE RS BASS SSS Sees assssssss sssssssss ASSN SSSR eee eA ANS SAAN NSA A SANS Shown below is an example o
154. b 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 ContentType One of the following To learn about archived content Shes see the Ektron CMS400 NET yP User Manual Scheduling e archived content Content to Begin and End gt Setting Archive Options e archived forms e content e forms DateCreated The 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 43 Introduction to Ektron CMS400 NET Server Controls Property Description For more information see 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 dat
155. cationAPI asp file must be set to location of the WSDL file The default WSDLpath is http localhost CMS400Example 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 Calendar Functions Function Description More Information Calendar Displays a calendar with different display types Calendar Function For example a daily view calendar on page 353 Event Calendar Displays a month view event calendar Event Calendar Function on page 350 Collection Functions Collection Displays links generated by collections Collection Function on page 328 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 273 Custom ASP Functions Function Description More Information 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 343 Random Content Randomly displays the content of a collection item Random Content on page 348 Random Summary Randomly displays the summary of a collection ite
156. cceeeeseeceeeeeeeseeneeeees 47 Customizing Sener COMMOIS serren 48 Recognizing the Server Control Within the HTML 49 Recognizing the Server Control Within the Code Behind 49 Customizing the Server Control in the Code Behind 50 Troubleshooting Error Creating Control Messag 0 50 Using Drag amp Drop and Programmatically Together 51 Data Binding with Server Controls ccccssecccesseeeeeeeeeeeeeneees 53 Steps to Data Binding Using Drag and Drop Server Controls 54 Customizing the DataGrid Table View c csccceeeessteeeeeeeeenaeees 57 Caching with Server Controls sccccssssssssesseeseeeeeeeeensnenees 59 List Of Server COMICS sissisiissecdstessitccsstveascatseciatncaasassiaccsiaaseaees 61 LOGIN Server Gontro l ssiri aaan 63 PUR UNG Sh Login BUNG ineeiieo niria 63 Login Server Control Properties nsnsssnnsnnnnnnnrrnnnnnnnnnnnnnnnnnn 64 LanguageSelect Server Control nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 65 LanguageSelect Server Control vs LanguageAPI Server Con e E E E S E E A 65 LanguageSelect Server Control Properties sssseeeeeeee 66 LanguageAPI Server Control cccccsssssseeeeeeeeeeeeeeeeeseeeeeees 68 LanguageSelect Server Control vs LanguageAPI Server Con POl cisini siaaa acetone 68 LanguageAPI Server Control Properties sssssssseeeeeeeeees 68 Code Behind Only Properties
157. ch Page this 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 NET 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 NET Solution Explorer toolbar Solution Explorer CMS400Sample Form aspx m EE hraspx show Al Files FE index asox Within the vb file you can use Visual Basic to insert code to manipulate the events that occur on the page This subsection contains the following topics e Recognizing the Server Control Within the HTML on page 49 e Recognizing the Server Control Within the Code Behind on page 49 e Customizing the Server Control in the Code Behind on page 50 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 48 Introduction to
158. chWithFormTag Both functions have the same parameters and perform the same search The only difference is ecemSearchWithFormTag automatically inserts form tags ecmSearch 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 need to be added manually Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 288 Custom ASP Functions Shown here is the format for the ecmSearch and ecmSearchWithFormTag lt ecmSearch or ecmSearchWithFormTag Starting Folder Recursive Target Page Text Box Size Maximum Characters Button Image Source Button Text Font Face Font Color Font Size Horizontal Spare h The following table provides information about all the attributes for the search tag Attribute Description Required For more information see Starting Folder The folder you wish to search Yes Starting Folder on page 292 Recursive Whether to search subfolders Yes Recursive on 0 N0 1 Yes page 292 Target Page The Web page to output the Yes Target Page on search results page 293 Text Box The size of the text box for user Yes Text Box on input page 293 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 289 Custom ASP Functions A
159. cks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list MaxResults The Maximum number of Integer content blocks returned O unlimited Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 101 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 Property on want a predefined list of page 103 books t
160. cs 433 Setup InStUCHONS ecto sade endeared 433 Providing Web Service Information in Your CMG 435 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 vii Creating a Page that Provides a Web Service s 100 452 Syndicating Web Content aS RSS cceceseseeeeseeeeeeeeeees 454 What is RSS Syndication scccc c2ccscscctcec cece ccc 454 RSS Syndication in Ektron CMS400 NET cccessessseeeenees 455 SYNCICATING via NET wssiicisnscisscssstioscinntissinaaicardnscdenidentaentienten 456 Architecture of RSS Syndication cccccseseeeeeeeeteeeneeeees 456 Creating Your Own aspx Collection Page ccessseeees 456 Creating Your Own aspx List Summary Page sssssee 457 Learning About Visual Studio NET 0000 459 Grid Layout vs Flow La YOUN cicceicccosscssesscostanscnscccsanscnsiasennecsees 459 Additional Information ccccceeceeesssssseeseeseeeeeeseeenees 461 Supporting DOCUMENIG s sisien eens 461 NMEA hc cc cee cee a 461 SS asic E E E E E 461 Ta 917 1 2 9 sissies eiennenn atarien 461 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 viii Detailed Table of Contents What s New in the 5 0 Release ccccccceseeeseeseceneeeneeeees i POUT THIS Mantal scccec cs sscces secsctctccseccecececcncsccetetsediehastesesiew 1 Creating a WED SiG siissciccssicceassscsxensrnceecsitimmnnaateennness 2 Creating a Web
161. cscec 387 Collection FUNCTION ccc ccccccssesesecsseeeceeseseeeeeeeeeusoeseeeeenessenees 388 XML Collection FUNCtION c csccccsssssseseeeeeseseesenseseeeeeseees 393 RSS Collection FUNCtiOn cccccccccsssssseeeeeescessenseeeeeeseeeenens 394 Event Calendar Function ccccccsssssssseeeeeceseessseeeeeeseeneeness 394 Fotm PUM tn taicetssceistizscts cecnacscriavericseeiesscissteiaziesseicnitianinniests 397 MUNIPUPPOSE FUNCHON ciciccccissseneciccnadasasassnsieawacncesessnesncneceanae 398 Metadata FUNGO sssisccccsicctsssaiiceasisccuccaaaiciecivancisieeaceuasasnceteacave 398 POW Ae IIS AUS cocira 401 XML Menu Function cccsscesccsesceeecssseesenssseueneeeseuenesseseeness 402 Language Select FURCHON siisciccsnsacscsavescanseectsqueemanernenniiaiene 403 Custom PHP FUNCHIONS siccscissssiisssiccsssncssassianmannasicnssaanns 404 DIR PUNCUO iat sass da cs aces ceceececentecerteseseeeiineteanessanadenmciees 407 Content Block FUNCTION c cc sseseseeeececcssesseeeeeseseenenseneeeeeees 407 Search Function cccsssesscssesesessscesecssseuseneeseuennenseuenessensenans 408 Search Display Punctlom sca ssccicecctccnce cscs ccececcet ctecectec tices 409 List Summary FUNCTION sacecsicsccacecsserncacccaceoncacccereconseenccenocckeccse 410 Archive List Summary Function csccccceeeeseeeeeeeeeeeeeeneeeees 411 Single Summary FUNCHON asi ccccsccsecccicsccsrncmicssemccmncenatsonsnacsuces 411 AML List Summ
162. cseccessssssseesseneeees 263 Referencing Methods in Visual Basic cccecsssseeeeeenenees 265 Adding a New Web Porn sic siiccccciccicdecscsesscccceceseresntecretectencteenss 265 Requirements for Standard Methods ccccccsssssseeeseeeeees 266 Standard Meu Sse cise cssssicccsccsscccccsscronccedzcatbecvedacctbecsscacwtienccees 267 Add ComM nt sists ecisecs cece cttetescanctncteccnncenctenbancccecccondtacsntncermens 268 Add Content EXAM ees oss ccezisies issccseroee apcnsuce ders pemedlinepincnuebesn estas 270 Custom ASP FUNCOMS ccceeceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeees 273 Logi FRUINCOUN ssie 276 Login Tag EXaMple sicccsicecsscsccisacsncccesncustccsssncustenestensecnssceascecensas 277 Placing Your Login BUOtton isisisi siirsin 277 Gontent Block FURCUON wisisscscsincstssnasatniacivicaieannniaascnstssinieanci 278 Content Block Examples siiscssicscccacciscssesccctsecseccisencccssccemssaccce 281 State Content BlOCK soenoe eE 282 Dynamic Content BIOCK aiiin a 283 AME GOment BOCK azscccszetesedeccesactetecaaaseshstcenta elbeticete eitetecedtrettacs 284 The Function s ArgumMeniS spienctassssnenanetnssassstaccteaassntindceassonecte 285 D namic and Static Combinati ON a aE 287 Sear h FUNCTIONS isescisscscssnssssnsissssrnesuscsansnssasnecaneaanesecacensoanis 288 Search Tag Example eae ee ee 291 Search Tag Attributes 22 2 20c ccseseccnssseececenssesceneesseenccncesancees 292 Starting Folder asrnane a N beta eeag at
163. ct Here is an example dim MyCB as New ContentBlock labell text MyCB EkItem dateCreated or dim MyCB as new Ektron Cms Controls ContentBlock labell text MyCB EkItem dateCreated IMPORTANT To access additional properties for the Collection ListSummary and Search objects use ekitems not ekitem For example 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 47 With C use this syntax Ektron Cms Controls ContentBlock MyCB new Ektron Cms Controls ContentBlock labell text MyCB EkItem dateCreated You can use intellisense to select from a list of additional object properties as shown below Private Sub Page Load ByVal sende Put user code to initialize Dim mycb As New Ektron Cms Cc mycb EkIten SuD Comment a ContentStatus Class ContentType DateCreated DateModified DefaultXslt DisplayDateCreated DisplayDateModified DisplayEndDate DisplayGoLiveDate a The additional properties are listed below Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 42 Introduction to Ektron CMS400 NET Server Controls 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 myc
164. cursive ShowSummary StyleInfo OrderBy ShowInfo This function is basically the same as the List Summary function in ASP See List Summary Function on page 93 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 384 Custom ColdFusion Functions 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 Marketing News MaxNumber 0 Recursive 0 ShowSummary 1 StyleInfo OrderBy Title asc ShowInfo 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 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 312 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 385
165. cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Content functions click Form The Insert Form box is displayed Displays and manages a content block Dynamic Form Parameter Add Validation default true Include Form Tags default false Positioning info Hide Visible GridLayout Style Wrap tag 3 Use the following table to assist you with inserting a form Field Description Control ID A unique name for the function you are inserting 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 Form Parameter To make this form block dynamic select ekfrm When you do this control uses the form block passed as a URL parameter 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 84 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 239 Dreamweaver Extension Support Field Description Hide Used to hide a form in des
166. d For example if you select a German content block whose ID 2 Ektron CMS400 NET only stores content block 1D 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 NET 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 33 Introduction to Ektron CMS400 NET Server Controls page 29 you can insert one programmatically You might prefer to insert server controls programmatically for several 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 Note that you can drag and drop controls on your page then customize the
167. d 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 178 Add or Edit whole menu Add or Edit submenu This subsection contains the following topics e Menu Server Control vs DhtmIMenu Server Control on page 179 e DhtmlMenu Server Control Properties on page 179 e Using a Style Sheet on page 183 Menu Server Control vs DhtmilMenu Server Control See Menu Server Control vs DhtmlMenu Server Control on page 161 DhtmIMenu Server Control Properties The DhtmlMenu 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 Net help Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 179 Property Value Data Type Align Specifies the horizontal al
168. d by an object use the common class ext ron cms Common ContentBase Ekltems is an array of Ektron Cms Common ContentBase Ekltem 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 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 If a control requires a reference to its 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 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 me MySearch Fill With C use this syntax Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 47 Introduction to Ektron CMS400 NET Server Controls Ektron Cms Controls Search MySearch new Ektron Cms Controls Search MySear
169. d date and time for content block using date time format specified in Setup asp info GoLive Start date and time for content block e Plastic Molder 123 This content went live on 10 30 2002 10 e Servo Control Engineer 124 This content went live on 10 29 2002 6 5 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 338 Custom ASP Functions Name Description Web Page View info DisplayGoLive Displays start date and time for the content block using the date time format specified in Setup asp e Plastic Molder 123 This content went live on 30 Oct 2002 1C e Servo Control Engineer 124 This content went live on 29 Oct 2002 O info EditorFname First name of user who last edited z content block Plastic Molder 123 Application e Servo Control Engineer 124 Application info EditorLname Last name of user Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 who last edited content block e Plastic Molder 123 Administrator e Servo Control Engineer 124 Administrator Defining Display Functions After you create a display function in the API define it in the ecmCollection function as a new case To do so follow these steps Locate the ecmCollection function in the API file Find the line that contains select Case displayFunction Under that line insert the following
170. d the project 7 Browse to your web form The list of book subject titles appears Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 108 File Edit View Favorites Tools Help O O DAG Au Address 4 http ocalhost CMS400Example webform aspx Links EktronNet Welcome 4 Ektron Inc 4 CMS400 C CMS Computer Programming Web development 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 Add an IndexSearch Server Control to a Web form 2 Set the following properties e DisplayXslt ecmTeaser e Hide True e HitsMarker blank e ShowSearchBoxAlways False e Weighted True e XmlConfigld 4 3 Add two Literals 4 Add the following code to the Page Load Event in code behind Dim bRet As Boolean If Request QueryString publisher lt gt Then Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 109 H ndexSearchl Hide False ndexSearchl Parm XPath root publisher IndexSearchl Parm DataType Ektron Cms Common EkSearch XMLDataType String IndexSearchl Parm SearchType Ektron Cms Common
171. display the search 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 122 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 123 Path to Custom Xsit 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 Folderld The numeric id of the folder Integer Any folder s numeric ID that you want to search See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 The Recursive property determines whether the IndexSearch Server Control will use this folder s child folders in the search 0 zero represents the root folder Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 99 Property Description Data Values Type Hide Used to hide output of the Boolean True Hide results index search in design time False show results and run time For example you want to pass the results to code behind for further manipulation HitsMarker This symbol shows how many String search criteria each hit matched The following example shows the first hit m
172. 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 formatted 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 164 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 251 Dreamweaver Extension Support 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 Hide Used to hide a menu in design time and run time Checked Hide function 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 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 specify a server control s tag The default is
173. dows Forms System Windows Forms 1 0 5000 0 DButtonarray Microsoft visualBasic Comp Microsoft visualBasic Compatibility 7 0 Calendar ServerControlLibrary ServerControlLibrary 1 0 1787 20128 J i i a s A wew tA om o a nA sa iy fe on mnnm m eta Browse Language Invariant Language Invariant Country __ Browse be Version 7 0 5000 0 Cancel Reset Help 9 Select the NET Framework Components tab 10 Browse to the directory that stores Ektron CMS400 NET s dll files Localhost CMS400Example bin Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 28 Introduction to Ektron CMS400 NET Server Controls 11 Add the Ektron Cms Controls dll file and press OK This file provides access to Ektron CMS400 NET s server controls Removing the Server Controls Display the Visual Studio NET toolbox View gt Toolbox Right click the mouse within the Toolbox Click Add Remove Items Click Namespace or Assembly Name to sort the Server Controls by manufacturer Poo IN oS 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 2
174. e This does mean that you need to use a different copy of this file each with their own menulId for each menu that you will display Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 169 lt xsl variable name menulId gt Menul lt xsl variable gt lt xsl template match gt lt xsl apply templates select MenuDataResult Item gt lt xsl template gt lt xsl template match Item parent MenuDataResult gt lt xsl apply templates select Item Menu gt lt xsl template gt lt xsl template match Item child Menu gt lt xsl apply templates select Menu gt lt xsl template gt lt xsl template match Menu gt lt xsl choose gt lt xsl whentest Link gt lt span gt lt xsl attribute name class gt handcur lt xsl attribute gt lt xsl attribute name onclick gt showBranch lt xsl value of select SmenulId gt _ lt xsl value of select ID gt lt xsl attribute gt lt img gt lt xsl attribute name srce gt lt xsl value of select Ssitepath gt workarea images application ico_menu closed gif lt xsl attribute gt lt xsl attribute name id gt I lt xsl value of select SmenulId gt _ lt xsl ivalue of select ID gt lt xsl attribute gt lt img gt lt xsl choose gt lt xsl whentest ImageOverride True gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name srce gt lt xsl value of s
175. e lt StartDate gt 1 1 0001 12 00 00 AM lt StartDate gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 344 Custom ASP Functions XML Tags Description 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 lt LastEditorLname gt lt LastEditorLname gt The first name of the last person who edited the content block For example lt LastEditorFname gt John lt LastEditorFname 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 CMS400Example collection aspx id 27 gt HTML for the World Wide Web with XHTML and CSS lt a 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 conte
176. e r 0 Altra gt lt t 54 lt td gt lt img El lt i CMS Function screen Ektron CMS400 Setup http focalhost cms400example workarea dreamweaver aspx lt Register TagPrefix cms Namespace Ektron Cms Controls Assemt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 The Ektron CMS400 NET Setup dialog box is displayed on the Dreamweaver Extension Support 2 Use the following table to help you update your setup information 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 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 3 Click Update Setup 4 A message appears Macromedia Dreamweaver MX 2004 Successful connection to the dreamweaver server file http loca
177. e 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 Manual Scheduling Content to Ektron CMS400 s display of the date Begin and End gt Setting a Start Date EndDate The content block s end date formatted Ektron CMS400 NET 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 FolderID 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
178. e Location text box http localhost MyFirstWebApp Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 4 Creating a Web Site This allows for exact placement of your project files in a specific directory on a Web server New Project Visual C Projects Visual J Projects Visual C Projects GQ Setup and Deployment Projects Smart Device ESN amos ASP NET Web Application Application Service MyFirstWebApp http flocalhost MyFirstWebApp v Project will be created at http localhost MyFirstWebApp Lo ce o e NOTE If the local computer you are working on is also a Web server you can create your Web project on that computer The first time you start Visual Studio the default location of a Web project is your local computer In subsequent Visual Studio sessions you can select the location of a previously used Web server from a drop down list If you want to choose a different server you can click the Browse button to find other servers on your network or you can type in the URL to a server for example http domain com and press ENTER Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 5 Creating a Web Site 5 Click OK to create the Web project Visual Studio connects to the server and adds the appropriate project items to Solution Explorer in the project node 1b x Solution Explorer MyFirstWebApp it Sl BB Ge a sree gp Solution MyFi
179. e border gt 0 lt xsl attribute gt lt xsl attribute name src gt lt xsl value of select ItemImage gt lt xsl attribute gt lt img gt lt xsl when gt lt xsl otherwise gt lt xsl iftest not ItemImage gt lt img gt lt xsl iattribute name border gt 0 lt xsl attribute gt lt xsl attribute name srce gt lt xsl value of select ItemImage gt lt xsliattribute gt lt img gt lt xsl text gt lt xsl text gt lt xsl if gt lt xsl value of select ItemTitle gt lt xsl otherwise gt lt xsl choose gt lt span gt lt br gt lt xsl apply templates select Item Menu gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 173 lt xsl when gt lt xsl otherwise gt lt span gt lt xsl attribute name class gt handcur lt xsl attribute gt lt xsl choose gt lt xsl whentest ItemType ExternalLink gt lt xsl choose gt lt xsl whentest ItemImageOverride True gt lt A gt lt xsl attribute name href gt lt xsl value of select ItemLink gt lt xsliattribute gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name src gt lt xsl value of select ItemImage gt lt xsl iattribute gt lt img gt lt A gt lt xsl when gt lt xsl otherwise gt lt xsl iftest not ItemImage gt lt A gt lt xsl attribute name href gt lt xsl value of select ItemLink gt lt
180. e language they choose The LanguageAPI Server Control on the other hand forces users to view a site in a particular language For Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 65 information on LanguageAPI see LanguageAP Server Control on page 68 LanguageSelect Server Control Properties The following table explains the properties of the LanguageSelect 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 Net help Property Authenticated Value can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 Data Type Indicates if you are logged in to the CMS Explorer and 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 LabelName Lets you define the label next to the language select dropdown box The default label is Language String Language Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by
181. e 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 384 for details 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 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 102 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 387 Custom ColdFusion Functions 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
182. e 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 184 Style Class Description Attribute Default Value roothighText Text of the root e color e 000000 Black menu as displayed Note This class on a Web page e font e 16px Arial sans serif only works when e text align e center called by the 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 For more information on style sheets visit http www w3 org Style CSS Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 185 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 conten
183. e Language API box appears 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 Hide Used to hide a Language API in design time and run time Checked Hide Language API 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 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 5 0 Revision 8 261 Dreamweaver Extension Support Field Description Wrap Tag Allows a developer to specify a server control s tag The default is Span document as a span element code Span The lt span gt tag is used to designate an in line portion of an HTML Div The lt div gt tag is used when you want to apply attributes to a block of 5 When completed click insert A graphic defines where the Language API appears on your template Shown below is an example of the code that is inserted Platform Code View NET lt oms
184. e Manual Version 5 0 Revision 8 140 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 5 0 Revision 8 141 Style Class Description Attributes and Default Settings mv_NonMonthBorder The cells at the beginning or end of the month that do not c
185. e 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 1 2 3 4 5s 16 3 8 9 10 11 12 13 14 15 16 17 18 19 20 24 22 23 24 25 26 27 28 soniad onarchs take on a 3 Portland 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 5 0 Revision 8 151 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 Location VWA 2 3 4 516 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_weekdayCell The week day cell The following example shows the
186. e following table to assist you with inserting a DHTML 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 path you can navigate to it using the Select Menu drop down box Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 254 Dreamweaver Extension Support Field Description 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 the left Center Aligns text to the center Right Aligns text to the right Justify Aligns text justified to both margins 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 it s classes without defining it in the Stylesheet property For example 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 5 0 Revision 8 255 Dreamweaver Extension Support Field Descripti
187. e id of the site For example the demo site is 1033 for English GetLanguage 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 69 Property Value Data Type 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 Mul
188. eAPI 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 65 LanguageAPI Server Control Properties NOTE The LanguageAPI 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 Net help Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 68 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 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 languag
189. eb 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 448 Web Services 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 RC 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 The lower portion of the page also displays the content block in a ListSummary format as described in Getting Content Blocks on page 445 Latest News RC International Announces the RC Cheetah 8 27 2002 2 43 01 PM RC
190. ect ListSummary RE Menu 4 Search Adding a Login function via an ASP NET method lt tr gt lt td gt lt S AppUI ecmLogin gt 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 NOTE You can still use the standard ASP NET methods in Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 264 Standard ASP NET Methods 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 Open Visual Basic Choose or add a project 3 In Solution Explorer right click References and choose Add Reference Solution Explorer CMS400Sample 2 lo Solution CMS400Sample 1 project GA CMs400Sample 209 Ektron Add Reference Ektron Add Web Reference 2 Ektrontomsrcorerors In the Add Reference dialog box click Browse Go to Inet pub wwwroot CMS400Example Bin 6 To load the standard methods click extron cms UI CommonUI dll To load the XML Indexing methods click zxtron 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 NET 2 Right click the project 3 Click Add gt Add Web Form
191. ed 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 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 conference in Atlanta Georgia Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 308 Custom ASP Functions 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 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 font family arial font weight bold IRC International Announces the RC Cheetah background A A RC
192. edrcntadagasipencmiasasiaseenis 310 S A S E A E E E ET 311 Wie RIUM in A E oii XML List Summary Function ccseeeeeeeeeeeeeeeeeeeeeeeeeeeeees 312 Archive List Summary Function cccccssssseeeeeeeeeeeeeeeees 317 Single Summary FUNCTION c cccseeeeeeeeeeeeeeeeeeeeeeeeeeeeeneees 318 Single Summary Example wsscsncccicssesnciccssccsecicteccesecrmcndeceatearncese 319 Single Summary Attributes ccccccssseeeeeeesseeeeeeseeeeeeeseeees 319 Content ID zrna E EE 319 SNOW SUMMA assiriana aA EEEa E ESE 320 SVEMO sionn en ree ener rere tererecrerers 320 SNOW IMO a a a 321 Spare Dooa a E EE 321 RSS Summary FUNCUION sissiisiisssteccinssinctinccdessieadiesiinatinsdieains 322 RSS Summary EX Atle asic csccccsiccstccncastecietncencectasecactencnssccmmces 323 RSS Summary AMiDUtes seciciccscsncssccccnccesecesscucasssasaccetstactercecuse 326 SAMA FOJO ecaro roe Ea 326 BETE E E A E E T 326 Order Byaasen n E acuacsiens carteceantactceatess 326 Ascending Descending sasien paa 327 Mase INUMBGN A AE A A A T 327 G llection FUNGUO issis 328 Collection Examples sects occas veces 328 The ecmNavigation Display Function cccceeesseceeeeeeeeeeeeees 329 The ecmTeaser Display Function cccccsseececeeeesseeceeeeeeeeeeeee 330 Gollectlon Attrib Utes nica ciccatccsesacticcnccctnccecncccanscetercnauscedarencneenie 333 a a E E E T E 333 Eae ae e AE a E E T E cn eaetieets 333 Creating Custom Display Functio
193. eeeeneeneees 93 Specify Search Control To Display Search Results on a Sepa rate Pa Ge sassarcssa cece cascacesascasaeneasatia cases seceeaetacinccenncemeen asceecenicnaiue 94 IndexSearch Server Control ssssessseeeeeeeeseeeeeeneeeeeeeees 97 IndexSearch Server Control vs Search Server Control 98 IndexSearch Server Control Properties ccssseccsesseeeeees 98 SearchParmMAML Properly 103 Using the IndexSearch Server Control Programmatically Ex a T E E 106 Programmatically Predefined General Search Results Re placed By Specific Search Results ccsssseeceeeseeeeeeees 109 Turn Off Caching In Netscape Navigator and Mozilla Firefox 113 ListSummary Server Control ccccccsssssseeeeeeeeeeeeeeeeeeeneees 114 ListSummary Server Control Properties cccceseseeeeeees 115 OrderKey PROPO MY sake cectacessescuceccccctensaceysrenssdacpehesnecteststennieedanesecees 118 List Summary Example isisisi niai 119 Collection Server Control c ccccssseeeeeeeeeeeseeeeeeenesssseeeeeees 120 Collection Server Control Properties cccssseeeesseeeeeees 121 Example of ecmNavigation Display cccesseccceeeeeseeceeeeeeeees 122 ecmNavigation XSL COCC ccececceeeeeeeeeeeeeeeeeneeeessaeeesenes 123 Example of ecmTeaser Display c cceeeeeseeeeeeeeeeseeneeeeees 123 gcm leaser NS CONG scce piwteteaiateteecsdad ities 124 Using the Collection Server Control Prog
194. ees 366 Show Site Language Function cccccssssseeeeeeeeeeeeneees 369 DPA TIL RRS aes esesiscrtsccasaresrtetesandaeecnaertednceatiautaauatancuanied 370 Additional Documentation in Ektron Knowledge Base 370 Displaying a Menu on a Web Page cccssssseeessssteeeeeseeeeees 370 Customizing the Menu s Appearance cccsseseeeteseeeeeees 371 ek NTNU G acca cis aces nentea ene seaiiacdtncaaeuandnnanacncnasncmustandenecseucenss 372 XML MEMU icecicinncassnanseuatuninesinessvasisacisesdcantdunsnunatassenssecvensseeenie 375 Custom ColdFusion Functions ccccceeceeeeeeeeeeeeeeeeeees 377 Login FUNCOM a seee 379 Gontent Block Functio rai ieina iaaa 380 Random Content FUnCtion cssseeccsssseeceeesseeeeeeesseeeneeeees 381 Random Summary Function c seeccsssseeeeeesssneeeeesseeeeneeeees 382 Seatch FUNCHOM sssisesssreisti fact ste aca ed adder ecesemetece 382 Search Display Function ccsssecccssssseeeeessseeeeeesseeeeeeesseees 383 List Summary PUNCUON ssiscccccssscccecccccasstccccccacstdenettecetccctecntaess 384 XML List Summary FuNCtiON cccceceseeeeeeeeeeeeeeeneeeeeeeeeeeeeees 385 RSS List Summary Function csiccicccscscccccccnstecscccnsctercecesectencstace 386 Archive List Summary Function cccccceeeseeeeneeeeeeeeeneeeee 387 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 vi Single Summary FUNCOM sisssecicccsscscssccecscccrccecesetoccrceccosn
195. elect Image gt lt xsl iattribute gt lt img gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 170 lt xsl when gt lt xsl otherwise gt lt xsl iftest not Image gt lt img gt lt xsl iattribute name border gt 0 lt xsl attribute gt lt xsl attribute name src gt lt xsl value of select Image gt lt xsl iattribute gt lt img gt lt xsl text gt lt xsl text gt lt xsl if gt lt xsl value of select Title gt lt xsl otherwise gt lt xsl choose gt lt span gt lt br gt lt xsl when gt lt xsl when test not Link gt lt xsl when gt lt xsl otherwise gt lt span gt lt xsl iattribute name class gt handcur lt xsl attribute gt lt xsl attribute name onclick gt showBranch lt xsl value of select SmenulId gt _ lt xsl value of select ID gt lt xsl attribute gt lt img gt lt xsl attribute name sre gt lt xsl value of select Ssitepath gt Workarea images application ico_menu closed gif lt xsl attribute gt lt xsl attribute name id gt I lt xsl value of select SmenulId gt _ lt xsl ivalue of select ID gt lt xsl attribute gt lt img gt lt xsl choose gt lt xsl whentest ImageOverride True gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 171 lt A gt lt xsl attribute name href gt lt xsl value of select concat Link gt lt xsl attribute gt
196. ence Manual Version 5 0 Revision 8 305 Custom ASP Functions Attribute Description Options MaxNumber Maximum number of summaries returned 0 Unlimited ObjType Determines whether the list summary is for the folder or a single piece of content Folder 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 page 318 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 uele rascu gt MipkenceiMtoyelbreaslyexoll O MT rs 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 306 Custom ASP Functions 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 Here is how the
197. ence Manual Version 5 0 Revision 8 88 Property Description Data Type For more information see 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 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 Search Server Control Property Example The following example places a text field and a search button ona template El TET a ButtonImgSrc ButtonText Search DefaultResultDisplay True Display Vertical DisplayXslt ecmNavigation FolderPath Marketing Hide False Language 1033 MaxCharacters 50 MaxResults 0 Recursive True ShowDate True ShowSearchBoxAlways True TextBoxSize 25 The above example has the following parameters e No image is used for the button Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 89 e The text on the submit button is Search e The results will display on the page e The search options are arranged vertically e Searches content in the content marketing folder e The search allows a maximum of 50 characters e Returns unlimited results when the search is performed e Search is recursive e Shows the last modified date of the content e The search box will appear on PostBack e The size of the text box is 25 characte
198. ensed 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 eMPower for ColdFusion Licensed for ten seats 10 named users per URL Ektron CMS100 Licensed for five seats 5 named users per URL Ektron CMS200 Licensed for ten seats 10 named users per URL Ektron CMS300 Licensed for ten seats 10 named users per URL Ektron CMS400 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 Ektron eWebWP Licensed for unlimited seats 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 decompiler the Software This software product is licensed not sold 2 Duration Thi
199. ents The dynamic ecmcontentBlock function is almost the same as the static one see Static Content Block on page 282 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 asa parameter and returns its associated value For example in URL lt http localhost CMS400Example index asp id 1 amp LangType 1036 gt the following QueryString calls return these values QueryString Call Return value Request QueryString id 1 Request QueryString Lang Type 1036 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 284 Custom ASP Functions 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 If the
200. er Reference Manual Version 5 0 Revision 8 220 Dreamweaver Extension Support Field Description Dynamic Content Parameter Determines if content is displayed as static or passed dynamically 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 Displays a static content block id Content block is passed as a URL parameter Hide 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 to show or hide the function at run time Checked Hide function 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 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 NOTE You see only the list of Ektron CMS400 NET content blocks if you are working
201. er 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 319 Custom ASP Functions 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 0 Servo Control Engineer 124 1 Servo Control Engineer 124 RC International is looked for a highly skilled servo control engineer to join our team 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 wee 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 Servo Control Engineer 124 border solid blue 1pt RC International is looked for a highly skilled servo control margin 2px width 100 engineer to join our team Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 320 Custom ASP Functions Show Info The show info field determines what sort of information is displayed
202. 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 5 0 Revision 8 147 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 background C5DAEF e font family Arial Ektron CMS400 NET Deve
203. ersion 5 0 Revision 8 97 e Programmatically Predefined General Search Results Replaced By Specific Search Results on page 109 e Turn Off Caching In Netscape Navigator and Mozilla Firefox on page 113 IndexSearch Server Control vs Search Server Control See Search Server Control vs IndexSearch Server Control on page 86 IndexSearch Server Control Properties NOTE The IndexSearch 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 Net 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 32 ButtonText The text that appears on the String The default is button Search Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 98 Property Description Data Values Type 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 a when ID is parameter specified Leave blank to always
204. ert a single metadata tag into a template you must leave this attributes as Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 368 Custom ASP Functions Show Site Language 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 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 NOTE 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 S ecmShowSiteLanguage mysitelanguage gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 369 Custom ASP Functi
205. erting a List Summary For a description of the List Summary function see ListSummary Server Control on page 114 To insert a list summary Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 225 Dreamweaver Extension Support 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 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 Insert Control ID istSummary1 ae _ Select the folder or fill it in above _ _ Recursive Order By Title Ascending v Max Number of results 0 is unlimited Display Type ecmTeaser vi Dynamic Content Parameter None Y Random Output None v ContentType Content Hide O Visible Positioning info GridLayout Style leave blank if none Wrap tag Span wV 3 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 Folder Enter the folder name manually The default is the root or 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
206. es 292 POCUS Osaan 292 Ee aa e T A T A A 293 TER BOX asmana aiia 293 Maximum Gharacter Siessen cats se iucedccatepiacescontnnincsscantes tees 294 B ton Image SOUE aison aceaasaitece 294 Eae Ml WOR AI T A A A TAA 295 FON FAC upna 296 Font SiZ serin E AEN 297 FHOMZONUG sapian 298 SANG A A A E T EE T AT T S 298 Search Display Function ccsssseeeeeeeeeseseeeeeeeeeeeeeeeenees 299 Search Display Example sscccc022ec ste teeecese 300 Search Display with Default Content ceeceeeeeeeeeeetteeeeeeeees 300 Search Display Attributes cisisiseccccssccsccsscscccsecstcecccseccstectteecesecce 301 Max Number of Content Blocks Returned cceeseereeeeeeeeeees 302 Sle lo anan a a en ert rests ere 303 SHON Dale ansni eana 303 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 xiii List Summary FUNCTION sosisicccsssscecesenenssenexennsaacanececsnenacanenansis 304 List Summary EXANA DIC sacscciccncesccccsncinsceencrnintenensnnuscnnssennsesnnese 306 List Summary Attributes ss scsicisescccscctscccecccssaceecccoaseccecrataxesacsnce 307 Stang Folde Pease ees 307 POCUS VE 308 SNOW SUMIMALY seeretetouzcecnetasszzecerschedtsccerssdedneecqnneshadaceesistedsccerendtads 308 PLY LO WIM Oa esccice stance sadnncnahaanesie sa ecaaaeninedu saa teaedusaseiaateemnensceneeeaaeenees 309 Order BY sssaies maracecens tate aR ep stent eaccesshanteateceietatictcetecs 309 Ascending Descending sidasspsecutadngsetaciiadast
207. et three of the criteria The second group met one criterion ED Microsoft ASP NET Prog This property is used when the weighted property is set to true See Also Weighted on page 103 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 5 0 Revision 8 100 Property Description Data Values Type Labelafter All of these properties let you String Examples of what the user will Labelbefore change 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 PARTAN Equal Labelinputnumber e Than LabelLessThan French etween Labelon AHAS Egale LabelSelect Aucun Choix Note These label properties will not change based on the 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 Design time only View Integer content blo
208. etting Up Instances of Web Services ccccccccccseseeeeeeeeeeee 447 Getting Content BIOCKS cccceecceeeeceeeeeeeeeeeeaeeeeeeueeeeeeneees 447 Creating a Page that Provides a Web Service cssss00 452 Syndicating Web Content aS RSS eeessseeseeeeeeeeeees 454 What is RSS Syndication sciccccccecseseccscc cei 454 The RSS Specification ccccccccscceeeeecceeeceeeeeeeeeeeesaeeeeeeeeeeeeaeeeees 454 RSS Syndication in Ektron CMS400 NET ccsssseesseeeeeees 455 Syndicating Vid NEM peicisitnticsinasrtenincrcninminnnamnions 456 Architecture of RSS Syndication cccccesseeeeeeeeeeneeeee 456 AS PAG SS urian ncaatemnecataacaaanases 456 Retrieving a Collection or List Summary as an RSS Feed 456 Creating Your Own aspx Collection Page cccessseeee 456 Example a anid asinensmdluacteonnidedenieranddaecepnds 457 Remak Saarna a a tarda A ET 457 EXGIM OO esn 457 Creating Your Own aspx List Summary Page csssssee 457 EaD O sea igasdntaspbstunaaidinuagasesraantadnagniusiis 458 FAIGIMIAMGS srccctccacussentncacaessaeancacaess setae ccnssestaascetuaeau acs aesareteacertbaacs 458 21019 E E nr eee E et rere ret errreeee rrrerere rt tree 458 Learning About Visual Studio NET cccccccssesseeseeeees 459 Grid Layout vs Flow LayOull sscissctcsscscesatestesecsacescetecesticcctecessecs 459 Additional Information ccccceecesessssssssseesseeeeeseeneees 461 S pp
209. evelopment 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 behind Response Cache SetNoStore Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 113 ListSummary Server Control The List Summary 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 it
210. external does not matter XSLT file not if a value exists specified in the in argument 2 Edit XML argument 3 is Configuration screen For example lt ecmContentBl ockEx 13 samplexslt xsl gt ignored See Also The Managing XML chapter of the Ektron CMS400 NET Administrator manual Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 286 Custom ASP Functions 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 lt gt lt td gt lt if request QueryString id lt gt then ecmContentBlock request QueryString id else ecmContentBlock 14 end if gt lt td gt lt EnS gt 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 5 0 Revision 8 287 Custom ASP 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 ecmSear
211. f the code that is inserted Platform Code View NET lt coms Search id Searchl DisplayXslt ecmTeaser Recursive False FolderPath runat server gt lt cms Search gt Inserting an Event Calendar Function For a description of the Event Calendar function see Calendar Server Control on page 127 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 235 Dreamweaver Extension Support To insert an event calendar function NOTE Inserting a calendar function does not add a reference to a calendar style sheet This step must be performed manually 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 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 Span 3 Use the following table to assist you with inserting a calendar Field Description Control ID A unique name for the function you are inserting 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
212. format of the ecmRssCollection function lt CFMODULE template request ecm AppPath ecmRssCollection cfm id 2 This function is basically the same as the RSS Collection function in ASP See RSS Collection Function on page 341 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 123 for details The only differences between the Coldfusion function and the ASP one is the use of the DisplayType parameter and the syntax for Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 394 Custom ColdFusion Functions implementing it The 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 om lt ie Adi Title Calendar Example J Description Location Location Start Time Start End Time End Table Properties Ektron CMS400 NET Developer Refe
213. further define your Web site settings You can access help for the Advance Tab in Dreamweaver 16 Click Done Building the Site Map in the Files Window Now that the site has been defined the Files window appears on the right side of the Dreamweaver window The Files window provides two visual representations of the local site Site Map and Site Files The Files window can be used to add new files to the site and to add remove and change links It can also be used to create an Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 12 Creating a Web Site image file of the site that can be exported to and printed from an image editing application a g Products aspx Services aspx mailto test test com This is useful for creating a Web page with a visual layout of your site and linking each page to the image This is also useful if you preparing a report on your site and would like to have a site map image included in the report To create a site map image follow these steps 1 In the Files window click Map view from the dropdown box on the right 2 Click the dropdown Menu as shown below Fv Files N me CL Click File gt Save Site Map In the File Type dropdown box select omp or png Enter a name in the File Name text box Select a location to save the file Click Save NO a BP amp Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 13 Creating a Web
214. g GetHtml Set to True if you want to retrieve and display content html body for all content blocks in the collection For example to display content inside a web server control such as a DataGrid Boolean Hide Language Used to hide output of collection in design time and run time True Hide collection False Display collection Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Boolean Integer Random Set to True if you want to randomly display one collection item The item changes each time a user views the page Boolean 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 Example of ecmNavigation Display The following is an example of a collection being used as a navigation menu Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 122 Products RC Sportster RC Cheetah RC Lilly RC Redstar ecmNavigation
215. g 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 248 Dreamweaver Extension Support Field Description 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 122 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 123 Dynamic Content Checks the QueryString for the content block ID value and replaces the Display By Parameter Meta Value Control with 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 DataGrid 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 Arc
216. ght 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 456 Syndicating Web Content as RSS title As String ByVal description As String As RSS20 rss Serialize Optional ByVal stream As System 10 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 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
217. gt tag lt HEAD gt lt title gt WebFormS lt title gt t 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 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 keywords content CMS400 NET CMS gt i 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 vs_targetschema
218. 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 5 0 Revision 8 228 Dreamweaver Extension Support 4 When completed click insert A graphic defines where the list summary appears on your template pr aspx _ 2 code 3 spit a Desion L47 Title pr we el eE lt rorm 1d Forml method post runat server gt lt P gt lt CMS ListSummary id ListSummary1 runat server FolderPath OrderKey DateCreated Direction Descending DisplayType ecmTeaser DisplayXslt ecmTeaser ContentParameter id gt lt CMS ListSummary gt lt P gt Jit Shown below is an example of the code that is inserted Platform Code View NET lt CMS ListSummary id ListSummaryl runat server FolderPath OrderKey DateCreated Direction Descending DisplayType ecmTeaser DisplayXslt ecmTeaser ContentParameter id gt lt CMS ListSummary gt Inserting a Metadata Function For a description of the Metadata function see MetaData Server Control on page 186 To insert a metadata function 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 p
219. h All the words Any of the words Exact Phrase Match Partial Words Font Color Font Color Red 14DA14 Font Size This is the size of the text on the search tag Font Size Web Page View Search all the words C Any of the words C Exact Phrase 7 Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 297 Custom ASP Functions Font Size Web Page View 5 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 Any of the words Exact Phrase I Match Partial Words 1 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 5 0 Revision 8 298 Custom ASP Functions Search 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 Show
220. h 1008 gt Smycount cInfo gt count for Siloop 0 Siloop lt Smycount Siloop Shtml info html html html html html ScInfo gt Item Silooptl html html html html html lt tr gt lt td gt amp nbsp amp nbsp lt a href Sinfo gt Item ContentLinks MANS info 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 return html 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 415 Custom PHP Functions RG internanvional Home Products Support Nevs Careers Search Login Con
221. he site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Integer ShowXML 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 Boolean StartDate Specify the start date 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 132 Calendar Style Sheet Before you insert a Calendar into your Ektron CMS400 NET template Ektron recommends referencing the style sheet webroot cms400example 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 lt link href calendarStyles css rel sty
222. he dropdown menu in the Files window Site MyFirstSite c inetpubf Testing server La Map view Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 16 Creating a Web Site 8 The Map view appears Creating a Subfolder and Files The home page currently has no links After links have been established the home page and the linked pages will be displayed in the site map Steps to Create a Subfolder and Files 1 If you are in Map view switch back to Local view 2 Right click the local root folder in the Files window For example Site MyFirstSite c inetopub wwwroot MyFirstSite 3 Click New Folder Name the new folder Pages 5 Create two files to put into the Pages subfolder by right clicking the subfolder and choosing New File 6 Rename the two files Products aspx and Services aspx NOTE The template will be applied to these files in the following steps Creating the Template Templates allow a designer to construct a site that has a consistent style and is easy to update Templates are convenient for a team of designers allowing some members of the team to concentrate on Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 17 Creating a Web Site the style of the pages while other members of the team create new pages and revise the content without altering the formatted layout Changes can be made to the overall design of the site quickly by rev
223. hecked 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 5 0 Revision 8 259 Dreamweaver Extension Support 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 Language English U S TNiofankt T anmiana FACD I arall Shown below is an example of the code that is inserted Platform Code View NET lt cms LanguageSelect id LanguageSelect1 runat server gt lt cms LanguageSelect gt Inserting a Language API For a description of the Language API function see LanguageAP Server Control on page 68 To insert a Language API Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 260 Dreamweaver Extension Support Move the blinking cursor to the area that you want to place it From the list of Ektron CMS400 NET Functions click Language API Th
224. her This subsection contains the following topics e BreadCrumb Server Control Properties on page 199 e Using the BreadCrumb Server Control on page 201 BreadCrumb Server Control Properties The BreadCrumb Server Control properties are described in this table Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 199 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 Net help Property Value Data Type CurrentPagelndicator A symbol or character used to identify in the breadcrumb trail the page you are currently on Dev gt WebForm gt pr gt FAQ gt Met String DisplayStyle Whether you want the breadcrumb trail to be displayed horizontally or vertically See Also Breadcrumb Trail Type on page 198 String DisplayTitle What the breadcrumb shows for a page name The default Title String IconAlt The Alt text that appears when the icon is hovered over String IconPath The path to the icon image This icon replaces the text that appears in the DisplayTitle property For example Images bc_meta_icon gif You do not need to define the site root in the property Important The image location must be relative to the site root String LinkLastltem Choose whethe
225. hether the Display By Meta Value control uses this folder s child folders Order By e Specify how you want to order the 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 Unchecked Doesn t need to match exact phrase 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 Managin
226. hive_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 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 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 5 0 Revision 8 249 Dreamweaver Extension Support 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 4 When completed click insert A graphic defines where the Display By Meta Value appears on your template lt form id Formi 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 De
227. ibutes on page 112 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 Building Blocks See Building Blocks on page 116 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 393 Custom ColdFusion Functions This function is basically the same as the XML Collection function in ASP See XML Collection Function on page 343 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 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
228. ic Content Block on page 282 Dynamic A content block whose ID is passed Dynamic Content through the URL Block on page 283 In addition a content block can contain XHTML or XML content For more information see XML Content Block on page 284 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 281 Custom ASP Functions Static Content Block The following illustrates how to insert a static content block ona template lt tr gt lt td gt lt ecmContentBlock 329 gt lt td gt lt tr gt In the example above the function retrieves the content block with an id of 329 from the database to the browser 4 Our Company Home Microsoft Internet Explorer provided by Ektron Inc File Edit View Favorites Tools Help O O DAO Pwo km O A D w L Cr tate once Links 2 EktronNet Welcome Ektron Inc CMS400 Example lt Welcome to RC International Address Latest News Our Company Intrane Enhanced Dreamweaver 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 affi Management Strategies Juni nk In 1998 William Acme foundec upiter Conten ne based on
229. ideXslt and DisplayXslt Properties on page 77 String 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 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 The OverrideXslit and DisplayXslt Properties The DisplayXslt property is optional If used it specifies an external XSLT file If the DisplayXslt property is not defined the OverrideXsit property specifies an XSLT identified in the Edit XML Configuration screen The following table provides more Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 information about these properties 77 To use this display XSLT 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 XML configuration screen that is the XSLT created in the Data Designer Edit XML Configuration new configuration Se Title new configuration ID 6 Description xstt 2 Display Information Files prefixed with CMS300SampleTest xmlFiles Default c XSLT 1 xmifiles xsit samplexsitixs O re XSLT 2 amifiles xsit samplexsit2 xs1 O XSLT 3 D o e XSLT Packaged Enter this Enter this value for v
230. ign time and run time Checked Hide form 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 Checked Hide function Unchecked Show function Note If Hide and Visible are both checked the property is hidden Style Positioning Set position information of a control as absolute when using a GridLayout Web Info GridLayout 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 4 When completed click insert A graphic defines where the form appears on your template FormBlock aspx k gt Code E soit La Design Gf Tite WebForm1 oe amp amp CE lt cms FormBlock id FormBlock1 DefaultFormID 13 runat server gt lt cms FormBlock gt lt P gt fektron Form Block Descrintion Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 240 Dreamweaver Extension Support Shown below is an example of the code that is inserted Platform Code View NET lt cms FormBlock id FormBlock1 Defa
231. ignment of the root menu text 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 String 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 32 String BackColor Sets the background color for the root menu This property appears in the Appearance category String CssClass Apply a css class to the root menu Enter the class name from the css defined in the Stylesheet property See Also Stylesheet on page 182 Since pop_style css is the default style sheet you can use it s classes without defining it in the Stylesheet property For example enter lowtext in the property the root menu changes as shown below No CssClass applied lowT ext CssClass applied String DefaultMenulD The ID of a menu that appears where you inserted this server control if no other content block is identified or is not available If you don t know the ID number of the menu use the CMS Explorer to browse to it See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 Integer DynamicParameter Select menu_id When you do this server control uses the menu passed as a
232. implemented support for Web Services as well as syndication using RSS Information about configuration and use of these features is also found in the following sections e Web Services on page 431 e Syndicating Web Content as RSS on page 454 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 1 Creating a Web Site Creating a Web Site When creating a Web site Ektron recommends using one of the following programs e Microsoft Visual Studio NET e Macromedia Dreamweaver MX 2004 This chapter provides an overview of creating a site using each of these programs Each product has its own niche Microsoft Visual Studio NET with its intellisense separate pages for coding Server Controls and ease of database manipulation is geared more toward the programmer developer On the other hand Macromedia Dreamweaver MX 2004 with its easy to use customizable interface state of the art design tools and enhanced coding tools is a streamlined design tool for the designer developer For more information on creating a Web site using Microsoft Visual Studio NET see Creating a Web Application Using Microsoft Visual Studio NET on page 2 For more information on creating a Web site using Macromedia Dreamweaver MX 2004 see Creating a Site Using Macromedia Dreamweaver MX 2004 on page 7 Creating a Web Application Using Microsoft Visual Studio NET NOTE Some information in this section has been copied from
233. ing it The PHP example is below Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 413 Custom PHP Functions 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 Neves Careers Search Products Page Products RC Cheetah elcome to RC International product page Whether you ar PE DNY just a beginner you will find fun and adventure in RC Intern RC Redstar RC Sportster RC Cars ARC Sportster RC Internationals first entry RC Cheetah in to the competitive RC racing world was successful e the RC Sportster The RC Sportster is racing world 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 5 0 Revision 8 414 Custom PHP Functions Function ecmNavigation ScInfo global html Sinfo Shtml lt table border 0 cellspacing 0 cellpadding 0 widt
234. ion id gt The ecmRssCollection function attributes are explained below Attribute Description id The id of the collection that you would like to be displayed is defined here 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 a RSS reader on a web page Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 341 Custom ASP Functions lt xml version 1 0 gt lt rss xmins 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 CMS400Example 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 CMS400Example 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 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 Applic
235. ion on page 129 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 422 Custom PHP Functions lt td gt lt tr 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 423 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 To pass in a standard content block pass the id value in the url parameter as illustrated below http localhost CMS400Example index asp id 2 To pass in a Form content block pass the ekfrm value in the url parameter as illustrated below http localhost CMS400Example index asp ekfrm 2 NOTE For more information about passing the id value as a url parameter see Dynamic Content Block on page 408 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 eemContentBlock and passes the DefaultID
236. ion 8 119 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 121 e Example of ecmNavigation Display on page 122 e Example of ecmTeaser Display on page 123 e Using the Collection Server Control Programmatically Example on page 124 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 120 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 Net help Property Description Data Type Authenticated Indicates if you are logged in to the CMS Explorer a
237. ion to return the HTML to be output to the ecmCollection function Function MyDisplayFunction cInfo dim html info html lt ul gt for each info in cInfo html html amp lt li gt html html amp lt a href amp info ContentLinks amp gt amp Cstr info ContentTitle amp lt a gt html html amp Cstr info ContentTeaser html html amp lt li gt next html html amp lt ul gt end Function Function MyDisplayFunction cInfo dim html info html lt ul gt for each info in cInfo html html amp lt li gt html html amp lt a href amp info ContentLinks amp gt amp Cstr info ContentTitle amp lt a gt html html amp Cstr info ContentTeaser html html amp lt li gt next html html amp lt ul gt MyDisplayFunction html end Function Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 336 Custom ASP Functions Building Blocks The sample display function created above uses only two building blocks This section explains all building blocks you can use within a custom display function Name Description Web Page View Displays content info ContentTeaser block summary e Plastic Molder 123 RC International is looking for an experienced plastics molder e Servo Control Engineer 124 RC International is looked for a highly skilled servo control engineer
238. ising the template files directly Steps to Create a Template The Create a Template example is broken into three parts e Creating a New Template on page 18 e Creating a Navigation Bar for the Template on page 19 e Establishing Editable Regions and Saving the Template on page 21 Creating a New Template Click File gt New 2 On the General Tab click Template page gt ASP NET VB template 3 Click Create Choose Modify gt Page Properties In this dialog box you can do the following e choose a title for the template e set the template s background e set text e choose links colors e set left and top margin and margin width and height 5 Insert a two row two column table in the template e The first row is reserved for the page banner and will be an editable region e The second row of the first column is where the navigation bar will be built This row will be an uneditable region Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 18 Creating a Web Site e The second row of the second column is where the future content will be placed It should look like this lt tr gt i ar 6537 lt body gt lt table gt lt tr gt lt td gt Creating a Navigation Bar for the Template Most Web sites have a navigation bar that provides links to the individual Web pages of the site Usually the navigation bar is inserted into the uneditable region of the templa
239. ision 8 57 Introduction to Ektron CMS400 NET Server Controls 1 In Web form design right click the DataGrid and choose Property Builder Velece 15 ab 00 View in Browser 15 ab view Code 00 Synchronize Document Outline 15 Auto Format ab 00 Property Builder Properties 2 Click Columns and uncheck the Create columns automatically at run time checkbox DataGrid1 Properties C General 8 Paging Available columns Selected columns AA Format Data Fields A All Fields ki Borders CE H EJ LastEditorFname z EJ DateModified v am gt Column properties xlele Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 58 Introduction to Ektron CMS400 NET Server Controls 3 Choose the fields for the custom table from the available columns DataGrid Properties C General Create columns automatically at run time F Columns Column list S Paging Available columns Selected columns AA Format Data Fields Borders E All Fields EJ LastEditorFname EJ DateModified Ix lele 4 Click OK 5 Right click the DataGrid and choose View in Browser 6 The custom table appears Title QuickLink ID RC Lilly CMS400S ample products aspx id 6 6 For more information on working with DataBind or DataGrid review the help topics in Visual Studio Caching with Server Controls One of the most important factors in building high perf
240. ision 8 87 Property Description Data Type For more information see MaxCharacters The maximum number of characters the input text box accepts when doing a search Integer MaxResults The Maximum number of content blocks returned O unlimited Integer OrderDirection The direction the search results will be sorted in The default is Ascending e Ascending Results from AtoZ e Descending Results from ZtoA String PostResultsAt Enter the Web form where the search results will be posted When left blank the results are posted to the Web form where the search was initiated Important A search control must exist on the posting page String Specify Search Control To Display Search Results on a Separate Page on page 94 Recursive Whether to search sub folders of the identified root folder The root folder is identified in the Folderpath property Boolean ShowDate If True displays the content block s last modified date This is useful for determining the most recent content block Boolean ShowDate Examples on page 93 ShowSearchBoxAlways If set to false the search box does not appear on PostBack Boolean 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 90 Ektron CMS400 NET Developer Refer
241. isplay 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 This function is basically the same as the List Summary function in ASP See List Summary Function on page 93 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 Summary Example lt TR gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 410 Custom PHP Functions lt TD gt lt PHP ecmListSummary Marketing News 0 1 Title asc DateModified 0 2 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 410 for details Single Summary Function The single summary function is used to display the su
242. istSummaryResult Item iLoop ContentID amp lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 447 Web Services 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 td gt lt b gt Date Created lt b gt amp glsCms400ListSummaryResult Item iLoop DisplayDateCreated amp lt td gt lt Ene 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 E 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 trHTML strHTML amp lt tr gt lt td gt amp glsCms400ListSummaryResult Item iLoop ContentTeaser amp lt td gt lt tr gt StrHTML strHIML amp lt tr gt lt td gt nbsp lt td gt lt tr gt Next n This code loops through all content blocks in the Market ing News folder For each block the page uses the W
243. join our highly skilled team of enthusiastic molders to bring to life our next generation products RC International is experiencing 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 1li gt lt li gt Excellent written and oral communication skills lt li gt lt li gt Ability to work with very little supervision lt li gt lt 1li 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 443 Web Services 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 ContentHtm1 gt lt Xslt1 gt C Inetpub wwwroot CMS400Example XMLFiles xslt rc_jobs_display xsl lt Xsltl gt lt xslt2 gt lt Xslt3 gt lt xslt4 gt lt Xslt5 gt lt DefaultXslt gt 1 lt DefaultXslt gt lt Item gt lt ContentBlockResult gt The News aspx Sample non XML To help you
244. k 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 an XML Configuration gt Adding an XML Configuration Using External XML Files Here is the format for the ecmContentBlock function lt ecmContentBlockEX ID gt Here is the format for the ecemContentBlockEX function 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 360 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 278 Custom ASP Functions The table below explains the attributes of the ecmContentBlock Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 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 tran
245. ktron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 371 ek_Menu js Custom ASP Functions e ek_Menu js on page 372 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 cms4001 Workarea java Example Use the following table to help you change menu attributes See Also menuLiteBgColor on page 374 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 fontFamily Font style of menu text arial helvetica espy See Also FontFamily on page 373 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 372 Custom ASP Functions Attribute name Specifies the Default value menuBorderBgCo
246. lection RSS Collection Function on page 418 Content Functions Content Block Displays and manages a content block Content Block Function on page 407 Form Displays a content block associated with a form Form Function on page 422 Multipurpose Displays either a content block or a form MultiPurpose Function on page 423 List Summary Functions Archive ListSummary Displays summaries of archived content blocks Archive List Summary Function on page 411 List Summary Displays a list of content block summaries List Summary Function on page 410 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 405 Custom PHP Functions 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 412 RSS List Summary Creates an RSS feed out of the items in a list summary RSS List Summary Function on page 413 Single Summary Displays the summary for a content block Single Summary Function on page 411 Login Functions Login Adds the login or logout button Login Function on page 407 Menu Functions the menu items properties DropHTMLMenu Used to display a DHT
247. led automatically by CMS when displayed on Web page For Web Services however this needs to be defined Recursive Search Defines whether search is recursive 1 recursive search 0 non recursive search Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 Web Services Parameter Where How Implemented by CMS Defined in Application API xxx 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 O 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 Specify the maximum number of topics to display Display when a search is performed For example 0 unlimited 1 one result 7 seven results Ektron CMS400 NET Developer Reference Manual Version 5
248. lendar s look and feel by using a style sheet See Also Calendar Style Sheet on page 133 and calendarStyles css Class Description on page 133 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 127 Login Calendar display Status Logged in vember December 2004 January Sun Mon tue aa eee afd 4 Fa 6 Gal JEA 10E PEIEE EN PIENI 1a 14 FG 15630 16 E30 17640 1960 PIENI 20 F30 21 2 22 F00 23700 24 E30 25 Pal Ja 27 00 28 40 29 Fa Si a0 E35 312d Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 128 Login Calendar display Status Logged Out vember December 2004 Januz Mon tue wea thu Terri sat 1 2 3 4 6 7 8 g 10 11 13 14 15 16 17 18 20 21 22 23 24 25 27 28 29 30 31 A calendar can be static or dynamic e A static calendar is selected in the server control properties e A dynamic calendar is passed to the page by a URL parameter This subsection contains the following topics e Calendar Server Control Properties on page 129 e Calendar Style Sheet on page 133 e calendarStyles css Class Description
249. lendar 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 gt gt 6 9 2005 Mon Tue Wed Thu Fri Field Hockey ol aes 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 5 0 Revision 8 355 Custom ASP Functions 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 10End 8 00 PM 143 14 15 16 17 20 21 22 23 24 27 28 29 30 2004 2005 2006 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 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 356 Custom ASP Functions Form Function The ecmFormBlock and ecmFormBlockWithFormTag functions display an HTML form content block Both functions have the same parameters and display the form the same way The only difference is ecmFormBlockWithFormTag automatically inserts form tags ecmFormBlock does not The following is an example of form tags lt form name myform action onsubmit return EkFmValidate thi
250. lesheet type text ess gt 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 calendarStyles css Class Description The following table describes the classes found in the calendarStyles css file This table contains the following sections e Single Day View Day on page 133 e Month View month on page 137 e Inline View inline on page 149 e Month Up with Event monthupwithevent on page 151 e Event Type Control used in month display on page 158 Siyle Class Description Attributes and Default Settings Single Day View Day Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 133 Style Class Description Attributes and Default Settings 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 New Roman e font size 9pt e font weight bold Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8
251. lhost ams400example 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 5 Click OK to continue 6 The setup dialog box closes You are ready to create templates using Macromedia Dreamweaver Using the Ektron CMS400 NET Extension Now that the Macromedia Extension Package has been installed for Dreamweaver you can create and edit templates for Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 210 Dreamweaver Extension Support To explain how to use this we use templates that are in the Ektron CMS400 NET installation but with the custom functions stripped out NOTE You can also create your own templates instead of using the ones in the Ektron CMS400 NET installation The following subsections are contained in this section e Custom Function Symbols on page 213 e Ektron CMS400 NET Commands Menu on page 214 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 211 Dreamweaver Extension Support In Dreamweaver begin by opening the file webroot CMS400Example loginexample aspx File Edit View Insert Modify Text Commands Site Window Help Common Y NY E fs loginexample aspx A lt gt Code L split
252. ll search sub folders of the starting folder 0 Non Recursive search will only search starting folder The page that displays the search results You may enter any form of a URL for this page The target page must include the searchdisplay function to display search results To use the same page enter a pound sign into the field 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 Size Web Page View 10 Cc Search All the words C Any of the words Exact Phrase Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 293 Custom ASP Functions Text Box Web Page View Size 50 Search All the words C Any of the words Exact Phrase PM aantnh Nartini waned Maximum Characters This attribute determines the maximum number of characters that a user can enter for search text Button Image Source To use an image for the search button enter the image s filename and path Button Image Source Web Page View 7 Search All the words C Any of the words Exact Phrase I Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 294 Custom ASP Functions Button Image Source Web Page View search jpg ETEN All the words C Any of
253. llection in design time and run time Checked Hide collection Unchecked Show collection 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 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 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 5 0 Revision 8 224 Dreamweaver Extension Support 4 When completed click insert A graphic defines where the collection appears on your template sia e code soe gt lt body e M amp C EL lt form id Formi method post runat server gt Shown below is an example of the code that is inserted Platform Code View NET lt cems Collection id Collection1l DefaultCollectionID 0 DisplayXslt ecmTeaser runat server gt lt cms Collection gt Ins
254. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 103 Explorer login see Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 The following example uses the SearchParmXML property to create a list of books based on publishers with press in their name 1 To activate the window click the gray box in the SearchParmXML property Ea 2 The Build Search Parameter screen appears HS Build Search Parameter Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 104 3 Click the check boxes for the parameters you want to search with 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 content Contains You enter a word or phrase and search for any XML content that has that word or phrase contained within it Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 105 5 Click OK 6 Build the Web form 7 Browse to the Web page in your browser 4
255. loper Reference Manual Version 5 0 Revision 8 148 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 SR 2 WA 2 PRs A a BA a W a DA 2 AA DA 10 aA n OOO n aa u Sa 3 15 6 8 16 T a Sd Sts WA E ww d a Wie Sin wa Bis Wa Bia Waa 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 92 2005 Football Shafer Stadium Start 12 00 AM End 1200 AM 5 5 2005 Hockey Game VWA Start 1200 AM End 1200 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 5 0 Revision 8 149 Style Class Description Attributes and Default Settings ILViewEvent Font for the event description The following example shows the view event font in red
256. lor 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 childMenulcon Path to the submenu icon the image used to Workarea indicate that a submenu is available from this images menu item application 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 arrows gif childMenulconHiLite The path to the icon that appears when you hover the mouse over a menu item that leads to a submenu 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 Workarea images application arrows2 gif FontFamily 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 NOTE To display a font family other than the browser default specify only the font name and no other comma separated values If you specify more than one value for the font family Ektron CMS400 NET uses the default IE settings Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 373 Custom
257. lse gt lt cfset tStringi tString amp Attributes href amp id amp cT Item ContentID gt lt cfif gt lt cfelse gt lt cfset tString tString amp cT Item ContentLinks gt lt cfif 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 erit 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 gt lt cfloop gt lt cfset tString tString amp lt table gt gt lt cfmodule str tString nId Attributes nIid template request ecm AppPath ecmshowCollectionsContent cfm gt lt etift gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 392 Custom ColdFusion Functions 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 Attr
258. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 424 Custom PHP Functions 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 oO 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 cmMs400 Sample web Site cm5400 Login Information lt Tit le gt lt meta name Keywords content CMS400 content Management solution business users developers benefits Ektron login gt lt PHP ecmMetaData 1 title 2 keywords gt fj metadata 1 Notepad 10 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 cmMs400 Login Information lt Tit le gt lt meta name Keywords content CMS400 content Management solution business users developers benefits gt lt head gt lt body gt lt body gt lt html gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 425 Custom PHP Functions lt PHP ecmMetaData 1 2 title keywords gt fj metadata 2 Notepad a O x
259. lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name srce gt lt xsl value of select Image gt lt xsl attribute gt lt img gt lt A gt lt xsl when gt lt xsl otherwise gt lt xsl iftest not Image gt lt A gt lt xsl attribute name href gt lt xsl value of select concat Link gt lt xsl attribute gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name srce gt lt xsl value of select Image gt lt xsl attribute gt lt img gt lt A gt lt xsl text gt lt xsl text gt lt xsl if gt lt A gt lt xsl attribute name href gt lt xsl value of select concat Link gt lt xsl attribute gt lt xsl value of select Title gt lt A gt lt xsl otherwise gt lt xsl choose gt lt span gt lt br gt lt xsl otherwise gt lt xsl choose gt lt span class branch gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 172 lt xsl attribute name id gt lt xsl value of select menuld gt _ lt xsl value of select ID gt lt xsl attribute gt lt xsl apply templates select Item gt lt span gt lt xsl template gt lt xsl template match Item gt lt xsl choose gt lt xsl whentest ItemLink gt lt span class handcur gt lt xsl choose gt lt xsl whentest ItemImageOverride True gt lt img gt lt xsl iattribute nam
260. ly Arial e font size 9pt d3 s Gs GS r GS E e Ga ein e font weight bold 332 E E E E E a a3 2 PE 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 e ition May position absolute Sunday Monday Tuesdy Wednesday Thursdey friday Saary SWA a Sl na Al Nna WSs Bas WA se aA a Hockey Game Locaton Vwa Start 1200 AM EE Bale BAw E aa Jo Ss laa dss Blas do Alar Tu S19 wE 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 5 0 Revision 8 145 Style Class Description Attributes and Default Settings mv_dayBorderToday The today cell that holds listed events The following example shows the day border today in red lt lt Macch April Mar gt gt Sondy Monday Tueedsy Wednesday Thorecey Pridasy Sanary EEIEIE All A a A 5s Sale A a Sale Bala Fan To Bat 2s aa n dQ s T Sloe Ta Alar 2d Sse Se Al 2 Ala Aa Se Al zz d Ala Faa GAs T 26 aa Taa 6 A ze Taa e border right b38b3b 2px solid e border top b38b3b 2px solid e background ffe354 e border left b38b3b 2px solid e border bottom b38b3b 2px solid mv_dayBorder Thi
261. m Random Summary on page 349 RSS Collection Creates an RSS feed out of the items in a collection RSS Collection Function on page 341 Content Functions Content Block Displays and manages a content block Content Block Function on page 278 Form Displays a content block associated with a form Form Function on page 357 Multipurpose Displays either a content block or a form MultiPurpose Function on page 360 List Summary Functions Archive ListSummary Displays summaries of archived content blocks Archive List Summary Function on page 317 List Summary Displays a list of content block summaries List Summary Function on page 304 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 312 RSS List Summary Creates an RSS feed out of the items in a list summary RSS Summary Function on page 322 Single Summary Displays the summary for a content block Single Summary Function on page 318 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 274 Custom ASP Functions Function Description More Information Login Functions Login Adds the login or logout button Login Function on page 276
262. m using code behind For more information see Using Drag amp Drop and Programmatically Together on page 51 The following sections explain how to use the server controls programmatically e Steps to Insert a Server Control Programmatically on page 34 e Server Control Properties in Code Behind on page 38 e Customizing Server Controls on page 48 Steps to Insert a Server Control Programmatically To insert an Ektron server control programmatically follow these steps Step 1 Declare the Namespace on page 35 Step 2 Create an Instance of the New Control on page 35 Step 3 Set the Properties on page 36 Step 4 Call the Fill Method on page 37 Step 5 Use text Property to Display the Control on page 37 Each step is described below These steps show an example of using the Collection Server Control Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 34 Introduction to Ektron CMS400 NET Server Controls 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 shown below WebFormi aspx WebForm1 aspx vb og Page Events Imports Ektron Cms Controls E Public Class WebForm1 Inherits System Web UI Page NOTE You do not need to declare a namespace However if you do not you must fully qualify objects that you create Best Practice Fo
263. mailaddress When a visitor to the site selects that link their e mail program opens and an e mail with your address in the To field becomes available Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 20 Creating a Web Site Establishing Editable Regions and Saving the Template Once the design of the future template is complete it must be saved as a DWT file template in order to be able to establish editable or noneditable regions Originally each template has only locked regions Locked regions can be edited only inside the template itself Editable regions are placeholders for the content that is unique to each page to which the template is applied The content of editable regions is created and edited in the document that is derived from the template 1 With the cursor in the first row second column select Modify gt Templates gt New Editable Region or click the Editable Region button 4 2 The New Editable Region dialog box appears 3 In the Name field type Banner Editable Region as the name for this region of the template This editable region will be used as a placeholder for the title of the site pages 4 Click OK In the Document window the region is highlighted and identifiable by the region name Editable Region Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 21 Creating a Web Site 5 With the cursor in the empty cell next to the
264. mbols szisscccssiciaiscceaiietecciictiedecisineidecainaie 213 Ektron CMS400 NET Commands Menu cccccseceeeseeereeeeees 214 Inserting Custom FUNCTIONS cccccseeeeeeeeeeeeeeeeeeeeeeeeeneeeenees 216 CNO FUNGI inann neceedne caine 216 Accessing CMS Content Functions ccceecceeecceeeeeeeeeteeeeeeees 217 MO Gil R A E A E E E cdessendeavadenaat T 217 Inserting a Content BOCK siscecccesatscetectiiatiansaticiteadsctieaiedesciciaidie 220 sering a Collectio casita mink caesar eiaaeeiarines 222 inserting A List SUMIMANY ssnin 225 Inserting a Metadata Function ssssseessssrieessssrrreserrrrnneerrrnnnessrenna 229 Insertifig a Search FUMCHOM ssccccaisstescin siaceenieneidsctiieiaticemicigiace 232 Inserting an Event Calendar Function ccceeeeeeeeeseeeeeeeeeees 235 IASSPUIAG a FORM cessor annaa aA a 238 Inserting an XML Index Search sssssssessssesssersssrrsesrrsesrenssreessnns 241 Inserting Display By Meta Value aasesieeeerrrenerrrreesrrernnnnsenna 246 nssringa Standard Mem ssisssnig ursan aaia 250 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 xii Inserting a DHTML Me mus ssssazaccciaiatacxcccivandagacchieamlacnccinnteaucethinaias 253 Inserting a Language Select BOX ccceceeseeeeteeeeeeeeeeetaeeeee 258 inserting a LANGUAGES API assassinas 260 Standard ASP NET Methods cccccccceceeeeeeceseeeeeeeeeeees 263 Replacement of Standard Methods s
265. me The user to be authenticated for permissions for As String eligibility to add a content block Password The password for the username being authenticated As String Domain If using Active Directory specify the domain needed As String to authenticate the user Content_title Title of content block being added See Also As String Managing Content in the Ektron CMS400 NET Administrator Manual Content_comment Historical comment for content being added As String ContentHTML Content for content block As String SummaryHTML Summary information about content block As String Metalnfo Information for the metadata that will be used as a As Object reference point for finding other words or information Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 269 Standard ASP NET Methods Attribute Description Type ContentLanguage Language of the content See Also Multi Language As String Support in the Ektron CMS400 NET Administrator Manual FolderlD ID number of content folder to which content block As String will be added See Also Managing Content Folders in the Ektron CMS400 NET Administrator Manual GoLive Date and time content will go live on the Web site As String Must match date time format set in web config EndDate Date and time content will no longer display on Web As String site Must match date time format set in web config ErrString String ret
266. meta name Keywords content CMs400 content management solution business users developers benefits Ektron login gt lt head gt lt body gt pA a lt html 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 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 cms400 Login Informations Title lt meta name Keywords content CMs400 content management solution business users developers benefits 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 5 0 Revision 8 367 Custom ASP Functions lt ecmMetaData 1 2 title keywords gt fj metadata 2 Notepad File Edit Format Help lt Title gt cmMs400 Sample web site lt Title gt lt meta name Keywords content CMS400 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 Spare 1 One attribute field at the end is currently not used It is for future scalability When you ins
267. mmary 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 T This function is basically the same as the Single Summary function in ASP See Single Summary Function on page 102 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 411 Custom PHP Functions 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 ecmSingleSummary 14 1 DateModified 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 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 312 for details The only difference between the PHP function and the ASP one i
268. mp lt tr gt lt td gt lt b gt Xslt Used for Rendering lt b gt strHTML strdHi Select Case Case 1 strTm Case 2 strTm Case 3 strTm Case 4 strTm Case 5 strTm End Sel If Len strTmp None Used str ect mp gcbCms400ContentXml Item DefaultXslt gcbCms400ContentXml gcbCms400ContentXml gcbCms400ContentXml gcbCms400ContentXml gcbCms400ContentXml 0 Then cem cem cem cem cem Xsl Xsl Xslt Xsl Xsl HTML Content assumed lt b gt amp This 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 This code results in the following section of the page Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 450 Web Services 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 t
269. mplementation All methods are demonstrated on the sample page webroot CMS 400Example Workarea webservices ContentWS asmx For more Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 435 Web Services information see The CMS400 NET Content Sample Page on 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 page 439 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 Collection ecmCollection A Collection presented as GetCollection ecmCollection An XML data structure representing information about a Collection additional parameter GetHTML Possible values 1 returns html content 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 ShowInfo not available Ektron CMS400 NET Devel
270. n 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 193 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 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 http 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
271. n 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 block summary See Creating Custom Display Functions on page 334 for more information Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 332 Custom ASP Functions Collection Attributes ID The collection ID number is assigned to the collection when it is created View Collection Intranet Press English U S 2 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 Last Edit Date 1 19 2005 5 06 53 PM DisplayFunction A display function determines which elements of the content blocks in acollection 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 Inthe API file as a function Ektron CMS400 N
272. n about HTML forms see the Ektron 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 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 129 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 CFModule template request ecm AppPath ecmFormBlock form_id 1 gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 397 Custom ColdFusion Functions 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
273. n page 64 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 63 page called login aspx from which users can log into the CMS400 site without the public being able to access the page Login Server Control Properties The following table explains the properties of the Login Server NOTE 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 Net 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 32 String Hide Used to hide login button in design time and run time True Hide login button False Show login button Boolean Language Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Integer WrapTag Allows a developer to
274. n specified Choose None to always display List Summary Random Output 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 227 Dreamweaver Extension Support Field Description Hide Used to hide a list summary in design time and run time Checked Hide list summary Unchecked Show list summary 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 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 Wrap Tag Allows a developer to specify a server control s tag The default is Span Span The lt span
275. nction lt CFMODULE template request ecm AppPath ecmContentBlockEx cfm Ip XSLT Override This functions are basically the same as the ContentBlock and ContenBlockEX function in ASP See Content Block Function on page 49 for details The only differences between the Coldfusion function and the ASP one is the syntax for implementing it The ColdFusion examples are below Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 380 Custom ColdFusion Functions Static Content Block lt tr gt lt td gt lt CFMODULE id 1 template request ecm AppPath ecmContentBlock cfm gt lt td gt lt tr gt Dynamic Content Block lt Er gt lt td gt lt CFMODULE id id template request ecm AppPath ecmContentBlock cfm gt lt td gt lt tr gt XML Content Block lt Er gt lt td gt lt CFMODULE id 13 XSLT override 1 template request ecm AppPath ecmContentBlockEx cfm 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 to a specified collection Below is the format for the random content function lt CFMODULE template request ecm AppPath ecmShowRandomContent cfm ID XSLT Override Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 381 Custom ColdFusion Functions This function is basically the same as the Rand
276. nd can use it to browse to Content Collections etc See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 String ContentParameter Checks the QueryString for this value and replaces the collection with a content block when specified Leave blank to always display the Collection or List Summary String DefaultCollectionID The ID of a collection that appears where you 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 32 Integer DisplayXslt 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 122 ecmTeaser lists the title of every content block in the collection plus the content summary See Also Example of ecmTeaser Display on page 123 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page String Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 121 Property Description Data Type DynamicParameter To make this collection dynamic select coll_id When you do this server control uses the collection passed as a URL parameter Strin
277. ne two three DisplayXslt Ignore for a non XML content block String 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 5 0 Revision 8 The following example shows how the ContentBlock Server Control can be used to pass the id as a URL parameter 75 A Authenticated False DefaultContentID 2 DisplayXslt DynamicParameter id Hide False Language 1033 OverrideXslt 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 NOTE Ektron CMS400 NET Web page 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 Net 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 CMS4
278. nenenacecsnens 323 RSS Summary Ate wtes nicca 326 Collection FRING TOD ita scciasinsinniicnnnsncananiisadnananeaincnadeiinnieinienaiann 328 Gollegtion gt 111 i nn eee eee 328 Collection Attributes access ie ees 333 Creating Custom Display Functions ccssseeeeeeseeeeeees 334 RSS Collection Function cccseccccceeeeesseeeeeeeeeeeeeeeeeeeeeees 341 AML Collection FUNCUON sisisi aiaa 343 Random Content ssiscsrincsssscssscastsanscantassesessnasennnadessenacaxanansicanes 348 Random SUMmMMaTY saisinipun aaea 349 Event Calendar FUunction ccssesceccceeeseeseeeeeeeeeeeeeeeeeeneeees 350 Event Calendar Style Sheet 2 cc0 sccsc ccstecctectsceceteceeesiceene 350 Event Calendar Sample cssssecceseeeeceeseeeeneseeseseeneeeesseeeeees 351 Galendar FunctiOM ssanie Ei 353 Calendar Style Smee ascsissccscsecccceccacccenssccecvnecraccenscaceccetiussacceess 355 Event Calendar Sample siciccicccccccccccccesnteccatesacccecsesseccestesatcacesun 355 Form FUNGUO isso 357 M ltiPurpose FUNCTION sisicsisssiissiscsiscasssdnsninntdsstscetienisnannacie 360 Metadata FUNC MODs vicaisensctsicenicanissieassnaiiieacnanaeuitunenncinsntneanaan 361 Greating am tem Listoni aeaaaee aaraa aeaa aaa 361 ecmMetadata Example svc ccssccccsccccascconccecasctsenssccsstoenacccsesesesaess 362 More ecmMetadata Examples cccccsssseseseeeneeneeeseeeeeeeeneeeees 364 ecmMetadata Attributes ccssseeccessseeeeeeessseeeeeseeeeeeees
279. next html html amp lt ul gt end Function 5 Inside the for loop create the string to be applied to each item generated by the collection data For information about the building blocks see Building Blocks on page 337 Function MyDisplayFunction cInfo dim html info html lt ul gt for each info in cInfo next html html amp lt ul gt end Function This places an lt li gt tag at the beginning and end of each item Function MyDisplayFunction cInfo dim html info html lt ul gt for each info in cInfo html html amp lt li gt html html amp lt li gt next html html amp lt ul gt end Function This creates the hyperlink for the collection item When the collection item is generated on the Web page the hyperlink sends the visitor to the corresponding content block Function MyDisplayFunction cInfo dim html info html lt ul gt for each info in cInfo html html amp lt li gt html html amp lt a href amp infto ContentLinks amp gt amp Cstr intot ContentTitle e lt a gt html html amp lt li gt next html html amp lt ul gt end Function Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 335 Custom ASP Functions This displays the summary of the content block in the collection 6 Add this line at the end of the funct
280. nnual RC conference in Atlz DateCreated Displays the date when the i level RC racer currently on the mark srdfice yee 4 42 55 PM owing s st the 3rd aenar RC oer oR in A 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 KU gt p d mid level RC racer currentl to host the 3rd annual RC ct Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 118 List Summary Example Below is an example of the List Summary Server Control properties E Authenticated ContentParameter Direction Ascending DisplayXslt ecmNavigation FolderPath Marketing News Hide False Language 1033 MaxResults 0 OrderKey Title Random False Recursive False The example has the following properties e Direction The results are displayed in ascending order by title e FolderPath Displays summaries from the market ing News folder 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 e Xslt will use the navigation display format Ektron CMS400 NET Developer Reference Manual Version 5 0 Revis
281. ns cccssseeeeeeeseeeeees 334 Function SINUCLUVG scaron iaaea A 334 Creating a Basic Display FUNCHON sscsssriieranuaness 334 BUNUN DOCE Sarni 337 Defining Display FUNCIONS iiscsctciciaiestsiaiegianiinitiwaniieinecdicmiids 339 Using a Custom Display FUNGON rsss iscusi 340 RSS Collection FUNCTION 0 c ccnssetceceeecsienenereseneninanenenees 341 XML Collection FuUriGu iy sssccsessscissvscccacicccscicesinesiteracsenesinens 343 Random CONG ssissssenecsccserscexssaceceneaascaensnasennnenessenscanenanecenes 348 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 xiv Random SUMMALY siccscscsccssiscesscenecaseessenensnensnnssencenscanenaneaanss 349 Event Calendar Functiion csssssssseccessseeeeeeeeeseeeeees 350 Event Calendar Style Sheet csssseccccseseeeeeeseseeeeeeeeeseeeees 350 Event Calendar Samipl es icccncictnccteccsctecsccecececteceecectheeecctsceseescels 351 Calendar FUR CHO Ms mesiismo 353 Gale dar Styl SU ssh neeaaeaii 355 Event Calendar Sample isssccaiccnncsccccccnctncencncencnceaeseanaccntseancsccncss 355 Form FUNCHION sscseccsestsccadassenscactsscncaniainssenetsnusatsenscacissnscacananes 357 MultiPurpose Function sssini 360 Metadata FURCHON issindinscicntinssicntinasnsciusaieraincddnntinatinnteantiontin 361 Creating an hem List sicccie ct tcc 361 ecmMetadata Example cccccccsssssseeesseceeeeeesenseseeneeeenoeseeees 362 More ecmMetadata Examples cc
282. ns 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 27 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 5 0 Revision 8 352 Custom ASP Functions 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 Display Type 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 350 The ecmCalendar function attributes are explained below Attribute Description id The id argument represents the ID number of the event calendar in the 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 5 0 Revision 8 353 Custom ASP Functions Attribute Description DisplayType Specify the Calendar dis
283. nt Block For a description of the Content Block function see ContentBlock Server Control on page 71 To insert a content block 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 The Insert Content box is displayed Ektron CMS400 Content control Displays and manages a content block Control ID ontentBlock1 Select the category to retrieve list of content _ v l SR Select the content block to insert into the page v Dynamic Content Parameter None v Hide O Visible Positioning info GridLayout Style leave blank if none Wrap tag Span v 3 Use the following table to help you insert a content block Field Description Control ID 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 Ektron CMS400 NET Develop
284. nt 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 345 Custom ASP Functions XML Tags Description 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 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 contained 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 5 0 Revision 8 346 Custom ASP Functions
285. nt 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 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 CMS400Example 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 343 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 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 exampl
286. nt type selection box The instructions cell for event type control The following example shows the selection box in red e ae i i i 4 5 amp Li ttot Gans 2 ro Po P u a e background c5daef Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 160 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 Xslt e Products o RC Cars a RC Cheetah a RC Sportster o RC Planes a RC Lily 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 DhtmiMenu Server Control on page 161 e Menu Server Control Properties on page 162 e Using DisplayXslt Samples on page 164 Menu Server Control vs DhtmilMenu 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 161 With the DhtmIMenu Server Control you display a dynamic menu with drop down boxes and submenus You manipulate DhtmlMenus
287. nual Version 5 0 Revision 8 246 Dreamweaver Extension Support Move the blinking cursor to the area that you want to place it From the list of Ektron CMS400 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 Metadatalist1 Select the folder or fill it in above Recursive Order By Max Number of results ExactPhrase KeyWordName KeyWordValue Display Type Dynamic Content Parameter GetHtml Content Type Hide Visible Positioning info GridLayout Style Wrap tag v Ascending v 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 FolderID 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 5 0 Revision 8 247 Dreamweaver Extension Support 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 w
288. ny 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 warranty 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
289. o 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 5 0 Revision 8 139 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 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 Referenc
290. o 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 5 0 Revision 8 102 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 XML configuration Integer whose indexed fields will appear on the search screen SearchParmXML Property The SearchParmXML property is used to create a predefined XML search whose results appear upon page
291. ock and passes the DefaultID value as the id argument If the DefaultID value is zero 0 eemContentBlock is not called Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 360 Metadata Function Custom ASP Functions 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 ltemList Sparei gt The attributes are described below Creating an Item List The Item List for the ecmMetadata tag has the following format Attribute Description Required ItemList List of the content block ID numbers and No exclusions See Also Creating an Item List on page 361 and Item List on page 366 Spare Not yet implemented See Also Spare 1 MUST BE on page 368 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 ID of the content block whose metadata you want to retrieve Yes Block ID Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 361 Custom ASP Functions Attribute Description Required Separator Sep
292. odeCustomTags 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 important 10 Save the file You are now ready to Install the Ektron CMS400 NET extension See Also Installing the Extension on page 204 Installing the Extension Before you can insert the Ektron CMS400 NET custom functions through Dreamweaver you must install the extension Listed below are the steps to install the extension NOTE For additional information about installing an extension refer to your Dreamweaver Manual To Install the extension follow these steps Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 204 Dreamweaver Extension Support 1 Begin by following the path in Dreamweaver Commands gt Manage Extensions J Macromedia Dreamweaver MX Untitled Document Untitled 1 File Edit View Insert Modify Text emnucunni Site Window Help Start Recording trl Shift jioata q Fer Play Reco rded Comman d amp oe hs ES 4 Edit Command List l9 2 2 mE Title Untitled D Get More Commands ani Manage Ex
293. of New England s Fastest Growing Technology Companies Ektron S id 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 Dev _ Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 96 IndexSearch Server Control Use the IndexSearch Server Control to display an XML configuration 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 Price Between Iha o o LastName Jones Paperback _ Publishdate Select fe Title Contains cms 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 IndexSearch Server Control vs Search Server Control on page 98 e IndexSearch Server Control Properties on page 98 e SearchParmXML Property on page 103 e Using the IndexSearch Server Control Programmatically Example on page 106 Ektron CMS400 NET Developer Reference Manual V
294. of information Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 197 BreadCrumb Server Control The BreadCrumb Server Control creates a breadcrumb trail of visited pages for your site visitors This gives them the ability to navigate back to Web pages they have already visited The breadcrumb trail can appear vertically or horizontally on a Web page You can define how many breadcrumbs are left for your Web site users to navigate back You can also use an icon and Alt text instead of using text only to display the breadcrumb trail Breadcrumb Trail Type Example Horizontal with Text Only Dev gt WebForm gt pr gt FAQ gt Meta Horizontal with Icons Horizontal with Icons and Alt Text Vertical with Text Only gt Dev gt WebForm gt pr gt FAQ gt Meta Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 198 Breadcrumb Trail Type Example Vertical with Icons o m lt Y Vv FAQ Vv v Vertical with Icons and Alt Text DEV gt Vv FAQ gt Vv a A BreadCrumb Server Control should be added to every Web page in your Web site This ensures that a breadcrumb trail is created for each Web page a user visits Each BreadCrumb Server Control on your site can be set up to individually For example you might want the breadcrumb trail appear horizontally on one Web page and vertically on anot
295. 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 5 0 Revision 8 311 Custom ASP Functions XML List Summary Function The XML List Summary function wraps XML around the properties of a list of content thats 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 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 See Also Recursive on page 308 Description Options Folder This is the folder the summary information will come from Any folder See Also Starting Folder on page 307 Recursive Allow the tag to get summary info from the child folders 0 Not Recursive 1 Recursive OrderBy ASC DESC Order the hyperlinks by See Also Order By on page 309 DateModified DateCreated Startdate AuthorFname AuthorLname Title Order the hyperlinks in ascending or descending order Title asc Title desc
296. ol lets users search XML content on your Web site For more information on the IndexSearch Server Control see IndexSearch Server Control on page 97 Search Server Control Properties The following table explains the properties of the Search Server NOTE 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 Net help are in a row Horizontal or a column Vertical or horizontal Property Description Data Type For more information see Authenticated Indicates if you are logged in to String Using CMS Explorer the CMS Explorer and can use it to Browse Your Ektron to browse to the folder needed CMS400 NET Site on for the FolderPath property page 32 ButtonImgSrc If you want to display an image String Button Image Source on the submit button enter the Examples on page 91 server path to it ButtonText The text used for the button if no String Search Button Text image source is identified If an Examples on page 92 image source is identified this is alternative text for the button Display Determines if the search options either vertical Display Examples on page 93 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 86 Property Description Data Type For more information see
297. older 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 326 Custom ASP Functions Value Summaries sorted by DateModified date modified Date Created date created Startdate 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 asc 1 This will order the Summaries in an ascending order 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
298. ols Programmatically on page 33 e Using Drag amp Drop and Programmatically Together on page 51 e Data Binding with Server Controls on page 53 e Caching with Server Controls on page 59 e List of Server Controls on page 61 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 e http localhost CMS400Example Developer aspx Replace localhost with the webroot where you installed the Example site Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 24 Introduction to Ektron CMS400 NET Server Controls 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 localhost CMS400Example CMS400Example sin The sample site project opens To work on a template page click it from the Solution Explorer leah Ae Z E article aspx _ ssemblyInfo vb BobsTest aspx calendar aspx corporate aspx Al default css Aj DHTML_Menu_Styles css Al ekcalendar css E employee_information aspx E hr aspx hr_forms aspx a lw Solution Explo 2 Class view rs Search Properties A x corporate aspx File Properties gt EOG E
299. om Content function in ASP See Random Content on page 121 for details Random Summary Function Slmilar to the random content function the random summary function can 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 Tp This function is basically the same as the Random Summary function in ASP See Random Summary on page 122 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 382 Custom ColdFusion Functions FontSize Horizontal This function is basically the same as the Search function in ASP See Search Function on page 77 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 t
300. on 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 WebForms Sub menu Root Menu Sitemap False Submenu appears below the root menu Root Menu gt Company Directory Company Policies Submenu Company Calendar Latest Changes 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 root menu This property appears in the Appearance category Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 256 Dreamweaver Extension Support Field Description 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 CMS Developer Exam
301. 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 5 0 Revision 8 155 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 Ws May 2005 tun gt 5 5 2005 Sun Mon Tue Wed Thu Fri sat Hockey Game Location VWA si 2is ielslelz 8 9g 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 23 Manchester Monarchs take on ae the Portland Pirates 2004 2005 2006 e background eeeeece 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 2i3 s eme 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 20
302. on 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 Preview Preview Off Turns off preview mode Preview Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 276 Custom ASP Functions 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 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 5 0 Revision 8 277 Custom ASP Functions 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 ecmContentBloc
303. online Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 221 Dreamweaver Extension Support 4 Click insert A graphic indicates the static content block s location on the template commn AEAEE 4 ARAID A 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 Inserting a Collection For a description of the Collection function see Collection Server Control on page 120 To insert a collection Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 222 Dreamweaver Extension Support Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET Functions click Collection The Insert Ektron Collection box is displayed Insert Ektron CMS400 Collection Tag Select the collection to insert into the page Dynamic Content Parameter Dynamic Collection Parameter in eee i an Hide Visible Positioning info GridLayout Style E l leave blank if none 3 Use the following table to assist you with inserting a Collection Field Description Control ID A unique name for the function you are inserting Collection ID If you know the collection ID enter it into the textbox If you do not know the Collection ID you can naviga
304. 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 Net help NOTE 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 32 String DefaultContentID DynamicParameter Hide 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 32 Select None Use Default This parameter is used for dynamic content blocks Used to hide a content block in design time and run time True Hide content block False Show content block Integer String Boolean Language Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Integer Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 72 Property Value Data T
305. ons 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 DropNextGenMenu Then place propNextGenMenu aS needed to implement individual menus Follow these steps to display a menu on a Web template Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 370 Custom ASP Functions 1 Place the following code directly after the page s lt body gt tag lt ecmDHTML_GenerateNextGenMenu menu id number gt F
306. ontain 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 5 0 Revision 8 142 Style Class Description Attributes and Default Settings mv_DateCellWeekend The cells where the numerical weekend days appear The following example shows the date 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
307. ontrol lets you consume and display an RSS feed on your Web site See Also RssAggregator Server Control on page 194 e The BreadCrumb Server Control creates a trail of Web pages for your site visitors to follow See Also BreadCrumb Server Control on page 198 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 i What s New in the 5 0 Release Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 ii Summary Table of Contents What s New in the 5 0 Release ccccccsseeeseeesenneeeeeneees i TOUTE THIS TG ssc cscs secsctctccseccecaceccetzcceteenieccstaetsieiies 1 CHEUNG A WED Sil ciiccciscccisccsiisnssisrencevccciacticzesstenieeerenrenssins 2 Creating a Web Application Using Microsoft Visual Studio NET meni a Site Using Macromedia Dreamweaver MX 2004 7 Introduction to Ektron CMS400 NET Server Controls 24 Opening the Sample Project ssssssecesssseeeeeessseeeeeeessneeeees 25 Setting LA Template ccsa 26 Making the Server Controls Available ccsssscessseeeees 27 Inserting Server Controls Using Drag and Drop 0 29 Inserting Server Controls Programmatically s secee 33 Using Drag amp Drop and Programmatically Together 51 Data Binding with Server Controls ccseccccesseeeeeeeeeneeeneees 53 Caching with Server Controls ccccccssssseeeseeeeeeeeeeeeeesensees 59 LIST OF Server CORT S sisisi aii 61 LOGIN Se
308. oper Reference Manual Version 5 0 Revision 8 436 Web Services 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 441 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 441 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 that is the gen erateHTML Menu value e Menuld required menuid e title required title Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 437 Web Services GetFormBlock ecmFormBlock Form information as an Parameters HTML string e formid e formdata gener ated thr
309. or 0033AA e font family Arial e font size 1ipt e font weight bold e text align center Month View month Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 137 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 5 0 Revision 8 138 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 oat 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 S
310. or 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 If the user clicks textto 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 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 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 E
311. or last names in ascending or descending order Max Number This attrioute 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 5 0 Revision 8 327 Custom ASP Functions 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 Working 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 ecm
312. orm id Forml method post runat server OnSubmit EkFmValidate this gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 84 Search Server Control The Search Server Control displays a text box with a search button on the template To learn about which content is considered by this search function see the Ektron CMS400 NET Administrator manual section Searching Content on the Web Site When added to a template and visited the Search Server Control looks like this Users can enter text and click the search button to search for XHTML content on the Web site DE Search all the words Any of the words Exact Phrase D Match Partial Words This subsection contains the following topics Search Server Control vs IndexSearch Server Control on page 86 e Search Server Control Properties on page 86 e Search Server Control Property Example on page 89 e Text Box Examples on page 90 e Button Image Source Examples on page 91 e Search Button Text Examples on page 92 e Display Examples on page 93 e ShowDate Examples on page 93 e Specify Search Control To Display Search Results on a Separate Page on page 94 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 85 Search Server Control vs IndexSearch Server Control The Search Server Control lets users search your Web site for XHTML Content The IndexSearch Server Contr
313. ormance 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 59 Introduction to Ektron CMS400 NET Server Controls 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 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 3 Next to Time is add a literal p Debug Times New Roman Refresh the page The page will cache for 20 seconds when not logged in Time is Literal Literal Below that add a ContentBlock Server Control 5 Set the DefaultContentID For this example DefaultContentID
314. ote site on the server should have exactly the same structure NOTE If Dreamweaver is used to upload the site it automatically replicates the file structure of the local root folder on the server Steps to Define a Folder for Use as a Local Site To define the folder as the local root folder in Dreamweaver do the following 1 On the welcome screen click Dreamweaver Site d Open a Recent Item Create New Create from Samples i mytestsite nested htm i HTML B CSS Style Sheets i Templates main dwt a ColdFusion O Framesets i mytestsite from_main htm PHP Page Designs CSS i 00Example default aspx ASP JavaScript O Page Designs Example Untitled 1 aspx i ASP VBScript O Page Designs Accessible a ample menudhtml aspx ia ASP NET C i ple MetaServerCtl_aspx ASP NET VB Extend xample FormBlock aspx ia JSP Dreamweaver Exchange a mple LanguageAPI aspx CSS ia mple loginexample aspx O Open O More Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 9 Creating a Web Site Or Click Site gt Manage Site gt New gt Site 2 Enter the name of your site in the text box A site in Macromedia Dreamweaver MX 2004 is a collection of files and folders that corresponds to a website on a server What would you like to name your site MyFirstSite Example mySite 3 Click Next Click the Yes want to use server technology radio button 5 Choose
315. ough webservicesUI e formtag required flag set to true to embed lt form gt tag oth erwise 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 ShowRandomContent ecmShowRandomCon Randomly displays the e collection ID tent content of a content block in a specified collection e xsitID Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 438 Web Services AddContent ecmAddContent Lets you programmatically add a new content block to Ektron CMS400 without logging in Username password Domain 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 webroot CMS400 Example Workarea webservices ContentWS asmx lists the methods described in the table above Click each method on the page to see sample calls and output using various protocols 439 Web Services When you open the detail page you see Test followed by parameters Click here for a complete list of operations GetContentBlock Test To test the operation using the HTTP GE
316. owing Microsoft Web site http msdn microsoft com library default asp url library en us vbcon html vbconintroductiontowebprojects asp In this section the following is explained e Creating a Web Project on page 4 e Using Web Forms on page 6 This section does not explain the use of Ektron CMS400 NET Server Controls when building a Microsoft Visual Studio NET Web Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 3 Creating a Web Site Application For information on Ektron CMS400 NET Server Controls see Introduction to Ektron CMS400 NET Server Controls on page 24 IMPORTANT Ektron CMS400 NET Server Controls are an integral part of using Ektron CMS400 NET and Microsoft Visual Studio NET together After completing this section read Introduction to Ektron CMS400 NET Server Controls on page 24 Creating a Web Project The Web server on which your project exists can be on either a local or remote computer Steps to Create a Web Project 1 Click File gt New gt Project to display the New Project dialog box 2 Inthe Project Types pane select either Visual Basic or Visual C 3 Inthe Templates pane select ASP NET Web Application In the Location text box specify the URL where you want to place the Web project including the name you want to give it For example to create a project titled MyFirstWebApp at the default localhost location Insert the following URL string in th
317. p msdn microsoft com library default asp url library en us dndotnet html introwebforms asp Creating a Site Using Macromedia Dreamweaver MX 2004 NOTE The information in this section has been copied from the Macromedia Web site It appears on the following Web page http www macromedia com cfusion knowledgebase index cfm id tn_ 14567 The information has been modified by Ektron Inc to discuss NET instead of Coldfusion and has been updated to reflect Macromedia Dreamweaver MX 2004 instead of Macromedia Dreamweaver 3 0 You can easily create a web site with Macromedia Dreamweaver MX 2004 This section discusses e creating a site e creating files e creating a template e applying the template e viewing the site This chapter does not explain the use of Ektron CMS400 NET functions when building a Dreamweaver site For Information on Ektron CMS400 NET functions in Dreamweaver see Dreamweaver Extension Support on page 203 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 7 Creating a Web Site IMPORTANT Ektron CMS400 NET Dreamweaver functions are an integral part of using Ektron CMS400 NET and Dreamweaver together After completing this section read Dreamweaver Extension Support on page 203 The process of creating a basic site in Macromedia Dreamweaver MX 2004 can be broken down into the following six segments e Defining a Local Site on page 9 e Building the Site Map in the
318. param name Attributes endStyle default gt lt cfset LocalError gt lt cfobject class CMS400 NETContentBrv2 CMS400 NETContent Action Create name cmsObj gt lt cfset cNavs 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 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 ckit gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 389 Custom ColdFusion Functions lt cfelse gt lt cfset nString nString amp nav Item ContentLinks gt lt cfif gt lt cfset nString nString amp gt lt cfif len Attributes target gt lt cfset nString nString amp target _ amp Attributes target amp gt lt cfif gt lt cfset nString nString amp gt gt lt cfif len Attributes startStyle gt lt cfset nString nString amp Attributes startStyle gt lt cfif gt lt cfset nString nString amp nav Item ContentTitle gt lt cfif len Attributes endStyle gt
319. plates select Item gt lt UL gt lt xsl template gt lt xsl template match Item gt lt xsl iparam name pItemLink gt lt xsl value of select ItemLink gt lt xsl param gt lt xsl choose gt lt xsl whentest ItemLink gt lt LI gt lt xsl value of select ItemTitle gt lt xsl apply templates select Item Menu gt lt LI gt lt xsl when gt lt xsl otherwise gt lt LI gt lt A gt lt xsl choose gt lt xsl whentest ItemType ExternalLink gt lt xsl iattribute name href gt lt xsl value of select ItemLink gt lt xsliattribute gt lt xsl value of select ItemTitle gt lt xsl when gt lt xsl whentest ItemType Javascript gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 166 lt xsl attribute name onClick gt Javascript lt xsl value of select ItemLink gt lt xsl attribute gt lt xsl attribute name href gt lt xsl attribute gt lt xsl value of select ItemTitle gt lt xsl when gt lt xsl otherwise gt lt xsl iattribute name href gt lt xsl value of select concat ItemLink gt lt xsl attribute gt lt xsl value of select ItemTitle gt lt xsl otherwise gt lt xsl choose gt lt A gt lt xsl apply templates select Item Menu gt lt LI gt lt xsl otherwise gt lt xsl choose gt lt xsl template gt lt xsl template name maketitle gt lt xsl choose gt lt xsl whentest ItemLink gt lt xsl v
320. play type e Month A 30 day calendar month view gare w u o oth hockey arena Beckotbat gare tbat Ww n n n n n e Day Single day view e inline Display events that occur from the start date of the calendar through the end date Sunday May 01 2005 Saturday July 30 2005 soms omy gime we SeeTOO RM Kectn25 Pu ran sarot ksectoru e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt Apr May 2005 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu fri set Hockey game 5 r Location VWA 2 j 8 7 Sean 7 00 PM e 1 t2 13 14 End 10 30PM 1s 16 17 18 19 20 29 z z2 z 2s 2 27 28 2 30 31 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 354 Custom ASP Functions Calendar Style Sheet Before you insert an event Calendar into your Ektron CMS400 NET template you should make a reference to the style sheet cms400example 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 td gt lt tr gt When this code is displayed in a browser the Calendar with an ID of 1 and DisplayType of MonthUpWithE vent is displayed Here is the ca
321. playDateModified gt lt DisplayEndDate gt lt DisplayEndDate gt lt Content gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 316 Custom ASP Functions 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 Spare Spare2 gt This function has the same parameters as the List Summary Function See List Summary Function on page 304 for details Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 317 Custom ASP Functions 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 ContentlD ShowSummary Stylelnfo Showlnfo Spare
322. ple 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 195 3 Build the Web form Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 196 4 Browse to the Web page in your browser Address http flocalhost CMS400Example webform aspx 4 Go Links 4 EktronNet Welcome 4 Ektron Inc CMS400 Example 4 Welcome to RC International 2 iTunes Top 10 Songs iTunes Music Store Today s Top 10 Songs 1 These Boots Are Made for Walkin Radio Edit Jessica Simpson q 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 y 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 Best of You Foo Fighters Best of You by Foo Fighters from the album In Your Honor Bonus Video Version TNan t Dhonk With Mir Heart Rlacl Hued Deac v 5 The page appears with an RSS list
323. ple set to 30 SubMenultemWidth Sets the width of each submenu item in pixels The Default is 150 Example set to 150 Example set to 130 CMS Developer 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 Book a ASP NET Unleashed News gt Proaramming C NET VB NET How to Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 257 Dreamweaver Extension Support Field Description MenuStyle A specified inline style that defines the root menu For example 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 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 CMS400Example Workarea csslib For more information on style sheets see Using a Style Sheet on page 183 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
324. 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 5 0 Revision 8 237 Dreamweaver Extension Support 4 When completed click insert A graphic defines where the calendar appears on your template CalendarAPI aspx lt 2 Code spit La Design af Title WebForm2 ze mM c B Y gt lt form id Form1 method post runat server gt lt P gt amp nbsp lt cms Calendar id Calendar1 DefaultCalendarID 1 runat server gt lt cms Calendar gt lt P gt Shown below is an example of the code that is inserted Platform Code View NET lt coms Calendar id Calendarl DefaultCalendarID 1 runat server gt lt cms Calendar gt Inserting a Form For a description of the Form function see FormBlock Server Control on page 81 To insert a form Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 238 Insert Ektron CMS400 Form Dreamweaver Extension Support 1 Move the blinking
325. 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 Explorer to Browse Your Ektron CMS400 NET Site on page 32 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 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 Using the MetaData Server Control These steps show how to use the 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 187 lt cms 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
326. r 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 AcmeExampletech 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 mycoi1 dim MyColl as New Collection or dim MyColl as new Ektron Cms Controls Collection With C use this syntax Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 35 Introduction to Ektron CMS400 NET Server Controls 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 61 Another example would be Dim MyMdl as New MetaDataList Step 3 Set the Properties NOTE For descriptions of the properties and how to use them see Server Control Properties in Code Behind on page 38 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 1 or dim MyColl as new Ektron Cms Controls Collection MyColl DefaultCollectionID 1 With C use this synta
327. r 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 e Displaying Properties for a Control on page 38 e Mutual Server Control Properties in Code Behind on page 39 e Accessing Additional Properties on page 41 e Accessing Items in an Array on page 47 e Referencing the Page Property on page 47 Displaying Properties for a Control You can use Visual Studio NET 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 38 Introduction to Ektron CMS400 NET Server Controls 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 End Sub tas DefaultCollectionID End Class Dispose A Public Property DefaultCollectionID 4s Integer ES DynamicParameter eS Enabled ES EnableVviewState g 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 61 To learn about native VS NET properties see its documentation The property s tooltip
328. r 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 Horizontal 0 gt lt td gt lt tr gt 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 383 Custom ColdFusion Functions This function is basically the same as the Search Display function in ASP See Search Display Function on page 87 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 Re
329. r gt lt td gt lt b gt Raw HTML or XML from GetContentBlock Web Service lt b gt lt td gt lt tr gt strHTML strHIML 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 Processed 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 strHTML strHTML amp lt table gt Earlier in the news aspx vb file the strprocessedHtm1 variable was defined aS strprocessedHtml wsCms400WebService ContentBlock iId So the strProcessedHtml variable uses the wsCms 400WebService 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 451 Web Services 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
330. r implementing it The ColdFusion examples are below lt cfmodule template request ecm AppPath ecmMetadata cfm ItemList 1 2 gt fj metadata 1 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 cmMs400 Sample web site cms400 Login Information lt Tit le gt lt meta name Keywords content CMS400 content management solution business users developers benefits Ektron login gt lt head gt lt body gt ptt fi lt html gt lt cfmodule template request ecm AppPath ecmMetadata cfm Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 399 Custom ColdFusion Functions ItemList 1 title 2 keywords gt fj metadata 1 Notepad mE 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 cmMs400 Login Information lt Tit le gt lt meta name Keywords content CMS400 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 amp i metadata 2 Notepad ioj xi File Edit Format Help lt DOCTYPE HTML PUBLIC _ w3C DTD HTML 4 0 Transitional EN gt lt Title gt cmMs400 Sample web site lt Title gt lt met
331. r style For documentation of these properties see VisualStudio Net 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 32 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 32 DynamicParameter Select id When you do this server control uses the String content block passed as a URL parameter Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 74 Property Value Data Type Hide Used to hide a content block in design time and run Boolean time True Hide content block False Show content block Language Design time only View content blocks collections etc Integer in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list OverrideXslt Ignore for a non XML content block must be one of these values default o
332. r the last breadcrumb item appears as a hyperlink True Last item as hyperlink False Last item as test Boolean LinkTarget Set whether the link opens up in the same window a parent window a new window or a parent frame when a user clicks a breadcrumb link The default _ self _Self Opens in the same window _Top Opens in parent window _Blank Opens in new window _Parent opens in the parent frame String Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 200 The default gt greater than Property Value Data Type Maxltems The maximum amount of items displayed in the Integer breadcrumb trail The default 5 Zero 0 Unlimited breadcrumb items Separator What separates the items in the breadcrumb trail String Dev gt vebForm Using the BreadCrumb Server Control To use the BreadCrumb Server Control you need to add it to each Web form for which you want to create a breadcrumb trail NOTE These steps show how to use the BreadCrumb Server Control 1 Drag an drop the BreadCrumb Server Control onto a Web form for which you want to create a breadcrumb trail Set the following property DisplayTitle Choose a name for the Web form that appears in the breadcrumb trail when a user views the web page If you would like to customize the look of your breadcrumb trail you can do so by configuring any of the other properties For mo
333. r to Browse Your Ektron CMS400 NET Site on page 32 Integer DisplayXslt The Xslt to use to render the menu 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 164 String DynamicParameter Select menu_id When you do this server control uses the menu passed as a URL parameter String Hide Language Used to hide a menu in design time and run time True Hide menu False Show menu Design time only View content blocks collections etc in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Boolean Integer 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 Ektron
334. rammatically Exam a E T T E E E E E 124 Calendar Server Control ccccccsssssseeeeeeseeeseeeeeeeeeeeeenenneees 127 Calendar Server Control Properties eccsssseeeeeesseeeees 129 Calendar Style SWeet asec acsc ccc cc ccacacccecedac scccececancececsncancwenrencancens 133 calendarStyles css Class DeSCription ccccccceceeeeeeeeeseeeeees 133 Single Day View IDA lt cctescinececctatcadnsaccdedastrevcecedsstncncnesaiaabieree 133 Momi View MOM scscssscscetsedusececersedunccecceredangccecerpdanaceecertnstess 137 Re VIEN ININE hossain 149 Month Up with Event monthupwithevent seeesseeeeeeeeeeeen 151 Event Type Control used in month display ceeeeeee 158 Menu Server COM Ol siiiistaticcnsstoninariecemnarerrineenemnton 161 Menu Server Control vs DhtmiMenu Server Control 161 Menu Server Control PropertieS ccsssseeccseseeeeeseseeeees 162 Using DisplayXslt Samples ccccsssseecceeeeeeeeeeseeeeeeeeeeeeeeees 164 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 xi Sample Mlelg Ueerererersereree errno rer a Uoeene rrr cht reer cite reer 164 SampleMenu XSL COJE oiiire iin 165 TreeMenUssinaersrnaranna eaa 167 TreeMenu XSL COG Si ccct18 xt scezascectucccontceateaeecitetad aeeaanitededenaaaits 169 DhtmlMenu Server Control ceeseseeeeeeseseeeeeeeeeeeeees 178 Menu Server Control vs DhtmiMenu Server Control 179 DhtmIMenu Server Cont
335. rch box does not appear on PostBack 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 233 Dreamweaver Extension Support Field Description Hide Used to hide a search in design time and run time Checked Hide search Unchecked Show search 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 Unchecked Show function Note If Hide and Visible are both checked the property is hidden PostResultsAt The path of the Web page where the search results will be posted 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 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 ButtonImgSrc If you wish to use an image for the search button insert the location of the image in this field If no image is specified a standard submit button is used ButtonText The button text is the text that is displ
336. re information on the BreadCrumb Server Control properties see BreadCrumb Server Control Properties on page 199 3 Save the Web form Repeat steps one through three for all the Web forms to be included in the breadcrumb trail 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 201 8 As you move around the names of the pages are added to the breadcrumb trail CMS400 Navigation Microsoft Internet Explore Bf File Edit View Favorites Tools Help ay Address http localhost CMS400Example Dev aspx v Go PR gt FAQ gt Search gt Meta gt Dev CMs4Q00 net eas 8 a ak Fb 2 MSS 2st S65 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 202 Dreamweaver Extension Support Dreamweaver Extension Support Requirements 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 The following sections are contained in this chapter e Requirements on page 203 e Preparing Dreamweaver for Ektron CMS400 NET Functions on page 203 e
337. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 291 Custom ASP Functions When added to a template and visited the search tag will appear similar to the following Support News Careers Search Calendar ron Search All the words Any of the words Exact Phrase D Match Partial Words 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 Ne 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 292 Target Page NOTE Text Box Custom ASP Functions Value Search begins in 1 Recursive search wi
338. rence Manual Version 5 0 Revision 8 342 Custom ASP 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 343 Custom ASP Functions When using the XML Collection function the following tags are created around the properties of each item in the collection XML Tags Description lt Conte
339. rence Manual Version 5 0 Revision 8 395 Custom ColdFusion Functions Attribute Description DisplayType Specify the Calendar display type e Month A 30 day calendar month view I ee 2 19 Quer if 1 2 o uen hoc srana trota gare tbat Ww n n E Ki 5 EJ e Day Single day view RIRA e inline Display events that occur from the start date of the calendar through the end date Sunday May 01 2005 Saturday July 30 2005 32005 Honey gwae wa SeaT Cory Estier sams Yah S2see at oreo High Sonon cuczoorM Ceeerere e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt Apr May 2005 0 Jun gt gt 5 5 2005 Sun Mon Tue Wed Thu Pril set Hockey game 1 2 3 4 5 617 Stst700Pm a s 1 11 12 93 14 End 10 30PM 15 16 17 18 20 20 2 2 24 25 26 27 28 JEJE Here is a sample of the Event Calendar syntax Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 396 Custom ColdFusion Functions 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 IMPORTANT lt tr gt lt td gt The ecmFormBlock function displays an HTML form content block For more informatio
340. replacing MyDisplayFunct ion with the function you created Case html MyDisplayFunction MyDisplayFunction cInfo 4 Save and close the file 339 Custom ASP Functions With the display function defined and added to the ecmCollection function as a new case you are ready to use the display function to define how collections look Using a Custom Display Function To use a custom display function follow these steps 1 Add the ecmCollection function to a template 2 Specify the ID of the collection to be displayed 3 Add the display function to define the collection s appearance lt ecmCollection 2 MyDisplayFunction gt When displayed on the Web site the collection looks like the following e Plastic Molder 123 RC International is looking for an experienced plastics molder e 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 5 0 Revision 8 340 Custom ASP Functions 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 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 ecmRssCollect
341. rm Tags on page 84 Language Design time only View content blocks collections etc Integer in different languages Note The language property shows results only in design time in Visual Studio and does not affect the site Content on the site is managed by a cookie value that is set by selecting a language from the dropdown list Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 83 Property Value Data Type 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 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 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 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 f
342. rol Properties cccssseeccseseeees 179 Sings Style SMOG sees ctscerccscerecrescaset cess Ea 183 MetaData Server Control ccccccccsseeseeeeeeeeeeeseeeeeeeneeeeeeeeeeees 186 MetaData Server Control vs MetaDataList Server Control 186 MetaData Server Control Properties eccccseseeeeeeeseeeeeees 186 Using the MetaData Server Control eeeeeeeseeseeeeessenees 187 MetaDataList Server Control eeeeeeeeeeeeeeeeeeeeeeeeeeees 189 MetaData Server Control vs MetaDataList Server Control 190 MetaDataList Server Control Properties sssccessseeeees 190 RssAggregator Server Control sssssseseeeeeeeeeeeeeeeeeeeeees 194 RSSAggregator Server Control Properties cs sseeee 195 Using the RssAggregator Server Control ccesssseeeees 196 BreadCrumb Server Control eeeeeeesssseeeeeeeeeeeeeeeees 198 BreadCrumb Server Control Properties ccesssseeeeees 199 Using the BreadCrumb Server Control ccsssseeeeeeseeeeeees 201 Dreamweaver Extension Suppott eseeeee 203 PRG CHOU INNING scents cet ccsceeeeeceere cde cane reneduenecetners 203 Preparing Dreamweaver for Ektron CMS400 NET Functions 203 Installing the EXIGNSION osscscscesteieisatecsadtsnerssressaeadscncseantercudecteae 204 gt a ee ce ee eee eres nearer err ee 208 Using the Ektron CMS400 NET Extension cccesseeeeeees 210 Custom Function Sy
343. ron CMS400 NET standard menu into the template Inserting a Standard Menu on page 250 DHTML Menu Inserts an Ektron CMS400 NET DHTML menu into the template Inserting a DHTML Menu on page 253 Language Select Inserts an Ektron CMS400 NET language select box into the template Inserting a Language Select Box on page 258 Language API Inserts an Ektron CMS400 NET Language API into the template Inserting a Language API on page 260 Inserting Custom Functions CMS Function The CMS Function commands let you insert standard Ektron CMS400 NET display functions into your template Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 216 Dreamweaver Extension Support Accessing CMS Content Functions To access the CMS Content commands menu follow this path Commands gt Ektron CMS400 NET gt CMS Function A list of all CMS Content functions that can be inserted is displayed Create Web Photo Album Set Color Scheme a at Tat ing 0 bordercolor 336699 bgcolor SEXY set CMS Function Content a aaa al atta Collection List Summary Metadata Search Calendar XML Index Search Display by Meta Value Form Standard Menu DHTML Menu Language Select Language API RRNA RAR A SSRN SSRN SRNR SARS R SSRN ESS SSSR NESSES SSSR ASSN SESS NESS NESSES ETE SR SSAS SSSR S SESS SNES SESS SSSR SENSE ESS SNES SESS SSE S S
344. roperly Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 229 Dreamweaver Extension Support 2 From the list of Ektron CMS400 NET Functions click on Metadata The Insert Ektron Metadata box is displayed Insert Ektron CMS400 metadata control Select the category to retrieve list of content Select the co content block to insert into the page 3 eee aaa Dynamic Content Parameter None 3 Use the following table to assist you with inserting metadata Field Description Control ID A unique name for the function you are inserting 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 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 Gets or sets the QueryString parameter to read a content ID Parameter dynamically 4 When completed click insert 5 The following line appears in the lt body gt of the HTML code lt cms MetaDa
345. rs Text Box Examples Value Web Page View Search All the words C Any of the words Exact Phrase I Match Partial Words 50 ooo Search All the words C Any of the words Exact Phrase I Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 90 Button Image Source Examples Value Web Page View blank E m Search All the words C Any of the words Exact Phrase I Match Partial Words search jpg Search 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 Any of the words Exact Phrase I Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 91 Search Button Text Examples Value Web Page View Click Me to Search Click Me to Search All the words C Any of the words C Exact Phrase I Match Partial Words Click Me to Search Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 Exact Phrase I Match Partial Words 92 Display Examples Value Web Page View Vertical o 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 ShowDate Ex
346. rsion 5 0 Revision 8 79 Literall Text MyContentBlock EkItem Title Literal2 Text MyContentBlock EkItem Html Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 80 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 81 Absence Request Form Name E mail Address Position Department Select Department gt Reason For Floating Holiday Absence C Vacation Sick Leave C FMLA Other D f Absence Immdd yyyy to rmiddiyyyy Total Days c_ Absent With Pay Without Pay Comments a This subsection contains the following topics e FormBlock Server Control Properties on page 82 e Automatic versus Manual Generation of Form Tags on page 84 FormBlock Server Control Properties The following table explains the properties of
347. rstWebApp 1 project sane GA MyFirstWebApp PES ka References ree E AssemblyInfo vb eas Global asax Ra ee Ad Styles css Bake a 53 Web config gan WebForm1 aspx File Properties co Eae Using Web Forms Web Forms and ASP NET were created to overcome some of the limitations of ASP These new strengths include e Separation of HTML interface from application logic e Arich set of server side controls that can detect the browser and send out appropriate markup language such as HTML e Less code to write due to the data binding capabilities of the new server side NET controls e Event based programming model that is familiar to Microsoft Visual Basic programmers Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 6 Creating a Web Site e Allows third parties to create controls that provide additional functionality For example the Ektron CMS400 NET Server Controls See Also Introduction to Ektron CMS400 NET Server Controls on page 24 On the surface Web Forms seem just like a workspace where you draw controls In reality they can do a whole lot more But normally you will just place any of the various controls onto the Web Form to create your UI The controls you use determine which properties events and methods you will get for each control There is an excellent step by step explanation of creating and using Web Forms located on the following Web page htt
348. rver Control iisnssctsssissaneanananiseadeanutadatasteaiviasennteanineans 63 Placing a LOGIN BUWOM wisissescccscessccccecresuccesennccccad ean inasnan gaans 63 Login Server Control Properties cccssseecccsssseeeeeseeeeeeeeees 64 LanguageSelect Server Control nnnnnnnnnnnnnnsnnnnnnnnnnnnnnnn 65 LanguageSelect Server Control vs LanguageAPI Server Con a A E E E E 65 LanguageSelect Server Control Properties s sseeeeeee 66 LanguageAPI Server Control cccccccssesseeeeeeeeeeeeeeeseceeeeeees 68 LanguageSelect Server Control vs LanguageAPI Server Con MOD csisstectes scan secansccaed acceccdteacacksdenesnacescetaanctercadsedaeacenesbextacucansestecaenas 68 LanguageAPI Server Control Properties sssssssseeeeeeeeees 68 Code Behind Only Properties 0ccsssseeeeesseeeeeeessseeneeeeens 69 ContentBlock Server Control cccccceesesseeeeeeeeeeeeeneeeees 71 Static Content BlOGk oisesscccassscccccasectcecscecectstatvadacesiansscactstensuaccucs 71 Dynamic Content BlOGK siiccse cece ccc ee 73 AML Content BlOGK vise sicssciccccssscstcssctncestertatesestesantestecucszcabeesatacens 76 Using the ContentBlock Server Control Programmatically Ex neo eel ee RE ee EE HEP Spe ern ene SE 79 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 iii FormBlock Server Control 2 0 cc0scceeceeccneceneceeceeseneceeeecesenees 81 FormBlock Server Control Properties
349. ry on your Web form and set your properties Toolbox a x Start Page eT Intranet WebForm5 asp Data ms pen ASP NET Unleashed Components i Content Management Bible um HTML for the World Wide Web with XHTML and CSS Cipboard Ring Microsoft ASP NET Programming with Microsoft Visual General C NET Ektron Server Controls a Si Visual Basic NET 2003 h Pointer Visual Basic NET How to Pros am EJ Calendar i Properties Collection f E ContentBlock l Fea FormBlock 72 4 B amp LanguageAPI a Ektron a Select ae Authenticated g ae ContentParameter cm Direction Rin i DisplayXslit Menu I FolderPath 33 MetaData i Hide Q MetaDataList f Language g Search i MaxResults OrderKey Random Recursive Then add ihe followirig 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 myString Next An Explanation of the code ListSummary1 is the ID of the object It is used to get access to its properties Create a string that contains the output myString Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 52 Introduction to Ektron CMS400 NET Server Controls Dim myString As String Set the object
350. s method post gt lt form gt When using ecmFormBlock 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 ecmFormBlockWithFormTag 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 360 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 357 Custom ASP Functions The id argument represents the form s ID number visible when viewing the form from the View Form screen View Form Email Contact Form Form Properties Form Title Email Contact Form Status Approved Published Description Here is an example of a form content block in an Ektron CMS400 NET template lt tr gt lt td gt lt ecmFormBlockWithFormTag 367 g
351. s properties The List Summary Server Control properties are described in this table This subsection contains the following topics e ListSummary Server Control Properties on page 115 e List Summary Example on page 119 e OrderKey Property on page 118 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 114 ListSummary Server Control Properties Property 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 Net help Description Data Type Values Authenticated Indicates if you are logged in to String the CMS Explorer and can use it to browse to the folder needed for the FolderPath property See Also Using CMS Explorer to Browse Your Ektron CMS400 NET Site on page 32 ContentParameter Checks the QueryString for this String value and replaces the collection with a content block when specified Leave blank to always display the Collection or List Summary Direction How to order the hyperlinks on either ascending they are arranged the list ascending or A 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
352. s the syntax for implementing it The PHP example is below lt php ecmListSummaryXML books 0 Title asc 0 folder gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 412 Custom PHP Functions 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 322 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 ecmRssSummary Books 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 2 gt This function is basically the same as the Collection function in ASP See Collection Function on page 107 for details The only difference between the PHP function and the ASP one is the syntax for implement
353. s 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 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 a
354. s class effects all weekday cells except the today cell The weekday cell that holds listed events The following example shows the day border in red es Apai May dune gt gt Sunay Monday Tuesday Wednexdsy Theradey Friday Saturday WA 1 A a A Nna BR a Bs WA s Bz WI eT Bw Blu nan BAw Wi CAR EEPE ERI ETE EEE LERN EE Wiz din eau TAa Bim Baz Baa 5a amp 22 aA wo Se n e border right c9bda5 1px solid e border top c9bda5 1px solid e background f0e9c5 e border left c9bda5 1px solid e border bottom c9bda5 1px solid Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 146 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 following example shows the event title cell in red
355. 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 Dim i For i LBound ListSummaryl EkItems To UBound ListSummaryl EkItems Next This example outputs the date created for each content block ina List Summary MULAN US YUNSTUVEAGINpIesuiu C 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 Data Binding with Server Controls With data binding you can bind Ektron server controls to a DataGrid 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 a m Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 53 Introduction to Ektron CMS400 NET Server Controls 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 DataGrid to display a Collection Dim myCol As New Ektron Cms Controls Collection myCol DefaultCollectionID 1 myCol Fill DataGridl DataSource myCol
356. s 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 186 MetaDataList Server Control Properties NOTE The MetaDataList 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 Net 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 32 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 190 Property Value Data Type DisplayXslt ExactPhrase 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 122 ecmTeaser lists the title of every content block in the folder plus
357. scrintion Shown below is an example of the code that is inserted Platform Code View NET lt cms metadatalist id Metadatalist1 FolderId 69 DisplayXslt ecmTeaser runat server gt lt cms metadatalist gt Inserting a Standard Menu For a description of the Standard Menu function see Menu Server Control on page 161 To insert a Standard Menu Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 250 Dreamweaver Extension Support 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 The Standard Menu Control box appears Ektron CMS400 Menu Control Control ID DefaultMenulD Select the from a list of menus MenuType SampleMenu Dynamic menu Parameter None v Hide O Visible Positioning info GridLayout Style leave blank if none Wrap tag Span iM 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
358. sed within the HTML hyperlink generated by the search output Can control font color size etc Style Info Web Page View font family arial font color cccccc border solid blue 1pt margin 2px width 50 weight bold background 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 C Sportster C Redstar C Lil C Cheetah roducts Page C International Ships RC Sportster C International Hosts RC Conference C International 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 5 0 Revision 8 303 Custom ASP Functions 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
359. sform the XML No content See Also The Function s Arguments on page 285 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 285 279 Custom ASP Functions 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 al an Sree Qa 2 B D e a a E E Address a http 127 0 0 1 cmssamplefindex asp RG international Home Products Support News Careers 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
360. sion 5 0 Revision 8 458 Learning About Visual Studio NET Learning About Visual Studio NET This section introduces some background information about using Microsoft s Visual Studio NET For more information use the help feature installed with Visual Studio NET 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 in the designer window will have absolute positioning Here is an example lt body MS_POSITIONING GridLayout gt lt form id Forml method post runat server gt lt asp Button id Buttonl style Z INDEX 101 LEFT 160px POSITION absolute 80px runat server Text Button gt lt asp Button gt lt asp Button id Button2 style Z INDEX 102 LEFT 480px POSITION absolute 88px runat server Te
361. snsnnaderessaiainds 381 Dynamic Gomtent Blok xis extesstcecsarentatctestusesateceusncedatecseerceteecisttncess 381 AML Content BlOG Ks sscenaciasausdecaces sauudecedesteuudecactnbaunaccastatauaccedes anes 381 Random Content Fun ction sssseeccessseseeeesssneeeeeesseeeeeeeees 381 Random Summary Function cccccsseeecceseeeeceeeseseeneeeeseeeeees 382 Search PMN UO cscs aidia aia arakan ige o ienris 382 Search Tag EXAMAPIC aam oaa ARATA 383 Search Display Punctlonscccxxcsecccccec cee 383 Search DISGAEA MPI icc ds sass seasssdccaascesrpscceusanncnesansasasdeicansncanasste 384 List Summary PUNGUON iccccsccececec ieee 384 List Summary EXa IMp Gis cs cescescatgs eeceascentcascatnass iaa ices 385 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 XV AML List Summary FUNCOM siescccssacceccsccsctoecsacescecoeccscsceseecessece 385 XML List Summaty EXAM ple sissioni anii 386 RSS List Summary FUNCOM ssasesiccsicaccnceccsaccncccssaccesaseetecececse 386 IST Summany MAING emrenin ERA 386 Archive List Summary Function s sssssssunnnnnnnnunnnnnnnnnnnnnnnnnnnnn 387 Single Summary Function sssssnsssnnnnsnnunnnnnennnnnnnnnnnnnnnnnnnnnnnn nnna 387 Single Summa Example ananpi 388 Gollectign PUM CU ON csicsa a 388 Example Using the ecmNavigation Display Function 389 Example Using the ecmTeaser Display Function n 390 Gollecton Vailas wrccejistcssducetaysstecasascadreveceagaitestescesgeinarcsdedsbdasiesee 39
362. 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 64 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 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 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 65 e LanguageSelect Server Control Properties on page 66 LanguageSelect Server Control vs LanguageAPI Server Control The LanguageSelect Server Control lets users view your site in th
363. splay on page 122 ecmTeaser lists the title of every content block in the folder plus the content summary See Also Example of ecmTeaser Display on page 123 Dynamic Content Checks the QueryString for the content block ID value and replaces the search Parameter with content a 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 Hide Used to hide a form in design time and run time Checked Hide form Unchecked Show form Note If Hide and Visible are both checked the property is hidden Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 244 Dreamweaver Extension Support Field Description Visible Used to show or hide the function at run time Checked Hide function 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 specify a server control s tag The default is Span Span The lt span gt
364. spx vb Authenticated ButtonText 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 XmlConfigId EB Properties Dynamic Help Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 107 5 Add the following code to the code behind IndexSearch1 Parm XPath root subject Dim arStr As String Dim Str As String 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 description of what is happening in the code e This line defines the parameter XPath location IndexSearchl Parm XPath root subject e The next three lines create variables Dim arStr As String Dim Str As String Dim strRet As String e This line set the variable arStr as an array of the XPathValues arStr IndexSearchl GetXPathValues root subject e The for next loop iterates through the array of XPathValues For Each Str In arStr strRet Str amp lt br gt Next e The last line displays the values on your web form Literall Text strRet 6 Buil
365. ss A E A N A E L 124 Calendar Server Control sssssssssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnna 127 Calendar Server Control Properties cecsssseeeeeseseeneeees 129 Calendar Style SiGe iiccicicccnsscscscscccecanscanceccnssstanccnnssencmeenessetens 133 Menu Server COMO sissssissssssnsestacscanscaccecssscsnvcsessetseecsestsessses 161 Menu Server Control vs DhtmiMenu Server Control 161 Menu Server Control Properties ccsssseeeessseeeeteeseeeees 162 Using DisplayXslt Samples cccccsssseeeeeeeeeeeeeeeeeeeeeeeneeeeeees 164 DhtmiMenu Server Control eceeseseeeeeeeeeeeeeeeeeeeeees 178 Menu Server Control vs DhtmiMenu Server Control 179 DhtmIMenu Server Control Properties ccssseeeeseeeeees 179 MetaData Server Control cccccccccseeeeeeeeeeeeeeseeeeeeeeeeeeeeeeeeees 186 MetaData Server Control vs MetaDataList Server Control 186 MetaData Server Control Properties cccccseseeeeeeeseeeeeees 186 Using the MetaData Server Control eeeeeceeeeseeeeeseeeees 187 MetaDataList Server Control ccccesssseseeeeeeeeeeeeeeeeeeeees 189 MetaData Server Control vs MetaDataList Server Control 190 MetaDataList Server Control Properties sssccesssseeeees 190 RssAggregator Server Control ssssssseeeeeeeeeeeeeeeeeeeeeees 194 RSSAggregator Server Control Properties ee 195 Ektron CMS400 NET Developer Reference
366. ssi aa 407 Gontent Block FunmCuon oiccsesiecssicaceteassicrcctectetccscsatcsntectatindeccte 407 Static Content BLOC ee sa tise tis te code tasted a enone 408 Dynamic Content BIOGR sisscicdnacdndetesoree sen ccaaageurnecedancuceytenaedeeren staan 408 AML Coment BOOK cser ereerenrrrr creer i 408 Search PUNCH OM sosiccccscsacscectsccescceccscececeesecenbentetacsasectuadscemcuees 408 Search Function Example sssscesss seenuepesssseseseateds seas ageedeagancieanis oe 409 Search Display FUM CUO sssiiscsesiccsessscsisccssccsccsedascesecsscacoedenadace 409 Search Display Function Example cccccceceeeeceeeeeeeeeeeteeeeeeneees 410 List S mmary FUNCHON sasscccccsrcccececcscesstccccchasstcessuseenesectstectecse 410 bist Summary EMAIMPIG ei cxctecies sxesiceotss a 410 Archive List Summary FUNCtiOn ccccceeeseeeeeeeeeeeeeeneeenes 411 Single Summary Function scsi vcsiccseseccsrecsecnccntscccendecsccseutdenatece 411 Single Summary EXAM le asimpar iaia R 412 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 Xvi AML List Summary Function inscccaseccecesccsecoeccecesccsecescecessecececs 412 RSS List Summary Function scsecccsccsccsiccccseccctcceceaceeteceseacecexcese 413 Collection FURCHON saisisascisiscrcresisissiciinsnisisiinsmnaisediaisiiaiesin 413 COlSCHO MEX AMP 6S isccaccxtcatssecteyssceedeadeespesecsaterireneieaterssaneasecetrarspsee 414 Example Using the ecmNavigation Display Function 414 Example Using
367. star 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 1 And XSLTId is the ID number of the display XSLT that will be applied to the content blocks in the collections Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 348 Custom ASP Functions 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 r gt yA 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 m ar m 1 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 349 Custom ASP Functions 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
368. summaries will appear on the web page 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 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 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 307 Custom ASP Functions 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 display
369. t 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 Start mm dd yyyy End Date mm dd yyyy Where are you Going Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 358 Custom ASP Functions 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 5 0 Revision 8 359 Custom ASP Functions 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 id value as a url parameter see Dynamic Content Block on page 283 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 eemContentBl
370. t 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 rest of head lt head gt lt body gt rest of web page document Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 363 Custom ASP Functions 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 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 http equiv Content Type content text htm1 charset iso 8859 1 gt
371. t 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 435 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 452 Web Services 3 Create a new folder within the CMS400Example folder This folder and some of its subfolders have files that are needed to run Web Services Place all of your files within the new folder 4 Using a development tool that supports Web Service integration for example Visual Studio NET create a NET aspx file that manages page layout The file must refer to a Visual Basic or C file via a codeBehind command which manages the page s functionality 5 Add to each NET project a Web Reference to the WSDL file by default webroot CMS400Example 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 CMS4
372. t ID from a URL This subsection contains the following topics e MetaData Server Control vs MetaDataList Server Control on page 186 e MetaData Server Control Properties on page 186 e Using the MetaData Server Control on page 187 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 MetaDataList Server Control see MetaDataList Server Control on page 189 MetaData Server Control Properties The Metadata 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 Net help Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 186 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 32 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
373. t know the XML ConfigID you can navigate to it using the Select XML Configuration drop down box 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 that XML Configuration s id number If you insert the XML ConfigID you do not need to select a XML Configuration FolderID 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 folderID 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 created 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 Unchecked show only content blocks that match all search criteria ShowSe
374. ta id MetaData2 runat server DefaultContentID 12 gt lt cms MetaData gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 230 Dreamweaver Extension Support 6 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 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 7 Save the Web form Open the Web page in the browser 9 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 BE WebForm5 1 Notepad File Edit Format View Help 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 CMS400 developer section gt lt meta content Microsoft Visual Studio N
375. tact Ektron 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 International is looked for a highly skilled servo control engineer to join our team 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 Function ecmTeaser cInfo global html Sinfo html lt table border 0 cellspacing 0 cellpadding 0 width 100 gt Smycount cInfo gt count for Siloop 0 Siloop lt Smycount Siloop Sinfo cInfo gt Item Siloopt 1 Shtml Shtml lt tr gt lt td gt lt a href html Shtml Sinfo gt Item ContentLinks Shtml html AT gt html Shtml Sinfo gt Item ContentTitle html html lt a gt nbsp Shtml S html date m d Y g i s A Sinfo gt Item DateModified Shtml Shtml lt td gt lt tr gt lt tr gt lt td gt html Shtml info gt Item ContentTeaser Shtml Shtml lt td gt lt tr gt lt tr gt lt td gt amp nbsp lt td gt lt tr gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 416 Custom PHP Functions html Shtml lt table gt return html As you can see the ecmTeaser function is a simple ASP function that crea
376. tanding 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 SOFTWARE 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 2005 Ektron Inc All rights reserved LA10031 Revision 1 4 What s New in the 5 0 Release What s New in the 5 0 Release e Dreamweaver functions now look and act like standard NET server controls See Also Dreamweaver Extension Support on page 203 e New Documentation Creating a Web Site on page 2 This section describes creating a Web site in Microsoft Visual Studio NET 2003 and Macromedia Dreamweaver MX 2004 e The ability to create web sites manually using Ektron s custom ASP functions See Also Custom ASP Functions on page 273 e The ability to create web sites manually using Ektron s custom ColdFusion functions See Also Custom ColdFusion Functions on page 377 e The ability to create web sites manually using Ektron s custom PHP functions See Also Custom PHP Functions on page 404 e The RssAggregator Server C
377. te 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 5 0 Revision 8 218 Dreamweaver Extension Support 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 Click insert A login icon indicates where the Login button appears on the template Description E E AU E T E N E E T 1 Files o e aspx ol vb ogin e v SANNA AS SSNS SSS S SSNS E NSE S SSNS SSNS STEN SASS SN ASSN SSSA SESS SSS ESSENSE SSS SS ESSE SSE S SEAS E SSSA S ESSE SSE SS ESSE ATES S ESSE SEES SSS Server Control Login eeN i retire iter ite e ttt Cette titer eter titer errors Lipman Shown below is an example of the code that is inserted Platform Code View NET lt cms Login id Login1 runat server gt lt cms Login gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 219 Dreamweaver Extension Support Inserting a Conte
378. te This method ensures it is easily applied to each page created from the template and is updated by simply editing the template 1 In the second row of the first column insert a one column seven row table 2 In the first row of this embedded table type HOME 3 Inthe third row type PRODUCTS Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 19 Creating a Web Site 4 Inthe fifth row type SERVICES 5 Inthe seventh row type CONTACT Your page should look like this HOME PRODUCTS SERVICES CONTACT 6 With the cursor in a cell the Property inspector displays the cell properties such as background color Bg width W height H and text alignment Horz Vert Apply the desired properties to each cell w Properties Format None a Ste None V BL 22 tink yoo g Font DefaultFont Size 5 v EA IZ 8 28 Target EE Cell Horz Default v W Nowrap Bg S D jJ vert Defaut v H Header Ba Brdr a 7 To link to index aspx products aspx and services aspx select the text in the cell click the Folder icon in the Link field of the Property inspector browse to the appropriate file and select the file Repeat this process for each cell 8 For the Contact link select the CONTACT text and in the Link field of the Property inspector type in mailto youre
379. te Ektron CMS400 NET commands in Dreamweaver To locate the command menu in Dreamweaver perform the following steps 1 Open Dreamweaver 2 Inthe top menu follow the path Commands gt Ektron CMS400 NET Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 214 Dreamweaver Extension Support 3 The Ektron CMS400 NET commands menu is displayed Macromedia Dreamweaver MX 2004 menu CMS400Example menu aspx File Edit View Insert Modify Text Ke DU u o Site Window Help Insert Common Layout Foi aasam 4 f menu aspx lel coae sa Lal veson L lt P gt amp nbsp 15 lt P gt amp nbsp lt P gt 16 lt P gt 17 lt TABLE id Tabl Start Recording Ektron CMS Edit Command List Get More Commands Apply Source Formatting Clean Up HTML Clean Up Word HTML Add Remove Netscape Resize Fix Create Web Photo Album Set Color Scheme 400 Ctrl4shift x cellPadding 0 v rtrtttttitttiiiittiiittt iii ittt titi ttt iiti titi i iii iiti tii ii titi iti iii i tii ii titi ii iit iii titi ii iii titi ti titi iii i titi iti t titi iti iii iii i iy 4 Click on the command for the task you would like to perform The following table explains each command Command Description More Information Setup Opens Ektron CMS400 NET Setup information dialog for Dreamweaver Setup on page 208 CMS Function
380. te 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 122 ecmfTeaser lists the title of every content block in the collection plus the content summary See Also Example of ecmTeaser Display on page 123 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 223 Dreamweaver Extension Support Field Description Dynamic Content Parameter Checks the QuerySiring for this value and replaces the collection with a content block when specified Leave blank to always display the collection Dynamic Collection Parameter To make this collection dynamic select coll_id When you do the function uses the collection passed as a URL parameter Random Output 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 Hide Used to hide a co
381. temImage gt lt xsl attribute gt lt img gt lt A gt lt xsl itext gt lt xsl itext gt lt xsl if gt lt A gt lt xsl attribute name onClick gt Javascript lt xsl value of select ItemLink gt lt xsl attribute gt lt xsl attribute name href gt lt xsl iattribute gt lt xsl value of select ItemTitle gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 175 lt A gt lt xsl otherwise gt lt xsl choose gt lt xsl when gt lt xsl otherwise gt lt xsl choose gt lt xsl whentest ItemImageOverride True gt lt A gt lt xsl attribute name href gt lt xsl value of select concat ItemLink gt lt xsl attribute gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name srce gt lt xsl value of select ItemImage gt lt xsl attribute gt lt img gt lt A gt lt xsl when gt lt xsl otherwise gt lt xsl iftest not ItemImage gt lt A gt lt xsl attribute name href gt lt xsl value of select concat ItemLink gt lt xsl attribute gt lt img gt lt xsl attribute name border gt 0 lt xsl attribute gt lt xsl attribute name src gt lt xsl value of select ItemImage gt lt xsl iattribute gt lt img gt lt A gt lt xsl text gt lt xsl text gt lt xsl if gt lt A gt lt xsl attribute name href gt lt xsl value of select concat ItemLink gt lt
382. tes 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 112 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 Building Blocks See Building Blocks on page 116 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 417 Custom PHP Functions Shown here is the format of the ecmCollection function lt php ecmCollectionXML id GetHtml gt This function is basically the same as the XML Collection function in ASP See XML Collection Function on page 343 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
383. 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 cmMs400Example 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 CMS400 NET Developer Reference Manual Version 5 0 Revision 8 434 Web Services e Ektron Cms BE Site dll e Ektron Cms BE ToolBar dll e Ektron Cms BE User dll 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 CommonuI dll e Ektron Cms UI 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 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 i
384. the FormBlock Server Control Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 82 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 Net 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 32 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 32 DynamicParameter To make this 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 Include Tags Determines if tags are generated automatically of Boolean manually See Also Automatic versus Manual Generation of Fo
385. 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 incredible 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 the RC Cheetah and its nearest competitor In speed handling and price the RC Cheetah out shines them ail The RC Cheetah is now available at all RC International distributors and major Hobby stores Please contact RC International to locate a local dealer 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 firs
386. the collection might appear on a Web page RG international Home Products Support Nevs Careers Search Login Contact Ektron 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 International is looked for a highly skilled servo control engineer to join our team Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 331 Custom ASP Functions 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 JamE NEMI EEE html html html html html html html html html next html html end Function Function ecmTeaser cInfo nto html lt table border 0 cellspacing 0 cellpadding 0 width 1005 gt for seach into Ti CINEO html amp lt tr gt lt td gt lt a href html amp CStr info ContentLinks oucas WU ll himl amp Cser into Contentilitie html amp lt a gt amp nbsp html amp info DateModified hemil amp lt td lt tr gt lt tr lt td html amp Cstr info ContentTeaser Hem 6 U lt td gt lt tre lt tr gt lt td gt snbspy lt td gt lt tr gt amp lt table gt ecmTeaser html As you can see the ecmTeaser function is a
387. the content summary See Also Example of ecmTeaser Display on page 123 Path to Custom Xslt Enter the path to an Xslt that determines the display of the page 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 True Match the exact phrase False Doesn t need to match exact phrase String Boolean FolderlD The root folder content will be pulled from Integer 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 DataGrid Boolean Hide Used to hide a metadata list in design time and run time True Hide metadata list False Show metadata list Boolean Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 191 Property Value Data Type 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
388. the ecmTeaser Display Function 08 415 Collection VAnABIES jiccsissscccesdainansccedevliansededaclsavnecada inenccessaiaiauede 417 Display FUNGUO essiri aiea a raia EAEE AAN aiii 417 BUDO BOCK ani seane slags orane te lanasranedlarnies 417 XML Collection FUNCTION sscasesccsctecscccctcsncsecnccnsnctecenenccccsoncennsccse 417 RSS Collection FUNCtiON cccccccccssssseseeseessessseeeeeeeeeneeeness 418 Random Content FUunction ccsseeeccsssseeeeeesseneeeeeesseneneeeees 418 Random Summary Fun ction seecccsssseeeeeesseeeeeeeesseneneeeees 419 Event Calendar Function ccseccccc ccc cect cies 419 Event Calendar Sample cccccccsesceeceeeeeeeeeeeeecaeeeseneeeseaaeeenes 422 FOM PUMCUOM stecsscccssciccesst cates aaa aaaea Eea ened 422 PAUITIP UR POSE FUNCOM ciscsesicscsscsessonccsnisedonccantaccotecencacdonecccentere 423 Metadata Funcuonn iccsciccscsicsacccscacctenccstascssceceansecnecuuntecenccsataacies 423 DHTML MENUS cieri En nAaR aias 426 Additional Documentation in Ektron Knowledge Base 44 426 Displaying a Menu on a Web Page ceeeeeeseeeeeeeeeeeereeenees 426 GenerateMenu and DropMenmu cccceeeeeeeeneeeeeteeeeeenes 426 Customizing the Menu s Appearance cccccceeeeeeeseeeeeetteeeeeees 427 Ok IMGNU S iorri aei i i 427 AMLE Men FUR CU GM ys icssccseseressnssasxasnspiscsnsacanosntsnanancsieanaratunscansas 428 Language Select FUNCTION
389. the login or logout button Login Server Control on which lets the user log in and use page 63 Ektron CMS400 NET Metadata Displays the metadata in the source MetaData Server Control of the Web page displaying the on page 186 content Menu Customizes the DHTML menus Dhtm IMenu Server Control feature on page 178 Search Inserts a text box with a search Search Server Control on button in the template When the page 85 user completes the search screen it looks through XHTML content on the Web site ShowSiteLanguage Lets a site visitor select a language LanguageSelect Server Control on page 65 Add Content Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 The add content 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 A Web form allowing you to collect data from users about the content block A loop function that moves information from a database to an Ektron CMS400 NET database Here is the format for the add content method 268 Standard ASP NET Methods lt AddContent UserName Password Domain content_title content_comment ContentHtml SummaryHTML Metalnfo ContentLanguage FolderiD GoLive EndDate ErrString gt The table below lists attributes of the add content block method Attribute Description Type UserNa
390. the title of the page in the Banner Editable Region Type or insert text in the Body Editable Region Click File gt Save Repeat these steps for the Products aspx and Services aspx pages oar anh N Testing and Viewing the Site You are now ready to test and view the site Steps to Test and View the Site In the Document window select File gt Open Browse to and select Index aspx Select F12 to preview in the browser Fo rN gt Click the navigation bar links to navigate from page to page Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 23 Introduction to Ektron CMS400 NET Server Controls Introduction to Ektron CMS400 NET Server Controls Ektron CMS400 NET s server controls let you insert many standard methods and properties within the Visual Studio NET 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 25 e Setting Up a Template on page 26 e Making the Server Controls Available on page 27 e Inserting Server Controls Using Drag and Drop on page 29 e Inserting Server Contr
391. the words Exact Phrase I Match Partial Words http www ektron com images search jpg m Search All the words C Any of the words Exact Phrase I Match Partial Words 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 All the words Any of the words Exact Phrase I Match Partial Words Click Me to Search Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 295 Custom ASP Functions Button Text Web Page View Click Me to Search Exact Phrase I Match Partial Words Font Face 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 Exact Phrase l Match Partial Words Kristen ITC Search All the words Any of the words Exact Phrase Match Partial Words Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 296 The color of the text in the search tag You may enter the color Custom ASP Functions name or a hexidecimal value of the color Web Page View oo Search All the words C Any of the words Exact Phrase I Match Partial Words Searc
392. 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 If the 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 ecmDHTIML_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 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 e ek _Menu js 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 Developer Reference Manual Version 5 0 Revision 8 427 Custom PHP Functions Ektron
393. 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 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 must be installed on the server for more information see http msdn microsoft com netframework Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 432 Web Services 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
394. ting a search Field Description Control ID A unique name for the function you are inserting 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 Select Folder Select a folder path to be searched If you insert the folder path you do not need to select a folder Recursive If checked search information is gathered from the folder selected and all of its child folders 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 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 ecmTeaser lists the title of every content block in the folder plus the content summary Max Number of results Enter a number to specify how may results are displayed on the page O unlimited ShowSearchBoxAlways If unchecked the sea
395. tion on page 380 Form Displays a content block associated with a form Form Function on page 397 Multipurpose Displays either a content block or a form MultiPurpose Function on page 398 Language Functions Language Select Lets a site visitor select a language in which to view site Language Select Function on page 403 List Summary Functions Archive ListSummary Displays summaries of archived content blocks Archive List Summary Function on page 387 List Summary Displays a list of content block summaries List Summary Function on page 384 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 385 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 378 Custom ColdFusion Functions Function Description More Information RSS List Summary Creates an RSS feed out of the items in a list summary RSS List Summary Function on page 386 Single Summary Displays the summary for a content block Single Summary Function on page 387 Login Functions Login Menu Functions Adds the login or logout button Login Function on page 379 the menu items properties DropHTMLMenu Used to display a
396. tiple Language Content Boolean Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 70 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 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 79 This subsection contains the following topics e Static Content Block on page 71 e ContentBlock Server Control Properties on page 72 e Dynamic Content Block on page 73 e XML Content Block on page 76 e The OverrideXslit and DisplayXslt Properties on page 77 e Using the ContentBlock Server Control Programmatically Example on page 79 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 71 ContentBlock Server Control Properties The following table explains the properties of the ContentBlock Server Control The following table
397. to join our team info Comment Displays content block comment e Plastic Molder 123 This is the historical comment for Plastics Mt e Servo Control Engineer 124 This is the historical comment for Servo Con info ContentID Displays content block ID number e Plastic Molder 123 ID 13 e Servo Control Engineer 124 ID 14 info ContentLinks Displays content block path relative to your site s root e Plastic Molder 123 CMS400Sample hr asp id 13 e Servo Control Engineer 124 CMS400Sample hr asp id 14 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 337 Custom ASP Functions Name Description Web Page View info ContentTitle Displays content block title e Plastic Molder 123 CMS400Sample hr asp id 13 e Servo Control Engineer 124 CMS400Sample hr asp id 14 info DateModified Displays date and time content block was last modified e Plastic Molder 123 8 27 2002 2 38 34 PM e Servo Control Engineer 124 8 27 2002 2 40 26 PM info DisplayDateMo dified Displays date and time content block was last modified using the date time format specified in Setup asp Plastic Molder 123 27 Aug 2002 02 38 34 PM e Servo Control Engineer 124 27 Aug 2002 02 40 26 PM info EndDate End date and time for the content block info Display e EndDat Displays en
398. 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 lookt fa So Killed se e basam 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 4 4 25 2002 4 54 42 PM ed TOmedigh Ki amet col AuthorFname first name of the user who last edited the content block aked TOY skilled ser AuthorLname last name of the user who last edited the content block 1er 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 5 0 Revision 8 321 Custom ASP Functions RSS Summary Function The RSS summary function is used to create an XML list of content summaries 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
399. ttribute Description Required For more information see Maximum Characters The maximum number of No Maximum characters that the input text Characters on box can accept page 294 Button Image Source The image location for the No Button Image search button Blank Source on standard submit button page 294 Button Text The text used for the button if No Button Text on the standard submit button is page 295 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 296 Font Color The font color of the search tag No text Blank Black Font Size The font size of the search tag No Font Size on text page 297 Horizontal Determines if the search options Yes Horizontal on are in a row or a column 1 page 298 horizontal 0 vertical Spare1 Currently not used Must be Spare 1 on page 298 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 290 Custom ASP Functions Search Tag Example The following example places a text field and a search button in a table cell inside an ASP template LEEF lt td gt lt ecmSearchWithFormTag 1 search display aspi 25 200 mir woecarchm u Verdana MOO COS Ome eae O at nee lt td gt Gate The previous example has the following properties e Searches the root folder in this case the content folder e Search is
400. type The default is Month String e Month A 30 day calendar month view kad ww te n n n n e Day Single day view ers e inline Display events that occur from the start date of the calendar through the end date Sanday May 01 2005 Saturday July 20 2008 SS2005 e MonthUpWithEvent Displays a month calendar Events appear to the right of the calendar when you click on a day lt lt Apr May 2005 Jun gt 5 5 2005 Sun Mon Tue Wed Thu tri sat Hockey game Location VWA 1 2 3 6 7 Start 7 00 PM e 1 12 43 16 End 10 30PM 11 16 17 18 1 20 21 22 23 24 25 25 127 28 212 7 DynamicParameter To make this calendar dynamic select calendar_id String When you do this server control uses the calendar passed as a URL parameter Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 131 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 Design time only View the calendar in selected languages Note The language property shows results only in design time in Visual Studio and does not affect t
401. u 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 5 0 Revision 8 455 Syndicating Web Content as RSS 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 CMS400Examp1e folder They use the WebService 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 ri
402. ubmenu o News a All Stars Customer a Web Design Firms a Enhanced Workflow a Visual Rapid CMS Integration a Ektron Partners and Customers Add or Edit submenu Edit Menu whole menu SampleMenu XSL code Below is the XSL code that is used to create SampleMenu Display You can use this code as the basis to design your own XSLT lt xml version 1 0 encoding UTF 8 gt lt xsl stylesheet version 1 0 xmlns xsl http www w3 org 1999 XSL Transform gt lt xsl output method xml version 1 0 encoding UTF 8 indent yes omit xml declaration yes gt lt xsl template match gt lt xsl apply templates select MenuDataResult Item gt lt xsl template gt lt xsl template match Item parent MenuDataResult gt lt xsl call template name makelist gt lt xsl template gt lt xsl template match Item child Menu gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 165 lt LI gt lt xsl apply templates select Menu gt lt LI gt lt xsl template gt lt xsl template name makelist match Menu gt lt xsl choose gt lt xsl whentest Link gt lt xsl value of select Title gt lt xsl when gt lt xsl otherwise gt lt A gt lt xsl attribute name href gt lt xsl value of select concat Link gt lt xsl attribute gt lt xsl value of select Title gt lt A gt lt xsl otherwise gt lt xsl choose gt lt UL gt lt xsl apply tem
403. ultFormID 13 runat server gt lt cms FormBlock gt Inserting an XML Index Search For a description of the XML Index Search Function see IndexSearch Server Control on page 97 To insert an XML Index Search Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 241 Dreamweaver Extension Support Move the blinking cursor to the area that you want to place it 2 From the list of Ektron CMS400 NET functions click XML Index Search 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 Order By Max Number of results o Display Type Dynamic Content Parameter Hide Visible Positioning info GridLayout Style Wrap tag Button Text Hits Marker 3 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 242 Dreamweaver Extension Support Field Description XML ConfigID ID of the XML configuration whose indexed fields appear on the search screen If you do no
404. ummary of the content block For example lt Teaser gt Th asiest HTML book weve seen that still manages to be comprehensive lt Teaser gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 313 Custom ASP Functions XML Tags Description 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 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 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
405. urned if content fails to get added to Ektron As Object CMS400 NET Add Content Example The following is an example of the add content method hard coded in a template lt tr gt lt td 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 1 31 06 14 2004 11 55 AM mv lt metadata gt lt meta id 3 gt ContentTitle lt meta gt lt metadata gt nny g gt lt td gt lt tr gt The previous example has the following properties e The user admin is used for authentication e The title of the new content block is Content Title Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 270 Standard ASP NET Methods 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 new content block is added to content folder ID 31 e The start date is set at June 14 2004 at 11 55 AM e No end date is specified e The metadata Content title is set for the metadata definition ID 3 When this method is executed the content is added to Ektron CMS400 NET Displayed here is the record of the content in the workarea Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision
406. value as the id argument If the DefaultID value is zero 0 eemContentBlock 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 423 Custom PHP Functions 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 132 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 a ecmMetadata call would look like this lt html gt lt head gt lt php 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 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
407. wing in the MenuStyle property box font bold 18px Arial color royalblue background color slateblue String Stylesheet Specify the location and style sheet for the submenu 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 CMS400Example Workarea csslib For more information on style sheets see Using a Style Sheet on page 183 The Stylesheet property can be used in conjunction with the CssClass property to define the root menu See Also CssClass on page 180 String SubMenuBackColor Sets the background color for the submenu String SubMenuHoverOverColor Sets the background color for the submenu when hovering over it String SubMenultemHeight Sets the height of each submenu item in pixels The Default is 20 Example set to 20 CMS Developer Example set to 30 CMS Developer Integer Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 182 Property Value Data Type SubMenultemWidth Sets the width of each submenu item in pixels The Integer Default is 150 Example set to 150 CMS Developer 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 Programming C NET VB NET How to Example set to 0 zero
408. with a style sheet DntmlMenus 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 Menu Server Control DhtmlMenu Server Control gt MenuExample CMS Developer Programming C NET _ Book areas Programming C NET ASP NET Unleashed Programming C NET VB NET How to News Menu Server Control Properties 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 Net 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 32 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 162 Property Value Data Type 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 Explore
409. x Ektron Cms Controls Collection MyColl new Ektron Cms Controls Collection MyColl DefaultCollectionID 1 This line tells the page to display CollectionID 1 unless otherwise specified 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 32 If you do this remember to delete the dropped object when you are done You can also obtain the ID number via the Workarea Dim MyColl as New Collection MyColl DefaultCollectionID 1 MyColl Random True Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 36 Introduction to Ektron CMS400 NET Server Controls This line sets the Random property to true See Also Random on page 117 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 1 MyColl Random True MyColl Eirg 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
410. xt Button gt lt asp Button gt lt asp DataGrid id DataGridl style Z INDEX 103 LEFT 208px POSITION absolute lt form gt lt body gt 152px runat server gt lt asp DataGrid gt Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 459 Learning About Visual Studio NET 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 DataGrid 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 5 0 Revision 8 460 Additional Information Additional Information Supporting Documents Support Sales Information 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 If you are experiencing trouble with any aspect of Ektron CMS400 NET please contact the Ektron Support
411. y 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 5 0 Revision 8 159 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 Suny en Thuradep Foamy Sanma 1 i i 4 4 z Hroty Gams e 2 it 2 2 a m n 18 5 2 a Work Poets Hocker uarctmtes 2 ra u a Fe u a 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 eve
412. ype OverrideXslt Ignore for a non XML content block must be one of these values default one two three DisplayXslt Ignore for a non XML content block String 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 A Authenticated True Es 28 wg DisplayXslt DynamicParameter Hide False Language 1033 OverrideXsit 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 Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 8 73 4 News RC International Announces the RC Cheetah Microsoti Internet Epei i File Edit View Favorites Tools Hep 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 NOTE The following table only lists Ektron specific properties It does not describe native Net properties such as font height width and borde
413. z k tr on ___ Redefining Web Content Management Ektron CMS400 NET Developer Reference Manual Version 5 0 Revision 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 2005 Ektron Inc All rights reserved EKTRON is a registered trademark of Ektron Inc Version 5 0 Revision 8 July 22 2005 For updated versions of this manual please visit http www ektron com cms400 web cms aspx id 1701 documentation 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 nonexclusive License to use the Software on the following terms and conditions 1 Right to use The Software is lic

Download Pdf Manuals

image

Related Search

Related Contents

130501 Manuel d`utilisation du Indicateur K-PPI      Suuplus DVD Player User`s Manual - Sunhong  SM 8000 - MANUAL DE USUARIO Serie  Scarica PDF - Briggs & Stratton          

Copyright © All rights reserved.
Failed to retrieve file