Table of Contents

Enum CommandNames

Namespace

Names of commands known to 2sxc CMS - for use in toolbars and calling commands directly from code

Fields

add adds another demo-item to a list of items. It does not open the edit-dialog.
The new item is placed after the item the (+) was clicked on.
💡 This is different than new, which opens a dialog to add something.
🪜 Only appears on toolbars of items which are in a list.
📩 Parameters

add-existing opens a dialog allowing the user to select an existing item to add to a list of items.
The new item is placed after the item the (+) was clicked on.
🪜 Only appears on toolbars of items which are in a list.
📩 Parameters
🆕 in v11.01

app opens the app-admin dialog
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected from context)

app-import opens the dialog to import an App.
🔘 This is not available on the toolbar.
📩 No params required, (auto-detected from context)

app-resources opens the edit dialog for app-resources (multi-language texts, labels etc.).
🔘 It's disabled on the toolbar if the app doesn't have resource-values to configure.
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected from context)

app-settings opens the edit dialog for the app-settings.
🔘 It's disabled on the toolbar if the app doesn't have setting-values to configure
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected from context)

apps opens the manage all apps dialog.
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected based on toolbar)

code will execute custom javascript.
🔘 This is mainly for toolbars, to add buttons with custom code.
📩 Parameters
this used to be called custom and had a different setup

copy opens the edit-dialog for the current item in copy-mode, so when saving it will be a new item.
📩 Parameters
🆕 in v14.03

data opens the list to manage all items of a specific content-type.
🔘 Will use the settings of the current template to open. It is only shown to elevated admins.
📩 Parameters

delete will delete (not just remove) a content-item.
💡 This is similar to remove but really deletes the data from the DB.
🔘 It only appears if the toolbar explicitly asks for it.
📩 Parameters (auto-detected from context)

edit opens an edit-dialog.
In scenarios where the page is currently showing a demo item, this will have the same effect as add. So instead of editing the demo item it would trigger a dialog to add a new item.
🔘 Only appears if entityId is known or item is in a list.
📩 Parameters either one of these: Id, In Block, In List (auto-detected from context)

fields opens the dialog to view or modify fields of a content-type.
🔘 On a toolbar it will use the content-type of the current item.
🔐 Toolbar shows this automatically to elevated admins.
📩 Parameters

insights opens the insights logs page
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required.

layout opens the in-page dialog to change the layout of the current content.
📩 No params required, (auto-detected from context)

instance-list opens a dialog to manually re-order items in a list.
🪜 Only appears on toolbars of items which are in a list.
📩 No params required, (auto-detected from context)

metadata opens the edit-dialog for the current metadata item.
🔘 It only appears if the toolbar explicitly asks for it.
📩 Parameters

more create a "…" (ellipsis) button which flips through the button groups of toolbars
🔘 It only appears if the toolbar has more=auto and has multiple groups.
📩 No params required, (auto-detected based on toolbar)

movedown moves a content-item down one position in a list of items.
🪜 Only appears on toolbars of items which are in a list.
📩 Parameters either one of these: In Block, In List (auto-detected from context)

moveup moves a content-item up one position in a list of items.
🪜 Only appears on toolbars of items which are in a list.
📩 Parameters either one of these: In Block, In List (auto-detected from context)

new opens the edit-dialog to create a new item/entity.
If the previous item is in a list, it will add it to that list after the previous item with the toolbar. Otherwise it just creates it and the visualization will differ depending on the App.
🪜 It works differently for lists - in which case it also adds it to the list.
📩 Parameters (usually auto-detected from context)

publish tells the system to update a content-items status to published. If there was a published and a draft before, the draft will replace the previous item
🔘 Appears automatically if the item is in draft mode / not published.
📩 Parameters either one of these: Id, In Block, In List (auto-detected from context)

template-query opens the pipeline/query-designer in a new window.
🔘 It's not available on the simple Content App, only on full Apps. It is disabled if no query is configured.
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected from context)

remove removes an item from a list of items.
🪜 Only appears on toolbars of items which are in a list.
📩 Parameters (auto-detected from context)

replace opens the dialog to assign a different content-item in this slot on module-assigned content items
📩 Parameters (auto-detected from context)

system opens the system dialog for this zone/site.
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected from context)

template-develop opens the template-editor dialog in a new window.
🔐 Toolbar shows this automatically to elevated admins.
📩 No params required, (auto-detected from context)

template-settings will change settings on the template currently used
🔐 Toolbar shows this automatically to elevated admins.