This is possible - you just need to use different syntax. You need to surround the field name with either double @ or double # (
@@field.name@@ or ##field.name##)
e.g.
the form:-
<form>
action template _ software:"@@software.Name@@:start"
struct_schema "software" !
Fieldset
Submit "Create a new Software record"
Thanks "View the new Software record to update the Software Index"
</form>
[/color]
schema software has a field that holds the name of the software. (
schema.Software.Name), and a field that holds the URL for the website of the software (
schema.Software.Website)
the template:-
======##software.Name##======
/* struct data appears here */
/* uses an image called "$PageName_logo.png" located in the matching media directory
Note: the filename must be all lower-case and use underscores instead of spaces */
{{ :@NS@:@@Software.Name@@_logo.png?100|@@Software.Name@@ Website}}
----
\\
/* Some search links that may be useful - remove when page is complete(?) */
* [[wp>@PAGE@]]
* [[Google>@PAGE@]]
=====Description=====
[/color]
Note that the template has blank lines at the start... without them the struct data won't render for some reason.
If the form is used to create a page about software called "Dumblebum" the page will be created in :software:dumblebum:start
The page title will be "Dumblebum"
The created page:-
======Dumblebum======
/* struct data appears here */
/* uses an image called "$SoftwareName_logo.png" located in the matching media directory
Note: the filename must be all lower-case and use underscores instead of spaces */
{{ :software:dumblebum:dumblebum_logo.png?100|Dumblebum Website}}
----
\\
/* Some search links that may be useful - remove when page is complete(?) */
* [[wp>start]]
* [[Google>start]]
=====Description=====
[/color]