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

Bellave Jayaram bellavejayaram at cox.net
Thu Oct 5 11:12:42 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

Thank you Sandy and Pm. The issue for me is that since there are at least 10
different pages to include content from into the new page, this is a little
too manual and I was looking for some automated way. If it can't be
automated, I can live with the manual way.

Jayaram





More information about the pmwiki-users mailing list