CMSEditModeButtonEditDelete

The CMSEditModeButtonEditDelete control displays a button that is shown in the editing mode and allows content editors to edit or delete document when they click it. It provides an intuitive way of editing/deleting documents.

 

Properties

 

Property Name

Description

Sample Value

Path

Alias path of the document to be edited/deleted.

"/whitepapers/myfirstpaper"

EditText

Custom caption of the button. If not set, the default text "Edit" is displayed.

"Edit article"

DeleteText

Custom caption of the button. If not set, the default text "Delete" is displayed.

"Delete article"

 

 

Design

 

You can modify the look of the control using the following CSS styles:

 

Class Name

Description

CMSEditModeButtonEdit

CSS style of the <A> tag.

CMSEditModeButtonDelete

CSS style of the <A> tag.

 

 

Example

 

You only need to add the following code inside your ASPX page or web part:

 

[C#], [VB.NET]

 

<cc1:CMSEditModeButtonEditDelete runat="server" id="btnEditDelete" Path="/news/news1" />

 

If you want to display the buttons in the transformation, you can use the following code:

 

[C#], [VB.NET]

 

<cc1:CMSEditModeButtonEditDelete runat="server" id="btnEditDelete" Path='<%# Eval("NodeAliasPath") %>' />

 

The displayed button looks like this:

 

clip0016