<div dir="ltr">thanks, this sounds very much like what I had in mind.<div>A drop down list, populated from pagelist like parameters (e.g. name=*template* or category=template) and <a href="https://www.pmwiki.org/wiki/Cookbook/EditTemplates"> $EditTemplatesFmt</a>, showing the available template page names and page summaries.</div><div>A data entry field for the name of the new page, and a "create" button.</div><div>I'll have a play to seeĀ  what I can achieve</div><div><br></div><div>Simon</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 4 Jun 2023 at 08:47, Hans Bracker <<a href="mailto:design@softflow.uk">design@softflow.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Simon,<br>
<br>
you could probably create a form doing what you want using the Fox formprocessing recipe.<br>
But you are asking for a complex selection process for determining the template for the new page.<br>
A form with a drop-down selection control to choose the right template would be the easiest.<br>
But you are asking for a pre-selection based on evaluating the current page name, if i understand you correctly.<br>
Which means evaluating the page name for some selection criteria must then determine the content of further manual selection via a drop-down control for instance. To incorporate that into a form gets complicated.<br>
Possibly use conditional markup within the form to do the pre-selection evaluation and show the correct drop-down control for further template selection, and having a numb r of those for the various conditional requirements (conditions based on page name evaluation).<br>
Sorry, this is not a solution, just some hints i can think of. <br>
A simple example to select templates (given on same page in anchored sections).<br>
Conditional pre-selection would still need to be added.<br>
<br>
Example for FoxNewPageBox, opens new page in edit mode.<br>
If page exists it will jump to target page. <br>
It will load content from a selected templateĀ  into the new page.<br>
Note that here temp1 is the name of the drop-down input selector, and <br>
template={$FullName}#{$$temp1} will be evaluated when form gets submitted to point to selected choice.<br>
<br>
(:fox newpageform template={$FullName}#{$$temp1}:)<br>
Select page template:(:input default temp1 white:)<br>
(:input select temp1 white:)<br>
(:input select temp1 green:)<br>
(:input select temp1 yellow:)<br>
Name of new page: <br>
(:input text newedit size=20:)<br>
(:input submit post "Create Page":)<br>
(:foxend newpageform:)<br>
(:if false:)<br>
[[#white]]<br>
white page<br>
[[#green]]<br>
green page<br>
[[#yellow]]<br>
yellow page<br>
[[#yellowend]]<br>
(:ifend:)<br>
<br>
<br>
<br>
cheers,<br>
Hans<br>
<br>
</blockquote></div>