]> git.proxmox.com Git - pve-docs.git/commitdiff
pvedocs-include.php: add new mediawiki tag <pvehide>
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 17 Oct 2016 07:06:43 +0000 (09:06 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 17 Oct 2016 07:06:43 +0000 (09:06 +0200)
We can use this tag to add content which is not shown
on the final page, but included in the mediawiki search.

debian/tree/pve-docs-mediawiki/pvedocs-include.php

index 29f013fa8d65acc1f6f03e8eeb14da7cf427a1f4..6a37f9aa98770335c1f7d7237b86ae6e63a7d992 100644 (file)
@@ -18,8 +18,19 @@ function efPvedocsParserFunction_Setup(&$parser) {
     # Set a function hook associating the "pvedocs" magic
     # word with our function
     $parser->setFunctionHook( 'pvedocs', 'efPvedocsParserFunction_Render' );
+
+    $parser->setHook('pvehide', 'renderTagPveHideContent' );
+
     return true;
 }
+
+// Render <pvehide>
+function renderTagPveHideContent($input, array $args, Parser $parser,
+PPFrame $frame ) {
+    // simpry return nothing
+    return '';
+}
+
  
 function efPvedocsParserFunction_Magic(&$magicWords, $langCode) {
     # Add the magic word