Pages

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from this space and version 7.0


Note

The shared code feature is currently in limited release. The full release, which will be available to all users, is coming soon.

Info

If you're not already familiar with shared code and how to create it in the Control Panel, see Shared code.

You can develop shared code in a workspace:

Creating new shared code in a workspace

...

  1. Enter the workspace.
  2. Click the quick menu button for Shared code, and select Create shared code.

    Creating new shared code in a workspace

  3. Define the shared code settings. For more information about the settings, see Creating and editing shared code.
  4. When you're done, click Create.
  5. To start executing the shared code on the site, click Activate, and then click Activate to confirm. You can also activate the shared code later by editing the code.

Adding existing shared code to a workspace

...

  1. Enter the workspace.
  2. Click the quick menu button for Shared code, and select Add existing shared code.

    Adding existing shared code to a workspace

  3. Select the pieces of shared code you want to add to the workspace, and click Add. You can filter the pieces by typing a shared code ID or name in the search field.

    Adding existing shared code to a workspace

  4. Optionally, to change the activation status of an added piece of shared code, edit the code.

Editing shared code in a workspace

...