Logo Help Center

Elvis 6 plug-ins introduction - URL variables

Elvis 6 plug-ins introduction - URL variables

Action plug-in URL settings, such as url and the icon URLs (like icon16Url) can be defined relative to the URL (or the base URL) of the plug-in. This allows you to create a plug-in 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}. plug-in folder URL.

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

  • {pluginBaseUrl}. Base plug-in 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 plug-in name.

  • ${serverUrl}. Elvis server URL.

http.//www.myelvisserver.com

  • ${pluginsRootUrl}. Active plug-ins folder URL.

http.//www.myelvisserver.com/plugins

  • ${pluginsBaseRootUrl}. Base plug-ins 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.