Tree Schema Definition Reference

CustomUrlAction

This element defines an action to open a custom URL. The URL can include one or more post parameters defined as child elements or appended to the URL itself in the attribute. This element has the following attributes:

  • Url
  • Label
  • Tooltip
  • Icon
  • PermissionTypes
  • ViewType
  • ViewLabel
  • ViewToolTip
  • ViewIcon

It can also contain the PostParameters element.

Url

The URL to open. Required.

It is not intended for external URLs. Internal URLs can only be used. The URL must be relative and start with “~” (resolved by C1 CMS to the current application path). Example: “~/XmlBasedSiteBackup.aspx”

The URL can include one or more post parameters appended to the URL specified in the attribute and make use of the dynamic values. Example: "~/WebForm1.aspx?Id=${C1:Data:Composite.Data.Types.IPage:Id}&ShowPageId=False"

Use the encoded “&” for “&” when appending more than one parameter.

Label

A label of the custom URL action. Required.

ToolTip

A custom tooltip of the custom URL action. Optional.

Defaults to the value of the Label attribute.

Icon

The icon of the action. Optional.

The names of C1 CMS standard icons you can use in your application are listed in ~\Composite\images\icons\StandardIcons.xml

PermissionTypes

A list of permissions on the custom URL action. Optional. The list can include one or more comma-separated values:

  • read
  • edit
  • add
  • delete
  • approve
  • publish
  • administrate

Defaults to “read”.

ViewType

The type of the view to open the URL in. Optional. Its possible values are:

  • genericview
  • documentview
  • pagebrowser
  • filedownload
  • externalview

Defaults to “genericview".

Normally, an ASPX page is expected as the value.

ViewLabel

The label of the view. Optional. Defaults to the value of the Label attribute.

The ASPX page must include minimal markup for the page’s title to be used here (see “ASPX Page Markup” below).

ViewToolTip

The tooltip of the view. Optional. Defaults to the value of the ToolTip attribute.

ViewIcon

This attribute specifies the icon of the view. Optional. Defaults to the icon associated with the view set in the ViewType attribute.

The names of C1 CMS standard icons you can use in your application are listed in ~\Composite\images\icons\StandardIcons.xml

ASPX Page Markup

The ASPX page must include the minimal markup (see below) to work properly. This will ensure that the page’s title is displayed as the tab’s title.

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://www.w3.org/1999/xhtml" xmlns:control="http://www.composite.net/ns/uicontrol">
<control:httpheaders runat="server" /> 
   <head runat="server">
      <title>Page title</title>
         <control:scriptloader type="sub" runat="server" /> 
   </head>
   <body>
      <ui:page> 
         …
      </ui:page> 
   </body>
</html>