Foreign content of other phpwcms

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:




Beschreibung

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');
  • split by function - value: F-function1|function2|function3
  • split by section - value: S-SECT1|SECT2|SECT3

The processing is done by the pipe | separated sequence.


Procedure for the use of the sections:

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”.
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.


The menu of phpwcms installation will be shown on another page:

  • In the template, the area is to be displayed surrounded with
    <!--MENU_START//-->
      <ul><li>Menu</li><ul>
    <!--MENU_END//-->
  • In the calling side this part is integrated with
    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

english/other-enhancements/foreign-content-of-phpwcms.txt · Last modified: 2012/04/09 11:24 by Claus
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0