Extension talk:SideBarMenu

About this board

SideBarMenu requires extension ParamProcessor

1
2A01:799:46A:4600:654C:FBD0:A99D:3B3 (talkcontribs)

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?

Reply to "SideBarMenu requires extension ParamProcessor"

Sidebar Menus are not showing in wiki1.35.1

1
Pooja2425 (talkcontribs)

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

Reply to "Sidebar Menus are not showing in wiki1.35.1"

inline queries within the SideBarMenu ondiscussionpage:Extension talk:SideBarMenu

3
Keyhan~mediawikiwiki (talkcontribs)

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.

This post was posted by Keyhan~mediawikiwiki, but signed as Keyhan.

Netbrain (talkcontribs)

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}}
| 
* {{#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

Keyhan~mediawikiwiki (talkcontribs)

Problem is now fixed. I had forgotten format=template in the in the query. It works greate

This post was posted by Keyhan~mediawikiwiki, but signed as Keyhan.

Reply to "inline queries within the SideBarMenu ondiscussionpage:Extension talk:SideBarMenu"
Ralfk (talkcontribs)

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]].

Reply to "#subpage depth"

Exclude Sidebarmenu from Book printed as pdf

1
203.191.35.22 (talkcontribs)
Is there a way to hide SideBarMenu from a book when created as pdf. 
Reply to "Exclude Sidebarmenu from Book printed as pdf"

#subpage does not work properly

4
143.97.2.35 (talkcontribs)

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>

  1. subpage User:username

Element 1 Element 2 </sidebarmenu>

Reply to "#subpage does not work properly"

Composer installation

9
Ralfk (talkcontribs)

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.

81.166.202.74 (talkcontribs)

I don't have the spare time to do this myself right now, but you are welcome to implement it yourself.

Ralfk (talkcontribs)

Well, since the actual SideBarMenu master (0.2) supports Validator 1.0, SideBarMenu still works even after SMW 1.9 has been installed via composer.

81.166.202.74 (talkcontribs)
Ralfk (talkcontribs)

Great, thanks. I haven't tested it so far. If I have some time I will try to install it via composer.

Tamriel (talkcontribs)
94.125.16.11 (talkcontribs)

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 ?

Tamriel (talkcontribs)

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.

87.81.236.121 (talkcontribs)

Ah ok ... though the description of this is then somewhat misleading :)

Reply to "Composer installation"

Throws "SideBarMenu requires extension ParamProcessor" error

2
Mitchelln (talkcontribs)

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.

81.166.202.74 (talkcontribs)

Works for me, however i'm running latest development version of paramprocessor.

Reply to "Throws "SideBarMenu requires extension ParamProcessor" error"

Extension:SideBarMenu

6
217.88.195.6 (talkcontribs)

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

Technoshamman (talkcontribs)

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

Netbrain (talkcontribs)

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.

79.143.212.76 (talkcontribs)

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 (talkcontribs)
79.143.212.76 (talkcontribs)

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.

Reply to "Extension:SideBarMenu"
There are no older topics
Return to "SideBarMenu" page.