[pmwiki-users] PmWiki 2.1.7 released

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 1 12:13:27 CDT 2006


On Thu, Jun 01, 2006 at 05:51:17PM +0200, Roman wrote:
> Thanks. Another question I have is how to change the default home page
> name. You already answered it on April 19 (subject: Question about
> Links). I modifed $PagePathFmt to
> array('{$Group}.$1','$1.{$DefaultName}','$1.$1') but it does not work.
> I always get Group.Group instead of expected Group.HomePage.

Yes, I haven't added the capability yet to get the Group. and Group/
syntax to use an admin's preference for home page.  At present this
always assumes the home page is named the same as the group.  I'll
issue an update for this soon.

Pm

> On 6/1/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > On Thu, Jun 01, 2006 at 05:01:40PM +0200, Roman wrote:
> > > > --> Added 'group home page' syntax: A group name followed
> > > > by only a dot or slash is now automatically treated as a
> > > > reference to the group's home page, whatever it happens to be.
> > > > This simplifies some pagelist templates as well as a number
> > > > of other items. In particular, group links in pagelist
> > > > output now points to the correct locations (instead of
> > > > being a page in the current group).
> > >
> > > This is really cool, thank you. I have a small question. I tried both
> > > [[Main/]] and [[Main.]]. The difference is that [[Main.]] is rendered
> > > with the trailing dot. Does it work as intended?
> >
> > Yes.
> >
> >    [[Main/HomePage]]   renders as "HomePage"
> >    [[Main.HomePage]]   renders as "Main.HomePage"
> >    [[Main/]]           renders as "Main"
> >    [[Main.]]           renders as "Main."
> >
> > In other words, the dots always render and the slashes
> > never render.
> >
> > Pm
> >
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> 




More information about the pmwiki-users mailing list