Click or drag to resize
AlchemyStatic File Tokens

Due to the nature of plugins, some details of your plugin may only be known once its installed via the framework. For this reason, Alchemy4Tridion contains special tokens that you can put into your static files that will get parsed during plugin installation.

Available Tokens
${AppUrl}

The url of your plugin in relation to the Alchemy4Tridion application. ie /Alchemy/YourPluginName/.

Note Note

The Alchemy application url is usually only referenced in relation to Web Services (WebAPI Controllers).

${AssetsUrl}

The url of your plugin's assets folder.

${ControlsUrl}

The url of your plugin's controls folder. This is the folder where all of your .ascx files go.

${CssUrl}

The url of your plugin's StyleSheet folder. This is the folder where all of your .css files go.

${EditorUrl}

The url of your plugin in relation to the Alchemy4Tridion extension. ie /WebUI/Editors/Alchemy/YourPluginName/

Note Note

The editor url is used in relation to Tridion GUI Extensions, and view pages that require Tridion dependencies should use this url rather than the Application Url.

${ImgUrl}

The url of your plugin's image folder. All images will end up in this folder.

${JsUrl}

The url of your plugin's JavaScript folder. All of your .js files will go to this folder.

${LibsUrl}

The url of your plugin's libs folder. All of your JavaScript Library folders that are in the special "Libs" folder will be put at this location.

${Namespace}

The namespace of your plugin. ie Alchemy.Plugins.YourPluginName

${PluginName}

The name of your plugin.

${PluginPath}

The absolute physical path to the file location of your plugin. ie C:\Tridion\Alchemy\Plugins\YourPluginName\

${StaticUrl}

The url of your plugin's assets folder. Alias for ${AssetsUrl}.

${ViewsUrl}

The url of your plugin's views folder. This is the folder where your .aspx and .html files will go.

Tip Tip

Tokens are case insensitive. ${CssUrl} and ${cssurl} will parse to the same value.

Tip Tip

Tokens that parse to URL's will always end in a "/" so that its safe whether you concatenate with a leading slash or not.

Important note Important

Tokens are parsed during plugin installation. This means that after a plugin is installed, the tokens will no longer exist in the static file.

See Also

Other Resources