geekitude / dokuwiki-plugin-userhomepage

Dokuwiki plugin to automatically create user's homepage and/or namespace
https://www.dokuwiki.org/plugin:userhomepage
5 stars 9 forks source link

Public Namespace instead of Public Page #17

Closed berho closed 8 years ago

berho commented 8 years ago

Is it possible to use a public user namespace and put the public page in :user:username:start as it works perfect with the private namespace?

Regards and thanks for the great work!

geekitude commented 8 years ago

Hi

While it is technically possible, it would mean a lot of modifications and it would make some things a bit awkward (plugin's strings related to that public namespace would still use the expression "Public Page" for example) so I'm a bit reluctant.

In your example, you suggest ':user:username:start' wich is what's currently used for Private Namespaces. What would you use for "Private Namespace" in your case? My idea is that if your answer is "I don't need/want private namespaces", I think it would be easy to use the private namespaces as public namespaces...

berho commented 8 years ago

Hello, i want to use :private:username for private namespace and :user:username for public namespace.

geekitude commented 8 years ago

Done (https://github.com/geekitude/dokuwiki-plugin-userhomepage/commit/f1f64e3456f38229a7f8a4859a0ce0451aa5828f)...

Here's how to do it:

To keep Dokuwiki's user interwiki link feature (author links at end of page or in revisions pages for example), you will have to add a 'dokuwiki/conf/interwiki.local.conf' containing a line like this: user :public:{NAME}:start or user :user:{NAME}:start depending of your settings ("start" must be equal to the value of Dokuwiki's [start] setting).

Keep me informed ;)

berho commented 8 years ago

Sorry, don't work. I get UserHomePage error #1 ! Make sure Private and Public namespaces are different. Plugin will have no effect untill this is corrected. when saving the configuration which is as follow: users_namespace: private public_pages_ns: user:%NAME%:%START% dokuwiki/conf/interwiki.local.conf: user :user:{NAME}:start

geekitude commented 8 years ago

Stupid typo... Fixed in 23/11/2015 version. Sorry about that

berho commented 8 years ago

Hey, great! Exactly what i want :) Many thanks!!

One more question: ist it possible to create user home pages only for group members of special (configured) group?

geekitude commented 8 years ago

Great :)

For your new question, it should be quite easy but please create a new issue.