NAVIGATION
Selective adoption of content from a phpwcms-installation. Condition is internal access (own account) to the other phpwcms installation.
V1.0 02.03.2011
Docu: –
Google code r351: Add output actions to renderer
Forum: ... Elemente einer anderen Website zurückliefern lassen [DE]
Forum: News auf zwei Seiten verfügbar machen [DE]
Forum: Navigation dynamisch in einen externen Blog übernehmen [DE]
Author: O. Georgi (slakero) http://phpwcms.de
CMS Version: >= 1.42 r351
Version:
Tag: –
Filename: –
Folder: –
Condtion: –
The notation:
Add output actions to renderer - allows to return specific sections of the page: index.php?alias&phpwcms_output_action=F-function1|function2--S-SECT1|SECT2. Function are 1 parameter functions and allowed functions must be defined in (array)$phpwcms['output_function_filter']. Only functions defined in that config will be usable: $phpwcms['output_function_filter'] = array('trim', 'strip_tags');
The processing is done by the pipe | separated sequence.
News of phpwcms installation will be shown on another page:
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!
The menu of phpwcms installation will be shown on another page:
http://www.example.com/index.php?mypage&phpwcms_output_action=S-MENU
The contents of a phpwcms installation can also be picked up and displayed from other installation ore sides . An admin access to the phpwcms installation is necessary to set the TAGs <!--MENU_START//--> ... <!--MENU_END//-->.
The variant “F-function” is explained later.
— Knut Heermann (flip-flop) 2011/03/01 22:19
$phpwcms['output_function_filter'] = array('trim', 'utf8_encode');
or
To UTF-8 phpwcms_output_action=F-utf8_encode--S-EVENTS From UTF-8 phpwcms_output_action=F-utf8_decode--S-EVENTS
By OG: Forum: remote CSS in den HEAD-Bereich injizieren
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; }
Von OG: Forum: remote CSS in den HEAD-Bereich injizieren
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; }