Elxis CMS Forum
Support => General => Topic started by: xmanhattan on March 30, 2013, 13:30:29
-
Hello all,
Just wondering if there is a way to load a bot, addthis, into the index.php of the template like using elxLoadModule?
-
99% I thought it could be done, but you have to change it accordingly for bots.
-
Are you saying that there is a command such as elxLoadBots?
-
No there is no such thing, I said that we can create it / implant it.
What is modules & bot ? of course php ! ( and so, if we create an xml to configure it according to our needs if we need to edit it via administration area) we can call this php file where ever we want.
Got it ?
-
No, you cannot include bots or plugins like that. Bots should be bind to a content item and perform find and replace operations on it. This is why they are called content bots / content plugins. But you can use the user/content module too. Create a new module, assign it to position, eg. special, and include via the editor inside the module text area the bot you want to execute. Note that not all bots can run this way as some of them require content items but most of them will run fine.
Especially for Elxis 4.x
The content module on Elxis 4.x has a parameter to set if you want to execute plugins within this module or not. If you set it to yes then plugins will be executed inside that content module. This way you can convert almost any plugin into a module.
Example (Elxis 4.x)
If you want to display a video from YouTube in your site's left column create a new content module, assign it in modules position left, enable plugins executions on it and in the text area provide something like that:
{youtube width="180" height="150"}YouTube video ID{/youtube}
Note 1: We set the video width to just 180 pixels as it will be displayed in the left column which is not too wide.
Note 2: You can run unlimited plugins within the same content module.
-
Okay, got it. Thanks