Jump to content

Extension talk:ToolboxExtender

Add topic
From mediawiki.org
Latest comment: 16 years ago by Jldupont in topic How does it know where to insert the code

In the installation routine of this extension is an error. The link in "Version" page links to extension:ShareIt. But the correct link is extension:ToolboxExtender

--A.Burgermeister 11:10, 27 November 2007 (UTC)Reply

Corrected in version 1.0.1. Thanks! Jean-Lou Dupont 12:25, 27 November 2007 (UTC)Reply

How does it know where to insert the code

[edit]

This extension does almost exactly what I would like it to do. I would like to alter it so it extends the Sidebar rather than the Toolbar. I can't figure out how the extension knows where to inject the code into the skin. I assume it has to be here:

		if ( $wgTitle->getNamespace() == NS_SPECIAL )

Can you tell me how I would alter this extension to insert the code after the Sidebar? --Lee 02:16, 6 December 2007 (UTC)

This extension uses the services of Extension:StubManager to register hooks. Hook entry points are implemented then using an 'h' in front of the hook name. Thus, in the code you will find a method 'hMonoBookTemplateToolboxEnd' which corresponds to the entry point for the hook 'MonoBookTemplateToolboxEnd'. This hook is where the 'code' is injected. Coming back to your other question, why don't you use Extension:SidebarEx instead? Jean-Lou Dupont 14:26, 6 December 2007 (UTC)Reply
I didn't use it because I didn't know it existed and my searches for it proved fruitless. But now that a kind soul has pointed me in the right direction, I think I will. Thanks! --Lee 15:34, 6 December 2007 (UTC)
Now that I look more closely at SidebarEx, I don't think it will work for me. It appears to me that it uses the same limited functionality that MediaWiki:Sidebar gives you and not the full wikitext that ToolboxExtender does. Is that correct? I would like to be able to put an image or two in the side bar. --Lee 16:23, 6 December 2007 (UTC)
As you hinted previously, you can alter it to your will. Jean-Lou Dupont 16:27, 6 December 2007 (UTC)Reply