[pmwiki-devel] Page In Page?

Petko Yotov 5ko at 5ko.fr
Sun Jan 24 04:43:20 PST 2021


[Re-sending because I mistakenly sent it to PmWiki-users. Sorry if you 
received it more than once. -P.]

On 24/01/2021 13:25, Michael Elliott wrote:
> I love PMWiki and am a routine donor. 

Glad to learn that -- I'm sure Pm is grateful.

> If I have a page that has a lot of content where I want to keep it all
> on the same page.  Is there a way I can have a page-in-a-page so as
> the content to maintain is more concise and easy to edit?
> In this way I'd only have to edit a "section" of the said page instead
> of a HUGE single text.

There are at least 2 ways to do it.

To have separate pages included in the current page you can use:

   (:include OtherPage:)

See https://www.pmwiki.org/wiki/PmWiki/IncludeOtherPages

To automate it, I suggest looking up pagelists, especially the "trail" 
option. This way you create a bulleted list of links to the subpages, 
and a pagelist that includes them in the correct order.


Another way is to install the recipe SectionEdit:

   https://www.pmwiki.org/wiki/Cookbook/SectionEdit

This way all your text can be in one page, and you open for editing 
individual sections separated by !!Headings.

Petko



More information about the pmwiki-devel mailing list