PoNG Module: MediaWiki View: Unterschied zwischen den Versionen

Aus MH
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „Category:PoNGThis module shown MediaWiki content in your PoNG portal. Please have a look at the other [[PoNG_Modules#Standard_Modules_coming_with_PoN…“)
 
(kein Unterschied)

Aktuelle Version vom 17. Februar 2015, 19:32 Uhr

This module shown MediaWiki content in your PoNG portal.

Please have a look at the other standard modules coming with PoNG.

Usage in "structure"

Simply add a action to the type array with "type": "pong-mediawiki"

Example structure file extract:

{
  "layout": {
     ...
     "rows": [
     {
       "rowId": "bla",
       "type" : "pong-mediawiki",
       "resourceURL": "http://mh-svr.de/mw/",        
       "resourceParam": { "page": "PoNG", "wikiRef":"/mw/index.php/", "wikiImg":"/mw/images/" },
       ...
     },
     ...
   ],
   ...
}

Since the REST API of the MediaWiki is used, there is no meta description file to be loaded.

So all the definition for this view have to be provided in the layout structure file in the field resourceParam. You have to provide the fields:

  • page: The initial page to be displayed.
  • wikiRef: WIKI internal href start with this string.
  • wikiImg: WIKI internal image src start with this string.