Checkin Portlet
From Sense/Net Wiki
Revision as of 16:14, 28 March 2011 by MiklosToth (Talk | contribs)
- 100%
- 6.0
- Enterprise
- Community
Planned
Overview
Checkin Portlet is responsible for checking in a content that is checked out to a user. You can add checkin comments here to the new version if versioning is switched on in the folder.Details
The Checkin portlet has two behaviors. If checkin comments can be added to the content (see Checkin comments page for more details) the portlet will display a textbox where the user can enter the comments. If comments are not needed, the checkin action will be executed immediately and the user is redirected to the original page.
Properties
Inherited properties
Context binding
| Property | Property name for embedding | Possible values | Description |
|---|---|---|---|
| Bind Target | BindTarget | Unselected CurrentContent CurrentSite CurrentPage CurrentUser CurrentStartPage CustomRoot CurrentWorkspace |
Select the bound content. Set it to CustomRoot to select a content with absolute path regardless of the context |
| Custom root path | CustomRootPath | Root relative Repository path | Define bound content with absolute path when Bind Target is set to CustomRoot |
| Ancestor selector index | AncestorIndex | positive whole number | Set the bound content to the ancestor of Bind Target specified by index. 0 leaves the bound content as specified above, 1 selects parent, higher value selects higher order ancestor |
| Relative content selector path | RelativeContentPath | relative Repository path | Sets the bound content relative to the above settings with a relative path. Ie.: 'CustomChildFolder/CustomNode' selects 'CustomNode' from Bind Target's 'CustomChildFolder' child folder. Relative to ancestor when Ancestor selector index is set |
User interface
| Property | Property name for embedding | Possible values | Description |
|---|---|---|---|
| Portlet title | Title | text | Sets the visible title of the current portlet. Title header visibility is controlled with Appearance property |
| Appearance | ChromeType | Default None TitleAndBorder TitleOnly BorderOnly |
Controls title and border visibility. By default both are visible |
| Custom CSS class(es) | SkinPreFix | text | When set portlet container div appends extra css class(es) |
for Portal builders
Content View
The portlet uses the CheckIn.ascx content view from the appropriate folder (/Root/Global/contentviews or the current skin folder). The following sample contains the Longtext field control for adding the comment and a command buttons control for saving the content.
<%@ Control Language="C#" AutoEventWireup="true" Inherits="SenseNet.Portal.UI.SingleContentView" %> <%@ Register Assembly="SenseNet.Portal" Namespace="SenseNet.Portal.UI.Controls" TagPrefix="sn" %> <div class="sn-content-inlineview-header ui-helper-clearfix"> <%= SenseNet.Portal.UI.IconHelper.RenderIconTag(this.Content.Icon, null, 32)%> <div class="sn-content-info"> <h2 class="sn-view-title"><sn:ShortText ID="DisplayName" runat="server" FieldName="DisplayName" ControlMode="Browse" FrameMode="NoFrame" /></h2> <strong>Path:</strong> <%= this.Content.Path %> </div> </div> <sn:LongText ID="CheckInComments" runat="server" FieldName="CheckInComments" ControlMode="Edit"> <EditTemplate> <asp:TextBox CssClass="sn-ctrl sn-ctrl-text sn-ctrl-textarea" Width="98.5%" ID="InnerControl" runat="server" TextMode="MultiLine"></asp:TextBox> </EditTemplate> </sn:LongText> <div class="sn-panel sn-buttons"> <sn:CommandButtons ID="CommandButtons1" runat="server" LayoutControlPath="/Root/System/SystemPlugins/Controls/CheckInButtons.ascx" /> </div>