This simple extension adds a new menu item called "View Source" in Content Studio, bound to Ctrl+U.
- Make a directory to hold the extension (and possibly more extensions) The reason for this is explained in the Content Studio Integration Guide
mkdir cs-extensions
- clone the repository to your local machine into this directory
cd cs-extensions
git clone https://github.com/escenic/cs-extension-view-source.git
- start Content Studio from the command line with an additional parameter instructing it to load extensions from the directory you created in step 1:
javaws http://content-engine-host/studio/Studio.jnlp?com.escenic.script.root=/path/to/cs-extensions
- Inside Content Studio, open the Debug menu (see the bottom of this page from the Integration Guide), and enable the "Developer Mode" — This will enable all extensions in the folder specified.
This is explained in more detail in the section on deploying extensions in the Integration Guide.
- Make the directory
/opt/escenic/engine/studio/extensions
on the Content Studio server
mkdir -p /opt/escenic/engine/studio/extensions
- Clone the repository into it
cd /opt/escenic/engine/studio/extensions
git clone https://github.com/escenic/cs-extension-view-source.git
- Start Content Studio as normal. Note, however that caching policies on the main webservice endpoint may cause the extension not to appear immediately, since Content Studio will cache the web service endpoint. If this happens do a File → Refresh and then restart Content Studio
You can, if you want, install the extension but leave it as disabled, only enabling it if you pass the com.escenic.studio.extension.enable request parameter to Content Studio:
- Do a "Server" installation as above
- Remove the "autoinstall" flag from the
package.json
- To enable it for one user, run Content Studio using
javaws http://content-engine-host/studio/Studio.jnlp?com.escenic.studio.extension.enable=view-source