[pmwiki-users] Include other page content as raw wiki markup

Patrick R. Michaud pmichaud at pobox.com
Wed Oct 4 21:38:34 CDT 2006


On Wed, Oct 04, 2006 at 02:16:26PM -0400, Sandy wrote:
> Bellave Jayaram wrote:
> > I use include commands a lot but I have a use case where I would 
> > like to include (actually, it is more like pull and not include) 
> > sections of other wiki pages [...]
> > 
> > Can someone advise if this is doable and if so, how?
> 
> If I read this right, what you want is a copy of the wiki-code from the 
> included page, which you can paste into a new page and edit without 
> changing the original.
> 
> Easiest way to do this is:
> 1. Open the new page for editing.
> 2. In a new window / tab open the original page and add ?action=source 
> to the URL. This brings up the wiki-code for that page.
> 3. Copy and paste this wiki-code into the new page and edit as usual.

One can also use the template= option to ?action=edit.  For example,
to create "NewPage" using "Group.OtherPage" as the initial source:

    .../pmwiki.php/Main/NewPage?action=edit?template=Group.OtherPage

Not necessarily simpler than the above, but it's sometimes worth
knowing.

Pm




More information about the pmwiki-users mailing list