close

Filter

loading table of contents...

Studio Developer Manual / Version 2307

Table Of Contents

9.18.3 Usage

To enable the ReusableDocumentFormTabsPlugin, add the following (or something similar) to one of your Studio plugins:

        import Config from "@jangaroo/runtime/Config";
import StudioPlugin from "@coremedia/studio-client.main.editor-components/configuration/StudioPlugin";
import ReusableDocumentFormTabsPlugin from "@coremedia/studio-client.main.editor-components/sdk/desktop/reusability/ReusableDocumentFormTabsPlugin";

// ...
Config(StudioPlugin, {
  //...
  configuration: [
    //...
    new ReusableDocumentFormTabsPlugin({
      defaultLimit: 2,
      limitsPerContentType: { "CMArticle": 3 }
    }),
    //...
  ];
//...
});

      

For each content type, a reusability limit can be configured that limits the amount of actual WorkArea Premulars for content items of this type. A limit of 0 effectively disables reusability for content items of the corresponding type. You can configure a default limit via the attribute defaultLimit or individually for each content type via the attribute limitsPerContentType.

The property limitsPerContentType overrides the property defaultLimit. So you can easily implement a white list for reusability (defaultLimit set to 0, limitsPerContentType set for some content types) as well as a black list (defaultLimit set to some value, limitsPerContentType set to 0 for some values)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.