Extension talk:SideBarMenu
This page used the LiquidThreads extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Extension:SideBarMenu
Hello,
I tried the SideBarMenu extension with Debian Squeeze (mediawiki 1.15, php 5.3.3), but I get the following error in apapche-logfile:
PHP Catchable fatal error: Argument 4 passed to SideBarMenuHooks::renderFromTag() must implement interface PPFrame, none given in /etc/mediawiki/extensions/SideBarMenu/SideBarMenu.hooks.php on line 10, referer: http://foo.bar/mywiki/index.php?title=MediaWiki:Sidebar&action=edit
The parser Preprocessor.php, which should include interface PPFrame, is part of the installation. What's going wrong?
best regards, Wolfgang 217.88.195.6 14:03, 22 January 2013 (UTC)
- Would love to get this working.
- Just installed
- MediaWiki 1.20.2
- PHP 5.3.20 (cgi-fcgi)
- MySQL 5.1.67-community-log
- The extension works fine if used within a page. but it refuses, refuses to load int he sidebar.
- I'm using the vector extension that came with this version of mediawiki Technoshamman (talk) 22:55, 28 February 2013 (UTC)
- Despite the name, SideBarMenu was never intended to actually be placed in the sidebar. SideBarMenu was created to create a custom menu in a article or set of articles through the use of templates. However, i guess there is no good reason why you shouldn't be able to get SideBarMenu to work in the sidebar, but this is not something I myself is going to pursue. Best of luck to you. netbrain (talk) 08:57, 1 March 2013 (UTC)
- It's disappointing that it doesn't work in the sidebar.
- @Technoshamman: I'm going to look for a fix. If I'll find one I'll be sure to post it here. 79.143.212.76 07:45, 22 April 2013 (UTC)
- Arg it changed my entry once more:
- I've found a way of getting the menu in although it's more a hack then a fix. It does work though and is more flexible.
- For it to work I suggest trying the following. First off you need to change the sidebarmenus css file (I'd advise using a different class).
.sidebar-menu-container { position: fixed; ! Fixed makes it move when you scroll. Make it absolute if you don't want it to scroll (not tested) padding: 5px; float: left; clear: left; margin: 5px; left:-10px; !Makes sure it's as left as possible a fix for ie browsers if I'm not mistaken. top:400px; ! Change the height accordingly. I removed the existing sidebar menu all together. z-index:100; ! Makes sure it's always in the top of the content }
- Now you just create a page with the menu on it and put it in the top of each page. Alternatively you could also make a template with the menu included.
- Just tweak it a bit and you'll have a nice work around.
- If theres anyone who fixed it properly I would be interested to know how.
- Anyone who has the privilages may delete my previous post. I can't delete it myself. 79.143.212.76 08:48, 22 April 2013 (UTC)
- Despite the name, SideBarMenu was never intended to actually be placed in the sidebar. SideBarMenu was created to create a custom menu in a article or set of articles through the use of templates. However, i guess there is no good reason why you shouldn't be able to get SideBarMenu to work in the sidebar, but this is not something I myself is going to pursue. Best of luck to you. netbrain (talk) 08:57, 1 March 2013 (UTC)
inline queries within the SideBarMenu ondiscussionpage:Extension talk:SideBarMenu
Think for example that We have A Category called Car, and then we create Pages BMW, Mercedes and Toyota with that category.
Then we would like to just use a #ask [[Category:Car]] and then populate the sidebar with the result. But the problem is that the query returns in Page format and Sidebar does not like that. So either SideBar has to be modified to accept Page formats, or there should be a way to get raw data from the ask query. Keyhan (talk) 14:15, 12 September 2013 (UTC)
- Just tested it myself. I got it to work with the following code:
<sidebarmenu> {{#ask: [[Category:Country]][[:+]] |format=array |name=c}} Countries{{#loop: i | 0 | {{#arraysize:c}} | <nowiki/> * {{#arrayindex:c | {{#var:i}} }} }} </sidebarmenu>
- This creates a sidebarmenu with the contents:
<sidebarmenu> Countries *Norway *Germany </sidebarmenu>
- This solution however requires the extensions Extension:Arrays and Extension:Loops netbrain (talk) 06:29, 13 September 2013 (UTC)
- Problem is now fixed. I had forgotten format=template in the in the query.
- It works greate Keyhan (talk) 12:38, 13 September 2013 (UTC)
Throws "SideBarMenu requires extension ParamProcessor" error
HI.
I'm running this on MW 1.21.2 with SMW 1.8.0.5. Validator 0.51 is installed, but this extension throws the error "SideBarMenu requires extension ParamProcessor".
ParamProcessor has been superceded by Validator.
If I knock out the check for the ParamProcessor version. It then throws
Fatal error: Class 'ParamProcessor\Processor' not found in /var/www/webapps/localoffer_dev/extensions/SideBarMenu/src/Hooks.php on line 155
So as it stands, this extension is broken if you have SMW 1.8+ installed.
Also worth noting, Validator is shortly becoming version 1.0. I've tried this extension with v1.0 and no sidebar shows at all. Mitchelln (talk) 13:53, 8 November 2013 (UTC)
- Works for me, however i'm running latest development version of paramprocessor. 81.166.202.74 08:41, 13 November 2013 (UTC)
Composer installation
Is there any plan to support a composer based installation? Background: Validator 1.0 is needed by the new Semantic MediaWiki (SMW) release 1.9, which needs some additional libraries that are installed by using composer. So, a parallel installation with Validator 0.5.1 to be used for SideBarMenu is impossible. Ralfk (talk) 14:15, 7 January 2014 (UTC)
- I don't have the spare time to do this myself right now, but you are welcome to implement it yourself. 81.166.202.74 06:57, 21 January 2014 (UTC)
- Composer has been implemented. https://packagist.org/packages/mediawiki/side-bar-menu 81.166.202.74 09:02, 3 March 2014 (UTC)
- Great, thanks. I haven't tested it so far. If I have some time I will try to install it via composer. Ralfk (talk) 09:15, 3 March 2014 (UTC)
- In the root folder (next to the index.php), do:
- wget http://getcomposer.org/composer.phar
- php composer.phar require mediawiki/side-bar-menu @dev Tamriel (talk) 23:38, 6 June 2014 (UTC)
- I've just installed MediaWiki and I'm trying to use this extension - I've installed using the above command but I'm thinking I've done something wrong as using the example from the extensions wiki page all I see in the actual Sidebar is :
- FIRE TRUCK]]
- but in the Mediawiki:Sidebar page I see the correct layout.
- This behavior doesn't change whether I have require_once "$IP/extensions/SideBarMenu/SideBarMenu.php" in my LocalSettings.php or not.
- Anyone got any ideas of where I can start looking ? 94.125.16.11 15:30, 7 July 2014 (UTC)
- I think, the goal of this extension is a table of contents inside an article. I don't know if it is possible to have it inside the Mediawiki:Sidebar. Tamriel (talk) 20:20, 7 July 2014 (UTC)
- Ah ok ... though the description of this is then somewhat misleading :) 87.81.236.121 07:53, 8 July 2014 (UTC)
- I think, the goal of this extension is a table of contents inside an article. I don't know if it is possible to have it inside the Mediawiki:Sidebar. Tamriel (talk) 20:20, 7 July 2014 (UTC)
- Great, thanks. I haven't tested it so far. If I have some time I will try to install it via composer. Ralfk (talk) 09:15, 3 March 2014 (UTC)
#subpage does not work properly
Hi,
I am using Sidebar Menu latest version for our MediaWiki. When I use "#subpage" with other elements it only shows those subpage listings but does not show other included elements. But when I use them without "#subpage" it works fine. Like mentione below,
<sidebarmenu>
- subpage User:username
Element 1 Element 2 </sidebarmenu> 143.97.2.35 13:52, 22 September 2014 (UTC)
- Have you enabled: http://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages ? 81.166.202.74 17:56, 22 September 2014 (UTC)
- Yes, it is enabled for all namespaces.
- Thanks,
- Umesh 143.97.2.35 12:08, 24 September 2014 (UTC)
- Hi,
It is enabled for all namespaces, but still doesn't work.
- Thanks,
- Umesh 143.97.2.35 12:57, 24 September 2014 (UTC)
Exclude Sidebarmenu from Book printed as pdf
Is there a way to hide SideBarMenu from a book when created as pdf.
203.191.35.22 13:46, 6 October 2014 (UTC)
#subpage depth
Can I set the depth level subpages are listed using #subpage? If not, that would be a nice feature.
E.g. I want to show [[A/B]] and [[A/C]] but not [[A/B/D]]. Ralfk (talk) 12:32, 18 November 2014 (UTC)
Sidebar Menus are not showing in wiki1.35.1
I am using SideBarMenu Extension into wiki 135.1. But its showing Warning messages, also Not showing side bar menus. please suggest me any solution or any other extension if i can use for my work.
Warning: Constant SBM_EXPANDED already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 18
Warning: Constant SBM_CONTROLS_SHOW already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 19
Warning: Constant SBM_CONTROLS_HIDE already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 20
Warning: Constant SBM_JS_ANIMATE already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 21
Warning: Constant SBM_EDIT_LINK already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 22
Warning: Constant SBM_CLASS already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 23
Warning: Constant SBM_STYLE already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 24
Warning: Constant SBM_MINIMIZED already defined in C:\xampp\htdocs\mw\extensions\SideBarMenu\SideBarMenu.php on line 25 Pooja2425 (talk) 10:28, 17 June 2021 (UTC)
SideBarMenu requires extension ParamProcessor
Hi. I installed paramprocessor with composer. Mediawiki throws out this error. SideBarMenu requires extension ParamProcessor.
In Composer JSON:
require
"param-processor/param-processor": "^1.2.2",
In LocalSettings.php
require_once "$IP/extensions/SideBarMenu/SideBarMenu.php";
sidebarmenu. I checked also under extensions/SideBarMenu/vendor folder param-processor is coming.Is there any solution for this? 2A01:799:46A:4600:654C:FBD0:A99D:3B3 (talk) 18:39, 9 March 2023 (UTC)