[pmwiki-users] Trails working in Main group but not a new group?
Patrick R. Michaud
pmichaud at pobox.com
Thu Oct 26 08:31:15 CDT 2006
On Thu, Oct 26, 2006 at 11:36:50AM +0100, marc wrote:
> Chris Lott said...
> > On 10/25/06, marc <gmane at auxbuss.com> wrote:
> > > Chris Lott said...
> > > > Any idea why the trail markup in the Main group of this wiki works:
> > > >
> > > > http://community.uaf.edu/~chris/wiki/Main/PoetryMiscellany
> > > > example sub page working
> > > > http://community.uaf.edu/~chris/wiki/Main/TheMostOfIt-RobertFrost
> > > >
> > > > But the exact same markup in another group does not?:
> > > > http://community.uaf.edu/~chris/wiki/CDEBook/DraftContents
> > > > example sub page non working
> > > > http://community.uaf.edu/~chris/wiki/CDEBook/CoLandCoP
> > > >
>
> Okay, I had a closer look at my problem. It seems that links of the
> form:
>
> * [[Minutes test -> Starter]]
>
> break the trail. By converting these to the form:
>
> * [[Starter|Minutes test]]
>
> things work okay.
That's very odd. PmWiki is supposed to recognize the
[[ ... -> ... ]] form -- I wonder why it is failing here?
> OT, but in a similar vein, I found that the following use didn't work as
> expected in a pagelist template but used the non-spaced variety:
>
> [[{=$Titlespaced}|+]]
The {=$Titlespaced} doesn't have any effect here, since the '+' controls
the link text. By default '+' says to use the page's title or name
(unspaced).
If you want to change the '+' to mean $Titlespaced instead of $Title,
try the following in local/config.php:
Markup('[[|+', '<[[|',
"/(?>\\[\\[([^|\\]]+))\\|\\s*\\+\\s*]]/e",
"Keep(MakeLink(\$pagename, PSS('$1'),
PageVar(MakePageName(\$pagename,PSS('$1')), '\$Titlespaced')),
'L')");
Pm
More information about the pmwiki-users
mailing list