From: Cavila <con...@ho...> - 2014-02-04 22:40:55
|
Hi Martin, I don't know about Extension:ConditionalShow, but what about https://www.mediawiki.org/wiki/Extension:SimpleSecurity ? It comes with a parser function that can be used to hive off a portion of text and then to specify which group is allowed to view this. So if it suits your situation (?), you could switch off the factbox for general readers, but enable it inline for your modellers, e.g. {{#ifgroup:<nameofgroup>|__FACTBOX__}} Regards, Cav > From: mar...@si... > To: sem...@li... > Date: Tue, 4 Feb 2014 16:54:50 +0000 > Subject: [Semediawiki-user] Displaying the factbox depending on user group > > Hi all, > > we have set up a SMW using Mediawiki 1.17.5 and SMW 1.7.1. > > Now, we want to display information according to mediawiki user groups. > This concerns the content, the skin and the factbox. > > We want knowledge modellers to see the factbox and readers to not see the factbox. > > I have tried to solve this using the ConditionalShowSection extension of MediaWiki. > (http://www.mediawiki.org/wiki/Extension:ConditionalShow) > > Our default is to show the factbox. So I inserted the magic word __NOFACTBOX__ > into a conditional section like this: > <cshow logged=1 ingroup=reader> this text is only for readers > __NOFACTBOX__ > This is more text. </cshow> > > When logged in as a member of the user group "reader" I see both texts. > The magic word __NOFACTBOX__ is not to be seen but the factbox is still displayed. > > Has someone tried something like this before? Where should I look to solve this? > Is there another way/extension/whatever to handle such situations? > > Thanks for your effort! > Martin > > > ------------------------------------------------------------------------------ > Managing the Performance of Cloud-Based Applications > Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. > Read the Whitepaper. > http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |