Javascript for Episerver 7.5 cms

CreateContentFromSelector

Location

epi-cms/widget/command/CreateContentFromSelector

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_currentContentContext

_currentContext

_modelChangeWatcher

_waitingForContext

addToParentsAssetsFolder

Indicate if the command should attach content to the parent's assets folder.

canChangeLocalAssetName

In case "createAsLocalAsset" is TRUE, indicates we can change the name when create a new local asset

canExecute

Default value indicate that command can execute

canSelectOwnerContent

Indicate that command can select owner content

category

confirmActionText

Confirm action text in dialog

containerTypeIdentifiers

Type identifiers of content

contentDataStore

contentRepositoryDescriptors

contextRootLabel

Overrides label of the contextual root node.

createAsLocalAsset

Indicate if the content should be created as local asset of its parent.

creatingTypeIdentifier

Type identifier of the content which is being created.

description

Description in dialog

destroyOnHide

Indicate that dialog destroy on hide

iconClass

ignoreVersionWhenComparingLinks

isAvailable

label

model

modelContent

That model selector dialog

order

roots

The roots to show in the selector.

showButtons

Indicate that command show buttons

showRoot

True if show root on dialog, otherwise don't show root

title

Title in dialog

tooltip

typeDescriptorManager

value

Default select content

Methods

protected method _compareUris ( obj1 , obj2 )

Checks if the URI:s are equal

Parameters

protected method _createDialog ( )

Create selector dialog.


protected method _execute ( )

Executes this command; ...


protected method _getPseudoContextualContent ( )

Get pseudo contextual content


protected method _isContentContext ( ctx )

Verifies that the context has content data

Parameters

protected method _isSameAsCurrentContentContext ( ctx )

Checks if the content context has Id and PreferredLanguage the same as the already loaded current content context.

Parameters

protected method _isSameAsCurrentContext ( uri )

Checks if the URI is the same as the already loaded context.

Parameters

protected method _onContentSelected ( )

When selected parent content, it should be hide dialog and change view.


protected method _setDialogButtonState ( contentLink )

Set state of dialog button.

Parameters

protected method _switchView ( content )

Change view to Create Content with parent content

Parameters

public inherited method canHaveContextualContent ( contentItem )

Verifies the given object allowed to show contextual content or not

Parameters

protected method contentContextChanged ( ctx , callerData )

Called when the currently loaded content changes. I.e. a new content data object is loaded into the preview area.

Parameters

protected method contentContextUpdated ( ctx , callerData )

Called when the currently loaded content updated.

Parameters

public inherited method decoratePseudoContextualCommands ( commands )

Converts the given commands to work in case pseudo contextual content

Parameters

public inherited method getContextualRoot ( contentItem )

Get contextual content from the given content item data

Parameters

public inherited method getContextualRootName ( contentItem )

Get contextual root name based on the current content context data type.

Parameters

protected method getCurrentContent ( )

Returns either the current content or a deferred which will resolve a content data as soon as it becomes available.


public inherited method hasContextual ( contentAncestors )

Verifies the given tree node has a ancestor is contextual or not

Parameters

public inherited method isContextualContent ( contentItem )

Verifies the given content item data is contextual or not

Parameters

public inherited method isContextualRoot ( contentItem )

Checks to see the given data item object is contextual root or not

Parameters

public inherited method isPseudoContextualRoot ( contentItem )

Checks to see if the item is a pseudo contextual content

Parameters

public inherited method isTypeOfRoot ( contentItem )

Checks to see if the item is type of root node such as: root, sub root, context root

Parameters

public inherited method itemChanged ( id , item )

Notification event when an item has been patched or reloaded.

Parameters

protected method own ( )

Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.


public method postscript ( )

Initial settings value.