[pmwiki-users] Group Title in Group customization file

Roman romat2 at gmail.com
Fri Oct 20 09:56:48 CDT 2006


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




More information about the pmwiki-users mailing list