balor123
Namespaces are only created when a page inside the namespace exists. Often I create a page and then want to upload files to it. When I upload the file, though, I can't select the current page as the namespace since it doesn't exist yet. Is there a way to solve this problem besides creating a blank page in the namespace to get dokuwiki to create it? It would be nice if dokuwiki listed the current page name as a namespace option on the left rather than the same namespace that the page exists on.
esther
Why do you want to create a namespace for every page with media? I think it's more practical to have all files that belong to a page in the same namespace as the page lies. It's easier to link to these files manually (no need to indicate a namespace) and it's easier to reuse the same media on other pages.
balor123
The same argument goes for any other page that I would consider putting inside the namespace, right? I can create a namespace by simply creating a page within it but no corollary exists for media. I can't create a namespace without having a page within it.
Why I would want to do this isn't really all that important but I'll explain anyway. I'm more worried about name collisions and pollution than sharing documents, which can be done with a full link anyway.
Imagine this:
* Documentation
* Section1
* Section2
...
Suppose section1 and section2 both want to have a file called Overview.ppt. If I can't place that document under "section1" then I have to rename the file, appending the namespace name in front of it. I'm planning on using this to organize research papers as well. If I have 10 such sections above each with 20 articles in them I end up with a mess of 200 files in the root namespace.
I see your point about practicality but consider that in wiki's using namespaces the advantage of simplicity disappears. Ability to reuse files on different pages was addressed above. I don't see the harm in offering it as an option on the media upload page, creating the namespace if necessary and then adding an option in local.conf that allows the administrator to decide whether the document namespace should be the default or if the new one should be used.