Table of Contents

Class ContextIdentifier

ContextIdentifier is used to initialize a Sxc object outside of the default context.

About the ContextIdentifier

When you use the ContextIdentifier to get a $2sxc(contextIdentifier) you are bypassing various automations which pick up the context by default. The ContextIdentifier has this setup:

export class ContextIdentifier {
  /** ZoneId of this Context */
  zoneId: number;
  /** AppId of this Context */
  appId: number;
  /** PageId of this Context (optional) */
  pageId?: number;
  /** ModuleId of this Context (optional) */
  moduleId?: number;
}

This mode is mainly used

  • when integrating 2sxc into other systems which don't provide the full CMS functionality
  • when creating edit-functionality which is outside the default context, like in the context of a Module where you must edit data of a different App
Package: Api.Js.SxcJs

Properties

appId

AppId of this Context

About the ContextIdentifier

When you use the ContextIdentifier to get a $2sxc(contextIdentifier) you are bypassing various automations which pick up the context by default. The ContextIdentifier has this setup:

export class ContextIdentifier {
  /** ZoneId of this Context */
  zoneId: number;
  /** AppId of this Context */
  appId: number;
  /** PageId of this Context (optional) */
  pageId?: number;
  /** ModuleId of this Context (optional) */
  moduleId?: number;
}

This mode is mainly used

  • when integrating 2sxc into other systems which don't provide the full CMS functionality
  • when creating edit-functionality which is outside the default context, like in the context of a Module where you must edit data of a different App
Declaration
appId: number
Property Value
Type Description
number

moduleId

ModuleId of this Context (optional)

About the ContextIdentifier

When you use the ContextIdentifier to get a $2sxc(contextIdentifier) you are bypassing various automations which pick up the context by default. The ContextIdentifier has this setup:

export class ContextIdentifier {
  /** ZoneId of this Context */
  zoneId: number;
  /** AppId of this Context */
  appId: number;
  /** PageId of this Context (optional) */
  pageId?: number;
  /** ModuleId of this Context (optional) */
  moduleId?: number;
}

This mode is mainly used

  • when integrating 2sxc into other systems which don't provide the full CMS functionality
  • when creating edit-functionality which is outside the default context, like in the context of a Module where you must edit data of a different App
Declaration
moduleId?: number
Property Value
Type Description
number

pageId

PageId of this Context (optional)

About the ContextIdentifier

When you use the ContextIdentifier to get a $2sxc(contextIdentifier) you are bypassing various automations which pick up the context by default. The ContextIdentifier has this setup:

export class ContextIdentifier {
  /** ZoneId of this Context */
  zoneId: number;
  /** AppId of this Context */
  appId: number;
  /** PageId of this Context (optional) */
  pageId?: number;
  /** ModuleId of this Context (optional) */
  moduleId?: number;
}

This mode is mainly used

  • when integrating 2sxc into other systems which don't provide the full CMS functionality
  • when creating edit-functionality which is outside the default context, like in the context of a Module where you must edit data of a different App
Declaration
pageId?: number
Property Value
Type Description
number

zoneId

ZoneId of this Context

About the ContextIdentifier

When you use the ContextIdentifier to get a $2sxc(contextIdentifier) you are bypassing various automations which pick up the context by default. The ContextIdentifier has this setup:

export class ContextIdentifier {
  /** ZoneId of this Context */
  zoneId: number;
  /** AppId of this Context */
  appId: number;
  /** PageId of this Context (optional) */
  pageId?: number;
  /** ModuleId of this Context (optional) */
  moduleId?: number;
}

This mode is mainly used

  • when integrating 2sxc into other systems which don't provide the full CMS functionality
  • when creating edit-functionality which is outside the default context, like in the context of a Module where you must edit data of a different App
Declaration
zoneId: number
Property Value
Type Description
number