You can add a &template=Mygroup.Mypage to specify which template you want to use. You could do this manually by putting it in your URL in the address bar:
http://www.example.com/pmwiki/pmwiki.php?n=Mygroup.Mynewpage?action=edit?tem plate=Mytemplates.USPOI Or you could create a quick little form in your sidebar (or on a page), I'm thinking vanilla pmwiki forms without any script at all would work (just action=pmwiki.php, I'm thinking). Just have a text field named n where you enter the new pagename, a hidden field named action with "edit" as the value, and a field named template which allows the user either a radiobutton or select option to choose one of a number of templates that you specify. Then a submit button and you should be good to go. You can see documentation on all those form elements at http://www.pmwiki.org/wiki/PmWiki/Forms if you want to go that direction. Note that with either of these elements you are ending up with "orphan" pages - i.e., they are pages without any link anywhere to them. As long as you are using pagelists to access them this isn't a problem, but if you are used to a more traditional link-to-the-page type of approach then you would need to get a little fancier on the above solutions. -Peter _____ From: [email protected] [mailto:[email protected]] On Behalf Of Steven Benmosh Sent: Monday, February 09, 2009 4:42 PM To: [email protected] Subject: [pmwiki-users] Feature request - selecting between multiple templates for new pages 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. Thanks. Z. -- Check out my web site - www.words2u.net <http://www.words2u.net/>
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
