Is this extension compatible with MW 1.38-1.39? I run tests of this extension on 1.38.2 and get MediaWiki internal error: Error: Class 'NicheWork\MW\Tag' not found.
Extension talk:IframeTag
Ah! I was wondering why it was marked as non-compatible since I installed it on MediaWiki 1.40 with only a minor change (I used third method below).
This missing class is because this extension requires the Composer library nichework/tag-builder. This extension can be installed with one of these 3 ways:
- install the MediaWiki extension IframeTag with Composer (this should work but there are various opinions about its support in MediaWiki), this will automatically install the required library;
- add the extension’s composer.json in the global MediaWiki’s composer.json (or global MediaWiki’s composer.local.json), in the section extra.merge-plugin.include (see Composer#Using_composer-merge-plugin): after running
composer update --no-dev
in the root MediaWiki directory, the library required by this extension will be available; - execute
composer update --no-dev
in the extension directory + add the patch below
diff --git a/extension.json b/extension.json
index 022ac1f..7b97a29 100644
--- a/extension.json
+++ b/extension.json
@@ -40,4 +40,5 @@
}
},
+ "load_composer_autoloader": true,
"manifest_version": 2
}
Hence, except the minor change for the third method, it is compatible with MediaWiki 1.38–1.40, but more importantly it lacks installation instructions.
e.g. Can I write something like $iFrameDomains = [ '*.example.com' ];
?
Hey, there! I want to introduce some iframe's in my wiki and i didn't like the extension "Widgets" so much, so I trying to use yours, but the installs instructions are not clear.
- Should I put the IFrameTag source code into the Extensions folder?
- Should I add a line wfLoadExtension( 'IFrameTag' ); in LocalSettings.php ?
- I notice that MediaWiki:IFrame-cfg.json page already exists in my wiki, with no content, so I understand that I have to set the domains like the description, right?
- Should I made some extra config?
OK, I got it! I download the source code again, named the folder as "IFrame" and now the extension is working just fine!
There are no older topics