Extension:Page Forms/SMW semantic data updating change

This is the change to the Semantic MediaWiki code needed in order to get changes to the semantic markup in templates to show up automatically in pages that use those templates.

In /includes/SMW_GlobalFunctions.php in the "SemanticMediaWiki" directory, where the hooks are registered, below the line $wgHooks['ArticleFromTitle'][] = 'smwfShowListPage'; add the following line: $wgHooks['LinksUpdateConstructed'][] = 'smwfUpdateSemanticData'; Then, lower down in the same file, below the declaration for the function "smwfProcessInlineQueryParserFunction", add the following: /** * Update the semantic data for a single page */ function smwfUpdateSemanticData($links_update) { $title = $links_update->mTitle; if ( smwfIsSemanticsProcessed($title->getNamespace) && ! SMWFactbox::isNewArticle ) { SMWFactbox::storeData($title, true); }       return true; }