[Pmwiki-users] Re: Getting rid of the group 'Main'
Christian Ridderström
chr
Tue Feb 17 21:40:06 CST 2004
On Tue, 17 Feb 2004, Patrick R. Michaud wrote:
> If you wanted to switch to a different default group (e.g., 'Site'), you'd
> probably need to do the following items:
>
> # change the default group
> $DefaultGroup = 'Site';
This I'd already done :-)
> # change the location of the SearchWiki page
> XLSDV('en',array('Main/SearchWiki'=>'Site/SearchWiki'));
Works like I charm, but you have to create that page before it works in
practice. In my case I did
XLSDV('en',array('Main/SearchWiki'=>'LyX/SearchWiki'));
because I want the user to get the sidebar associated with the group LyX
rather than with the group Site, since "normal" users will almost always
work with LyX/ (or one of its siblings).
> # change the recent changes locations
> $RecentChanges = array(
> 'Site.AllRecentChanges' =>
> '* $Group.$Tlink . . . $CurrentTime by $AuthorLink',
> '$Group.RecentChanges' =>
> '* $Group/$Tlink . . . $CurrentTime by $AuthorLink');
I also did:
$RecentUploads = array(
'Site.AllRecentUploads' =>
"[[$UploadUrlFmt$UploadPrefixFmt\$UploadName \$UploadName]]",
'$Group.RecentUploads' => '[[Attach:$UploadName $UploadName]]');
and this seems to work.
> Upon looking at this I suppose that I really should change the
> $RecentChanges array to use '$DefaultGroup.AllRecentChanges' instead
> of 'Main.AllRecentChanges' (doing this would make this last part
> unnecessary).
Probably, IMO it's also more consistent with the principle of least
surprise.
> > I suspect that '$[Main/SearchWiki]' is related to this, but also that if I
> > simply do a "translation" somewhere of 'Main' into 'Site', I will not be
> > able to get for instance the search results into the group LyX.
>
> I don't quite understand the part about not being able to get the search
> results into the group LyX.
I wasn't very clear... what I really meant was that I wanted the sidebar
that shows up in the LyX group show up next to the search results, since
this is the sidebar that a normal user most frequently uses.
/Christian
--
Christian Ridderstr?m http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list