The CMSEditModeButtonAdd control displays a button that is shown in the editing mode and allows content editors to add a new document when they click it. It provides an intuitive way of adding new documents.
Properties
Property Name
|
Description
|
Sample Value
|
ClassName
|
Document type in format cms.article that specifies the type of the document that should be created.
|
"cms.article"
|
Path
|
Alias path of the parent document under which the new document is created. If omitted, the documents are added under the currently selected document.
|
"/whitepapers"
|
Text
|
Custom caption of the button. If it's not set, the default text "Add new" is displayed.
|
"Add new article"
|
Design
You can modify the look of the control using the following CSS styles:
Class Name
|
Description
|
CMSEditModeButtonAdd
|
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:CMSEditModeButtonAdd ID="CMSEditModeButtonAdd1" runat="server" ClassName="cms.article" />
|
The displayed button looks like this:
|