[pmwiki-users] Insert Sections from One page into Another

Patrick R. Michaud pmichaud at pobox.com
Fri May 25 16:04:36 CDT 2007


On Fri, May 25, 2007 at 10:33:49AM -1000, Sivakatirswami wrote:
> Caveat: "All of the include directives below perform a straight text 
> inclusion. In particular, any page links in the included text are 
> assumed to link to pages in the current  group if not otherwise qualified."

Starting with 2.2.0-beta, this is no longer true.  In 2.2.0-beta
any page links and page variables in the included text are
assumed to be relative to the page in which they are written,
as opposed to the page that is currently displayed.  

Suppose Main.XYZ has a link that says [[ABC | some page]].  In
2.2.0-beta, this link will now always go to "Main.ABC", 
regardless of where Main.XYZ is being included from.  In previous
versions, the link would go to the "ABC" page in the same
group as the currently displayed group.

To get a link to ABC in the currently displayed group, one can
use [[{*$Group}.ABC | some page]].  The asterisk means we
want the group of the currently displayed page as opposed to
the one where the link is written.

(Explicitly setting the basepage= parameter also works.)

Hope this isn't too confusing.

Pm



More information about the pmwiki-users mailing list