[pmwiki-users] Group Title in Group customization file

Roman romat2 at gmail.com
Fri Oct 20 10:14:44 CDT 2006


On 10/20/06, Crisses <crisses at kinhost.org> wrote:
> On Oct 20, 2006, at 10:56 AM, Roman wrote:
>
> > On 10/19/06, Chris Lott <chris.lott at gmail.com> wrote:
> >> I have a group called Beta
> >>
> >> I have a customization file for the group:
> >> local/Beta.php
> >>
> >> Wht can I put in there so that the "Group Title" can be changed? i.e
> >> so the link to the home page remains Beta or Beta/HomePage but what
> >> prints is soemthing like
> >> Beta Group Activities
> >
> > I don't know how to change title of group in local/Group.php. You can
> > do it this way:
> >
> > 1. Define page variable $GroupTitle
> >
> > $FmtPV['$GroupTitle'] =
> >    '(($t = PageVar("$group.GroupAttributes", \'$Title\')) ==
> > "GroupAttributes") ? $group : $t';
> >
> > 2. In your skin replace appropriate occurences of {$Group} with
> > {$GroupTitle}
> >
> > 3. If you want to change title of certain group, just define title of
> > <Group>/GroupAttributes page
> >
> > HTH, Roman
>
> Sounds like a nice quick recipe!
>
> Crisses
>

Ah, it's already in Cookbook, slightly modified - see
http://www.pmwiki.org/wiki/Cookbook/GroupTitle.html.

Roman




More information about the pmwiki-users mailing list