mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-08-06 04:21:30 +00:00
pvedocs-include.php: add new mediawiki tag <pvehide>
We can use this tag to add content which is not shown on the final page, but included in the mediawiki search.
This commit is contained in:
parent
115aef16f8
commit
599714d655
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user