Feature Proposal: Setting for the default web
Motivation
Currently, the default web name is the
UsersWebName, changing that implies moving all user/group topics to that web.
Description and Documentation
The possibility to set the default web loaded when the url is of the form
http://foo.com/bin/view
.
Examples
Impact and Available Solutions
Implementation
--
Contributors: KoenMartens
Discussion
--
KoenMartens - 03 Mar 2006
Might want a little addition to that patch: one where you can use a
TWikiVariable for the default web, if you actually use that.
(fake diff)
# Constant tags dependent on the config
$constantTags{AUTHREALM} = $TWiki::cfg{AuthRealm};
$constantTags{HOMETOPIC} = $TWiki::cfg{HomeTopicName};
$constantTags{MAINWEB} = $TWiki::cfg{UsersWebName};
+ $constantTags{DEFAULTWEB} = $TWiki::cfg{DefaultWebName};
$constantTags{TRASHWEB} = $TWiki::cfg{TrashWebName};
$constantTags{NOTIFYTOPIC} = $TWiki::cfg{NotifyTopicName};
$constantTags{SCRIPTSUFFIX} = $TWiki::cfg{ScriptSuffix};
I tend to be the perl definition of lazy, so anything to make life - or at least usage of something, I go for it.
--
EricCote - 27 Mar 2006
I have been hunting for this feature for a couple of days. I was really hoping that this capability already existed. Does anyone know any workarounds?
--
ChuckGrindel - 24 May 2006
I've started making a change for that -- allowing different webs for users and Main -- but that's only in develop. As this is an enhancement, I'm not sure it'll be allowed to go into 4.0
--
MeredithLesly - 24 May 2006
Did this not make it into the build?
--
MartinCleaver - 09 Oct 2006
Workaround:
~/public_html/.htaccess
RewriteEngine on
RewriteRule ^$ /YOURDEFAULTWEBNAME/WebHome [PT]
Would be better in
configure though
--
MartinCleaver - 09 Oct 2006