C# Class N2.Edit.EditUrlManager

Inheritance: IEditUrlManager
Afficher le fichier Open project: n2cms/n2cms Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
FormatSelectedUrl ( ContentItem selectedItem, string path ) : string

Method Details

EditUrlManager() public méthode

public EditUrlManager ( IUrlParser parser, N2.Configuration.EditSection config ) : System
parser IUrlParser
config N2.Configuration.EditSection
Résultat System

GetDeleteUrl() public méthode

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

GetEditExistingItemUrl() public méthode

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
Résultat string

GetEditInterfaceUrl() public méthode

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

GetEditInterfaceUrl() public méthode

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

GetEditNewPageUrl() public méthode

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.
Résultat string

GetManagementInterfaceUrl() public méthode

Gets the url to the edit interface.
public GetManagementInterfaceUrl ( ) : string
Résultat string

GetNavigationUrl() public méthode

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

GetPreviewUrl() public méthode

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

GetSelectNewItemUrl() public méthode

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

GetSelectNewItemUrl() public méthode

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)
Résultat string

ResolveResourceUrl() public méthode

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