Digitalin wrote
From my side, I imagine this plugin with some options :
1) Do you want to activate : media namespaces creation with pages namespaces for all namespaces : Yes
(really useful when you create a wiki) or it could be a default behavior for some Dokuwiki Users
Making an option in configuration will not be so hard to do. Well, currently the only purpose of the plugin is to create dirs. If someone don't want this, he should remove or not install the plugin ;-)
Digitalin wrote
2) on demand by namespace (useful when you have to create a lot of pages at once
There is no reasonable performanceimpact of the functionality. I don't see a point of making it complicated. Just keep it straight and simple!
Digitalin wrote
3) to have the choice of the generic media file to put into (if it is necessary to have one, I guess yes)
I'm not aware that this is mendatory. Besides, why shoud there be dummy-files inside eache media-dir?
What i'm thinking of is to have an option to create mediaspace-dirs for namespaces that already exist. This may be done by hooking into "IO_WIKIPAGE_WRITE" instead. Then the function will be called every time a page is saved.
But maybe it would be even better to run a special action to sync namespace dirs with pagespace. This can be done automatically after installing the plugin, so there is a clean status. After that all successive namespace creations will be catched. Or having this feature as a clickable function in admin-menu?