[pmwiki-users] pagelist is creating links relative to the current group?
Patrick R. Michaud
pmichaud at pobox.com
Wed May 24 14:10:31 CDT 2006
On Wed, May 24, 2006 at 11:18:31AM -0500, Tegan Dowling wrote:
> Is there not a setting somewhere, where-by an admin gets to choose
> HomePage vs GroupName for Group's home? Shouldn't that determine
> where such links point?
>
> Other options:
> * If neither XYZ.XYZ nor XYZ.HomePage exists, display as a non-link =
> "GroupName"
Now easy to do with {$GroupHome}:
(:if exists {=$GroupHome}:)[[{=$GroupHome}|{=$Group}]]
(:if !exists {=$GroupHome}:){=$Group}
(:if:)
> * If neither XYZ.XYZ nor XYZ.HomePage exists, link to Group.Recent Changes
(:if exists {=$GroupHome}:)[[{=$GroupHome}|{=$Group}]]
(:if !exists {=$GroupHome}:)[[{=$Group}.RecentChanges]]
(:if:)
> * If neither XYZ.XYZ nor XYZ.HomePage exists, link to
> dynamically-generated pagelist of the Group
(:if exists {=$GroupHome}:)[[{=$GroupHome}|{=$Group}]]
(:if !exists {=$GroupHome}:)[[{=$PageUrl}?action=search&group={=$Group}]]
(:if:)
> * If neither XYZ.XYZ nor XYZ.HomePage exists, *Create* the site's
> prefered homepage (As set by the admin to HomePage or XYZ or
> whatever).
Do you mean that you want the group's home page to be created
as soon as any page is created in the group? This can be easily
done with a recipe (and it could even populate the page with some
predefined text).
Pm
More information about the pmwiki-users
mailing list