#Custom "Data" namespace with custom ID needed for uses of JSONConfig extension

22 messages · Page 1 of 1 (latest)

velvet skiff
#

I want to use the storing features of the JSONConfig extension, but the extension requires a specific namespace of the name "Data" with the specific ID of "486", which with Miraheze I am unable to create namespaces of specific IDs. Would it be possible to have an admin or someone create the namespace for me with the specific ID? The documentation for JSONConfig is at https://www.mediawiki.org/wiki/Extension:JsonConfig

MediaWiki

The JsonConfig extension allows other extensions to store their configuration data as a JSON blob in a wiki page.

#

It would also help if I knew the specific role to ping to help with this issue

velvet skiff
#

If you don't want to add a specific namespace you can just add
$wgJsonConfigNamespaces[3002] = 'data'; to LocalSettings.php...

cloud harbor
#

What is the link to your wiki?

velvet skiff
#

Sorry, I didn't post it earlier

#

As far as I'm aware I did not receive a new namespace according to Special:NamespaceInfo

velvet skiff
#

Would uninstalling and reinstalling the extension possibly help to create the namespace?

cloud harbor
#

Hmmm. Have you tried creating a test page and checking its namespace with PageName?action=info?

velvet skiff
#

The namespace simply does not exist and was never created

#

And I have JSONConfig installed according to Special:Version

cloud harbor
#

I'm not sure what else can be done. Perhaps someone from <@&407534909746577418> knows what's going on?

neat needle
#

it seems like JsonConfig would automatically register the namespaces

#

but all the default json config variables we have are non-local

#

p sure the fix/actual solution here is to set $wgJsonConfigs to include a local entry for your wiki so that JC adds the namespace and actually uses it

#

(we can do per-wiki config changes fyi)

velvet skiff
#

That would be nice

velvet skiff
#

@neat needle Sorry to ping you but yeah this would be good if it gets the namespace

neat needle
scenic widgetBOT