<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="country-region"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You can add a &amp;template=Mygroup.Mypage
to specify which template you want to use.&nbsp; You could do this manually by
putting it in your URL in the address bar:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><a
href="http://www.example.com/pmwiki/pmwiki.php?n=Mygroup.Mynewpage?action=edit?template=Mytemplates.USPOI">http://www.example.com/pmwiki/pmwiki.php?n=Mygroup.Mynewpage?action=edit?template=Mytemplates.USPOI</a><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Or you could create a quick little form in
your sidebar (or on a page), I&#8217;m thinking vanilla pmwiki forms without
any script at all would work (just action=pmwiki.php, I&#8217;m thinking)&#8230;&nbsp;
Just have a text field named n where you enter the new pagename, a hidden field
named action with &#8220;edit&#8221; 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.&nbsp; Then a submit button and you should
be good to go&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You can see documentation on all those
form elements at <a href="http://www.pmwiki.org/wiki/PmWiki/Forms">http://www.pmwiki.org/wiki/PmWiki/Forms</a>
if you want to go that direction.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Note that with either of these elements
you are ending up with &#8220;orphan&#8221; pages &#8211; i.e., they are pages
without any link anywhere to them.&nbsp; As long as you are using pagelists to
access them this isn&#8217;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&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-Peter<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
pmwiki-users-bounces@pmichaud.com [mailto:pmwiki-users-bounces@pmichaud.com] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Steven Benmosh<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, February 09, 2009
4:42 PM<br>
<b><span style='font-weight:bold'>To:</span></b> pmwiki-users@pmichaud.com<br>
<b><span style='font-weight:bold'>Subject:</span></b> [pmwiki-users] Feature
request - selecting between multiple templates for new pages</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi All,<br>
<br>
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.<br>
<br>
The feature: I would like to be able to choose between several (existing)
templates when I create a new page in my wiki.<br clear=all>
<br>
Explanation: <br>
<br>
I started my wiki (link below) with the idea of documenting gps tracks and
points of interest in <st1:country-region w:st="on"><st1:place w:st="on">Costa
  Rica</st1:place></st1:country-region>. 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.)<br>
<br>
Each group has its own template page.<br>
<br>
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.<br>
<br>
I also have a user-edited group, but because it can only have one template, I
limit it to points of interest.<br>
<br>
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.<br>
<br>
Thanks.<br>
<br>
Z.<br>
<font color="#888888"><span style='color:#888888'><br>
-- <br>
Check out my web site - <a href="http://www.words2u.net/" target="_blank">www.words2u.net</a></span></font><o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>