[pmwiki-users] Group Title?
Patrick R. Michaud
pmichaud at pobox.com
Thu Jun 1 15:23:04 CDT 2006
On Thu, Jun 01, 2006 at 02:20:00PM -0500, Ben Wilson wrote:
> I'm looking for a way to set the FmtV for a group's title so I can
> mark it in the skin. Does GroupAttributes.$Title work in the skin?
At the moment it probably doesn't work in skin templates, but I
think it could be made to work without too much difficulty.
But even if it doesn't work, I think one might be able to do
$FmtPV['$GroupTitle'] =
'PageVar("$group.GroupAttributes", '$Title')';
which would grab the title of the GroupAttributes page.
The downside would be that if a GroupAttributes page doesn't
exist or doesn't have a title, then $GroupTitle would be
'GroupAttributes'.
Pm
> On 6/1/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >On Thu, Jun 01, 2006 at 02:00:22PM -0500, Ben Wilson wrote:
> >> On 6/1/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> >> >> On 6/1/06, Ben Wilson <dausha at gmail.com> wrote:
> >> >> > You know. I've never thought of this. What about having a title for
> >a
> >> >> >group?
> >> >
> >> >My suggestion is:
> >> >
> >> > {GroupAttributes$Title}
> >> >
> >> >and then place the title for the group as a (:title:) directive
> >> >in the GroupAttributes page.
> >>
> >> I was anticipating it being in GroupAttributes, but wouldn't a page's
> >> (:title:) override the group title in this context?
> >
> >I'm totally confused by this question. A page's title is {$Title}.
> >The group's title would be {GroupAttributes$Title}. What's the
> >conflict...? Or are you intending for a "group title" to mean
> >something more than just a title for the group?
> >
> >Pm
> >
>
>
> --
> Ben Wilson
> "Mundus vult decipi, ergo decipiatur"
>
More information about the pmwiki-users
mailing list