|
|
| | | Voraussetzungen = | | | Voraussetzungen = |
| | * einen Artikel, der das [[DynPG Module einbinden|Modul Dynamische Navigation einbindet]] | | * einen Artikel, der das [[DynPG Module einbinden|Modul Dynamische Navigation einbindet]] |
| − | | Link = http://examples.gampers.ch/examples/sitemap?read_group=2 | + | | Link = http://examples.gampers.ch/examples/sitemap?read_group=1 |
| | | Snippet = {{Snippet - Sitemap}} | | | Snippet = {{Snippet - Sitemap}} |
| | | Code = | | | Code = |
|
|
| | | | |
| | // Testen, ob die Sitemap im Menü angewählt wurde | | // Testen, ob die Sitemap im Menü angewählt wurde |
| − | if ((isset($_GET['read_group']) && $_GET['read_group'] == 16) | + | if ((isset($_GET['read_group']) && $_GET['read_group'] == 7) |
| − | || (isset($_GET['read_category']) && $_GET['read_category'] == 16)) { | + | || (isset($_GET['read_category']) && $_GET['read_category'] == 7)) { |
| | $GLOBALS["DynPG"]->saveCurrentParams(); // aktuelle Parametereinstellungen speichern | | $GLOBALS["DynPG"]->saveCurrentParams(); // aktuelle Parametereinstellungen speichern |
| | | | |
|
|
| | | Voraussetzungen = | | | Voraussetzungen = |
| | * einen Artikel, der das [[DynPG Module einbinden|Modul Dynamische Navigation einbindet]] | | * einen Artikel, der das [[DynPG Module einbinden|Modul Dynamische Navigation einbindet]] |
| − | | Link = http://examples.gampers.ch/examples/sitemap-xml?read_group=2 | + | | Link = http://examples.gampers.ch/examples/sitemap-xml?read_group=1 |
| | | Snippet = {{Snippet - Sitemap XML}} | | | Snippet = {{Snippet - Sitemap XML}} |
| | | Code = | | | Code = |
|
|
| | $GLOBALS["DynPG"]->SetParam_PlugIn_Param('DPGdynmenu', 'href_subpages', | | $GLOBALS["DynPG"]->SetParam_PlugIn_Param('DPGdynmenu', 'href_subpages', |
| | Array( | | Array( |
| − | 16 => Array( | + | 7 => Array( |
| | 'page' => '../examples/sitemap-xml/sitemap.xml.php{query}', | | 'page' => '../examples/sitemap-xml/sitemap.xml.php{query}', |
| | 'successors' => true | | 'successors' => true |
|
|
| | ?> | | ?> |
| | </div> | | </div> |
| | + | |
| | + | <!-- Link zur XML Sitemap --> |
| | <div id="footer"> | | <div id="footer"> |
| | <a href="sitemap.xml.php" >XML Sitemap</a> | | <a href="sitemap.xml.php" >XML Sitemap</a> |
|
|
| | $GLOBALS["DynPG"]->SetParam_PathToRoot('../../dynpg/'); // DynPG-Pfad setzen | | $GLOBALS["DynPG"]->SetParam_PathToRoot('../../dynpg/'); // DynPG-Pfad setzen |
| | | | |
| − | echo '<?xml version="1.0" encoding="UTF-8"?>'; | + | print '<?xml version="1.0" encoding="UTF-8"?>'; |
| | | | |
Fatal error: Uncaught TypeError: MWExceptionHandler::rollbackMasterChangesAndLog(): Argument #1 ($e) must be of type Exception, Error given, called in /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/exception/MWExceptionHandler.php on line 137 and defined in /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/exception/MWExceptionHandler.php:111
Stack trace:
#0 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/exception/MWExceptionHandler.php(137): MWExceptionHandler::rollbackMasterChangesAndLog(Object(Error))
#1 [internal function]: MWExceptionHandler::handle(Object(Error))
#2 {main}
thrown in /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/exception/MWExceptionHandler.php on line 111