From: Alex M. H. <ont...@on...> - 2010-04-14 16:07:46
|
Neill, I'm sorry for the late reply, but I'm a bit behind on my list reading.... What has worked for me on MW 1.15.2 and SMW 1.4.3 and SF is first defining a Namespace constant (I think that's what it's called) and assigning it a number, then assigning an alias (Client1) to the constant (NS_CLIENT1), e.g.: #Define the namespaces define("NS_CLIENT1", 300); define("NS_CLIENT1_TALK", 301); #Assign names to the namespaces $wgExtraNamespaces[NS_CLIENT1] = "Client1"; $wgExtraNamespaces[NS_CLIENT1_TALK] = "Client1_talk"; #Tell MW which of the namespaces has content, rather than "talk" $wgContentNamespaces[] = 300; Also, be sure to add the new namespace constant to your $smwgNamespacesWithSemanticLinks array so its semantics work, e.g., $smwgNamespacesWithSemanticLinks = array( NS_MAIN => true, NS_CLIENT1 => true, ); I don't know why it works this way or where I remembered reading about this setup, but it works for me with NamespacePermissions and SimpleSecurity. Hope this helps, Alex -- Alex M. Hendler ontolawgy(tm) LLC http://ontolawgy.com ------- Original message ------- From: "Neill Mitchell" <ne...@nl...> To: "Sem...@li..." <Sem...@li...> Cc: Subject: [Semediawiki-user] Unable to create custom name spaces with SMW installed Date: Wednesday, March 31, 2010 17:15:10 GMT+03:00 > Hi. > > I have MW 1.15.1, SMW 1.4.3 and SF 1.9 installed. I'm trying to create > custom namespaces using: > > #define custom namespaces > $wgExtraNamespaces[300] = 'Client1'; > $wgExtraNamespaces[301] = 'Client1_talk'; > > #restrict "read" permission to Client1 in users > $wgNamespacePermissionLockdown[300]['*'] = array('Client1'); > $wgNamespacePermissionLockdown[301]['*'] = array('Client1'); > > #prevent inclusion of pages from that namespace > $wgNonincludableNamespaces[] = 300; > $wgNonincludableNamespaces[] = 301; > $wgContentNamespaces[] = 300; > > But the namespaces are not being created. 300 and 301 are not being used > by any extension as far as I'm aware. > I've read the SMW info regarding custom namespaces and can't see > anything I've missed. > > I have tried this on a bare MW installation and it works fine. > > Any ideas? > > Thanks > Neill. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Semediawiki-user mailing list > Sem...@li... > https://lists.sourceforge.net/lists/listinfo/semediawiki-user |