Semantic MediaWiki and related extensions
hook
Since: 2.3
Description: Hook to replace the standard
SearchByProperty
with a custom link in
Special:Browse
to an extended list of results (return
false
to replace the link)
Reference class:
HtmlBuilder.php
Signature
use Hooks;
use
SMW\DIProperty
;
use
SMW\DIWikiPage
;
\Hooks::register(
'SMW::Browse::BeforeIncomingPropertyValuesFurtherLinkCreate'
,
function
( DIProperty $property,
DIWikiPage
$subject, &$propertyValue ) {
// return `false` to replace the link
return
true
;
} );
See also
For a usage example, see the
SemanticCite
extension
About
|
General disclaimer
|
Privacy policy
Generated on Sun Apr 28 2024 03:09:11 for Semantic MediaWiki and related extensions by
1.8.13