NAVIGATION
This shows you the differences between two versions of the page.
|
english:other-enhancements:foreign-content-of-phpwcms [2012/01/21 13:00] Knut Heermann (flip-flop) created |
english:other-enhancements:foreign-content-of-phpwcms [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 38: | Line 38: | ||
| - | ==== Beschreibung ==== | + | ==== Description ==== |
| The notation: | The notation: | ||
| Line 54: | Line 54: | ||
| * split by function - value: **%%F-function1|function2|function3%%** | * split by function - value: **%%F-function1|function2|function3%%** | ||
| * split by section - value: **%%S-SECT1|SECT2|SECT3%%** | * split by section - value: **%%S-SECT1|SECT2|SECT3%%** | ||
| + | |||
| + | The processing is done by the pipe | separated sequence. | ||
| \\ | \\ | ||
| Line 61: | Line 63: | ||
| **News of phpwcms installation will be shown on another page:** | **News of phpwcms installation will be shown on another page:** | ||
| - | * For example, the calling page set up a command at the place from where you want to display the content of the page called: \\ ##%%{URL:http://example.com/index.php?ALIAS&phpwcms_output_action=S-NEWS01}%%## \\ Where "ALIAS" is an category/article of the called page "example.com". | + | * For example, the calling page set up a command at the place from where you want to display the content of the page called: \\ ##%%{URL:http://example.com/index.php?ALIAS&phpwcms_output_action=S-NEWS01}%%## \\ |
| + | Where "ALIAS" is an category/article of the called page "example.com".\\ | ||
| + | The call is working with id=[catergory ID] and aid=[article ID] too instead of ALIAS!\\ | ||
| + | Advantage of id and aid compared to ALIAS: If the alias of the page or structure level is changing later on (e.g. by SEO- adjustments), the link will still keep on working! | ||
| - | + | * In the called side, the sections can be called are limited with the TAGs ##%%<!--NEWS01_START//-->%%## ...... ##%%<!--NEWS01_END//-->%%##. \\ Similarly, with **%%...&phpwcms_output_action=S-NEWS02%%** the TAGs **%%<!--NEWS02_START//-->%%** ...... **%%<!--NEWS02_END//-->%%** etc. | |
| - | * In the called side, the sections can be called are limited with the TAGs ##%%<!--NEWS01_START//-->%%## ...... ##%%<!--NEWS01_END//-->%%##. \\ Similarly, with **%%...&phpwcms_output_action=S-NEWS02%%** die TAGs **%%<!--NEWS02_START//-->%%** ...... **%%<!--NEWS02_END//-->%%** etc. | + | |
| Line 91: | Line 95: | ||
| --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2011/03/01 22:19// | --- //[[flip-flop@myrealbox.com|Knut Heermann (flip-flop)]] 2011/03/01 22:19// | ||
| + | |||
| + | ==== More Possibilities ==== | ||
| + | |||
| + | <code> | ||
| + | $phpwcms['output_function_filter'] = array('trim', 'utf8_encode'); | ||
| + | </code> | ||
| + | or | ||
| + | <code> | ||
| + | To UTF-8 phpwcms_output_action=F-utf8_encode--S-EVENTS | ||
| + | From UTF-8 phpwcms_output_action=F-utf8_decode--S-EVENTS | ||
| + | </code> | ||
| + | |||
| + | |||
| + | ==== Load the appropriate CSS from another Server: ==== | ||
| + | By OG: Forum: [[http://forum.phpwcms.org/viewtopic.php?p=135105#p135105|remote CSS in den HEAD-Bereich injizieren]] \\ | ||
| + | |||
| + | |||
| + | <code js> | ||
| + | |||
| + | if(typeof load_remote_css == "undefined" || load_remote_css == true) { | ||
| + | |||
| + | var css_link = document.createElement('link'); | ||
| + | css_link.type = "text/css"; | ||
| + | css_link.rel = "stylesheet"; | ||
| + | css_link.href = "http://www.example.com/my.css"; | ||
| + | document.getElementsByTagName('head')[0].appendChild(css_link); | ||
| + | |||
| + | var load_remote_css = false; | ||
| + | |||
| + | } | ||
| + | </code> | ||
| + | ==== Load the appropriate JS from another Server: ==== | ||
| + | Von OG: Forum: [[http://forum.phpwcms.org/viewtopic.php?f=28&t=22654&start=15#p141854|remote CSS in den HEAD-Bereich injizieren]] \\ | ||
| + | <code js> | ||
| + | if(typeof load_remote_js == "undefined" || load_remote_js == true) { | ||
| + | var js_script = document.createElement('script'); | ||
| + | //js_script.async = 1; | ||
| + | js_script.src = "http://www.example.com/my.js"; | ||
| + | document.getElementsByTagName('head')[0].appendChild(js_script); | ||
| + | var load_remote_js = false; | ||
| + | } | ||
| + | </code> | ||