C# Class N2.Edit.EditUrlManager

Inheritance: IEditUrlManager
Mostra file Open project: n2cms/n2cms Class Usage Examples

Public Methods

Method Description
EditUrlManager ( IUrlParser parser, N2.Configuration.EditSection config ) : System
GetDeleteUrl ( ContentItem selectedItem ) : string

Gets the url to the delete item page.

GetEditExistingItemUrl ( ContentItem item, string returnUrl = null, string alternativeEditorPath = null ) : string

Gets the url to the edit page where to edit an existing item.

GetEditInterfaceUrl ( ContentItem selectedItem ) : string

Gets the url to the edit interface.

GetEditInterfaceUrl ( ViewPreference preference = ViewPreference.Published ) : string

Gets the url to the edit interface.

GetEditNewPageUrl ( ContentItem selected, ItemDefinition definition, string zoneName, CreationPosition position ) : string

Gets the url to edit page creating new items.

GetManagementInterfaceUrl ( ) : string

Gets the url to the edit interface.

GetNavigationUrl ( ContentItem selectedItem ) : string

Gets the url for the navigation frame.

GetPreviewUrl ( ContentItem selectedItem ) : string

Gets the url for the preview frame.

GetSelectNewItemUrl ( ContentItem selectedItem ) : string

Gets the url to the select type of item to create.

GetSelectNewItemUrl ( ContentItem selectedItem, string zoneName ) : string

Gets the url to the select type of item to create.

ResolveResourceUrl ( string resourceUrl ) : string

Gets the url to the given resource underneath the management interface.

Private Methods

Method Description
FormatSelectedUrl ( ContentItem selectedItem, string path ) : string

Method Details

EditUrlManager() public method

public EditUrlManager ( IUrlParser parser, N2.Configuration.EditSection config ) : System
parser IUrlParser
config N2.Configuration.EditSection
return System

GetDeleteUrl() public method

Gets the url to the delete item page.
public GetDeleteUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
return string

GetEditExistingItemUrl() public method

Gets the url to the edit page where to edit an existing item.
public GetEditExistingItemUrl ( ContentItem item, string returnUrl = null, string alternativeEditorPath = null ) : string
item ContentItem The item to edit.
returnUrl string
alternativeEditorPath string
return string

GetEditInterfaceUrl() public method

Gets the url to the edit interface.
public GetEditInterfaceUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The item to select in edit mode.
return string

GetEditInterfaceUrl() public method

Gets the url to the edit interface.
public GetEditInterfaceUrl ( ViewPreference preference = ViewPreference.Published ) : string
preference ViewPreference
return string

GetEditNewPageUrl() public method

Gets the url to edit page creating new items.
public GetEditNewPageUrl ( ContentItem selected, ItemDefinition definition, string zoneName, CreationPosition position ) : string
selected ContentItem The selected item.
definition ItemDefinition The type of item to edit.
zoneName string The zone to add the item to.
position CreationPosition The position relative to the selected item to add the item.
return string

GetManagementInterfaceUrl() public method

Gets the url to the edit interface.
public GetManagementInterfaceUrl ( ) : string
return string

GetNavigationUrl() public method

Gets the url for the navigation frame.
public GetNavigationUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
return string

GetPreviewUrl() public method

Gets the url for the preview frame.
public GetPreviewUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
return string

GetSelectNewItemUrl() public method

Gets the url to the select type of item to create.
public GetSelectNewItemUrl ( ContentItem selectedItem ) : string
selectedItem ContentItem The currently selected item.
return string

GetSelectNewItemUrl() public method

Gets the url to the select type of item to create.
public GetSelectNewItemUrl ( ContentItem selectedItem, string zoneName ) : string
selectedItem ContentItem The currently selected item.
zoneName string The zone in which to create the item (typically parts)
return string

ResolveResourceUrl() public method

Gets the url to the given resource underneath the management interface.
public ResolveResourceUrl ( string resourceUrl ) : string
resourceUrl string
return string