From: Dietmar Maurer Date: Mon, 17 Oct 2016 07:06:43 +0000 (+0200) Subject: pvedocs-include.php: add new mediawiki tag X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=599714d65543dd88a17222526116c36da615f463 pvedocs-include.php: add new mediawiki tag We can use this tag to add content which is not shown on the final page, but included in the mediawiki search. --- diff --git a/debian/tree/pve-docs-mediawiki/pvedocs-include.php b/debian/tree/pve-docs-mediawiki/pvedocs-include.php index 29f013f..6a37f9a 100644 --- a/debian/tree/pve-docs-mediawiki/pvedocs-include.php +++ b/debian/tree/pve-docs-mediawiki/pvedocs-include.php @@ -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 +function renderTagPveHideContent($input, array $args, Parser $parser, +PPFrame $frame ) { + // simpry return nothing + return ''; +} + function efPvedocsParserFunction_Magic(&$magicWords, $langCode) { # Add the magic word