This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cmsimple_scripting [2014/08/14 22:03] 127.0.0.1 external edit |
cmsimple_scripting [2017/01/31 09:43] Hartmut Keil [Inserting an external web page's content] |
||
---|---|---|---|
Line 221: | Line 221: | ||
* the external site won't be displayed as intended by it's authors, because the <head> information is ignored | * the external site won't be displayed as intended by it's authors, because the <head> information is ignored | ||
- | Instead it is recommend to use [[http://cmsimplewiki.com/doku.php/plugins/wrapper|Wrapper]], which allows you to insert the contents of an external page in an iframe. | + | Instead it is recommend to use [[http://cmsimplewiki-com.keil-portal.de/doku.php/plugins/wrapper|Wrapper]], which allows you to insert the contents of an external page in an iframe. |
But be aware of legal issues: if you do not have express permission of the owner of the external website to include the page into your website, it is better to just put a link to the external page. | But be aware of legal issues: if you do not have express permission of the owner of the external website to include the page into your website, it is better to just put a link to the external page. | ||
Line 239: | Line 239: | ||
<code>{{{DON'T CHANGE THIS LINE:plugin('...');}}}</code>)), so you can simply write: | <code>{{{DON'T CHANGE THIS LINE:plugin('...');}}}</code>)), so you can simply write: | ||
<code>{{{name_of_the_function(parameters);}}}</code> | <code>{{{name_of_the_function(parameters);}}}</code> | ||
+ | |||
+ | Since CMSimple_XH 1.6.5 additionally the semicolon at the end and the parentheses are optional, so you can write: | ||
+ | <code>{{{name_of_the_function parameters}}}</code> | ||
If there doesn't exist a single function that you can call, just define it in [[customization#userfuncsphp|userfuncs.php]]. This file will be included by CMSimple_XH, so all functions defined there are available for use on the page. | If there doesn't exist a single function that you can call, just define it in [[customization#userfuncsphp|userfuncs.php]]. This file will be included by CMSimple_XH, so all functions defined there are available for use on the page. |