The URL setting is one of the settings of an Action plug-in that can be configured in its configuration file. For more information, see Elvis 6 Action plug-ins - configuration settings.
Required | Yes |
Description | The URL setting points to the Web page that will be loaded when the plug-in is executed. The main page and its resources can be hosted within the plug-in folder, but it can also be on an external server such as HTML, PHP, ASP, and JSP. |
Basic setting |
|
Internally hosted plug-ins
Internally hosted plug-ins can have a URL relative to the Elvis server domain. This makes it possible to create a plug-in 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 plug-in folder
Assume we have a plug-in called my_plugin, with the following path: active/my_plugin/index.html.
<url>${pluginUrl}/index.html</url>
Internally hosted, in the base plug-ins folder
Assume we have a plug-in that uses the HTML page from the plug-in base, for example the debug plug-in, 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 plug-in hosted on a different machine, different domain, etc.
<url>http://www.myserver.com/specialplugin/dosomething.php</url>
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.