|
|
| | | 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"?>'; |
| | | | |
Unexpected non-MediaWiki exception encountered, of type "Error"
[451f7051] /wiki_de/index.php?diff=3519&oldid=3489&title=Codebeispiele_-_Sitemap Exception from line 436 of /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php: Call to undefined function each()
Backtrace:
#0 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php(546): DiffEngine->diag(integer, integer, integer, integer, integer)
#1 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php(347): DiffEngine->compareSeq(integer, integer, integer, integer)
#2 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php(228): DiffEngine->diffLocal(array, array)
#3 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php(725): DiffEngine->diff(array, array)
#4 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php(864): Diff->__construct(array, array)
#5 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DairikiDiff.php(987): MappedDiff->__construct(array, array, array, array)
#6 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/TableDiffFormatter.php(193): WordLevelDiff->__construct(array, array)
#7 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DiffFormatter.php(143): TableDiffFormatter->changed(array, array)
#8 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DiffFormatter.php(83): DiffFormatter->block(integer, integer, integer, integer, array)
#9 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DifferenceEngine.php(910): DiffFormatter->format(Diff)
#10 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DifferenceEngine.php(813): DifferenceEngine->generateTextDiffBody(string, string)
#11 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DifferenceEngine.php(743): DifferenceEngine->generateContentDiffBody(WikitextContent, WikitextContent)
#12 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DifferenceEngine.php(665): DifferenceEngine->getDiffBody()
#13 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DifferenceEngine.php(635): DifferenceEngine->getDiff(string, string, string)
#14 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/diff/DifferenceEngine.php(443): DifferenceEngine->showDiff(string, string, string)
#15 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/Article.php(826): DifferenceEngine->showDiffPage(boolean)
#16 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/Article.php(549): Article->showDiffPage()
#17 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/actions/ViewAction.php(44): Article->view()
#18 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/Wiki.php(428): ViewAction->show()
#19 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/Wiki.php(292): MediaWiki->performAction(Article, Title)
#20 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/Wiki.php(588): MediaWiki->performRequest()
#21 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/includes/Wiki.php(447): MediaWiki->main()
#22 /home/httpd/vhosts/fuchsloch.ch/dynpg/wiki_de/index.php(46): MediaWiki->run()
#23 {main}