Logo Help Center

Elvis 4 action plug-ins setting - URL

Elvis 4 action plug-ins setting - URL

(1) Required setting

The url points to the web page that will be loaded when the plugin is executed. The main page and it's resources can be internally hosted inside the plugin folder, but it can also be on an external server as HTML, PHP, ASP, JSP, etc.

<action>
    <url>...</url>
</action>

Internally hosted plugins

Internally hosted plugins can have a url relative to the Elvis server domain. This allows you to create a plugin which can run directly in any Elvis server installation without having to change the url setting. There are variables available that can be used to create these relative URLs.

Examples

Internally hosted, in the plugin folder

Assume we have a plugin called my_plugin, with the following path: active/my_plugin/index.html.

<url>${pluginUrl}/index.html</url>

Internally hosted, in the base plugins folder

Assume we have a plugin that uses the HTML page from the plugin base, for example the debug plugin, which has the following path: plugin_base/action.base/debug.base/index.html.

<url>${pluginBaseUrl}/index.html</url>

Or:

<url>${pluginsBaseRootUrl}/action.base/debug.base/index.html</url>

Externally hosted

Assume that we have a plugin hosted on a different machine, different domain, etc.

<url>http://www.myserver.com/specialplugin/dosomething.php</url>
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.