[pmwiki-users] Feature request - selecting between multiple templates for new pages

Tegan Dowling tmdowling at gmail.com
Mon Feb 9 15:00:49 CST 2009


On Mon, Feb 9, 2009 at 9:41 AM, Steven Benmosh <wordz2u at gmail.com> wrote:
> Hi All,
>
> Here is a feature that will help me with my web site (I will explain below
> why), and I wonder if it is already implemented or should be added to a
> feature list for the future.
>
> The feature: I would like to be able to choose between several (existing)
> templates when I create a new page in my wiki.
>
> Explanation:
>
> I started my wiki (link below) with the idea of documenting gps tracks and
> points of interest in Costa Rica. I created groups based on context. Tracks
> include bus routes, hikes and car rides. Points of interest are broken up
> into restaurants, sights, hotels, stores and POI which includes everything
> else (cemeteries, city parks, etc.)
>
> Each group has its own template page.
>
> Now I am finding that I am adding data from other locations - the US,
> Nicaragua, Panama, Israel, Europe - all grouped together under a single
> group 'Misc.' I have no way of having different templates based on the type
> of point in these countries, except to create a separate wiki for each one.
> So what I do right now is add the content under the main wiki, than manually
> copy the page to the Misc. group.
>
> I also have a user-edited group, but because it can only have one template,
> I limit it to points of interest.
>
> What I would like to have multiple templates, and be able to choose when I
> create a new page which one to use. This way, I can easily regroup the pages
> based on countries, without losing the ability to match the template to the
> page content.

Have you looked at

http://www.pmwiki.org/wiki/Cookbook/NewGroupBox
http://www.pmwiki.org/wiki/Cookbook/NewPageBox
http://www.pmwiki.org/wiki/Cookbook/NewPageBoxPlus
http://www.pmwiki.org/wiki/Cookbook/NewPageForm

And the rules for defining your own templates:
http://www.pmwiki.org/wiki/Cookbook/EditTemplates



More information about the pmwiki-users mailing list