WoodWing Help Center

Elvis 4 plug-ins introduction - URL variables

Elvis 4 plug-ins introduction - URL variables

Action plugin URL settings, such as url and the icon URLs (like icon16Url) can be defined relative to the URL (or the base URL) of the plugin. This allows you to create a plugin which can run directly in any Elvis server installation without having to change the URL setting.

Note. All URL's are without a trailing slash.

There are variables that can be used to create these relative URL's. Let's assume Elvis runs under.

http.//www.myelvisserver.com

  • ${pluginUrl}. Plugin folder URL.

http.//www.myelvisserver.com/plugins/<plugin_group>/<plugin_name>

  • {pluginBaseUrl}. Base plugin folder URL.

http.//www.myelvisserver.com/plugins/plugins_base/<plugin_group>/<plugin_name>

The following variables are also available and do not depend on your plugin name.

  • ${serverUrl}. Elvis server URL.

http.//www.myelvisserver.com

  • ${pluginsRootUrl}. Active plugins folder URL.

http.//www.myelvisserver.com/plugins

  • ${pluginsBaseRootUrl}. Base plugins folder URL.

http.//www.myelvisserver.com/plugins/plugins_base

http.//www.myexternalelvisserver.com

http.//www.myexternalelvisserver.com

Was this article helpful?
0 out of 0 found this helpful / Created: / Updated:
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.