Node name - save as Umbraco document when form is submitted
Is there a way to make the nodename the ID of the document when a document is created from an Umbraco form submission? I don't want the URL to be the submitter's name or other details.
You could add a hidden field and have the default value be a page field, like the ID, by entering (I think) either #pageID or [#pageID] - that way you can choose that field for creating content. Of course a static value in the create content workflow is almost just as effective.
Actually that does not work, [#pageID] creates the node with the ID of the form page rather than the ID of the document being created so you get nodes called 1117, 1117 (1), 1117 (2) etc.
Any ideas how to insert the ID of the document being created?
Node name - save as Umbraco document when form is submitted
Is there a way to make the nodename the ID of the document when a document is created from an Umbraco form submission? I don't want the URL to be the submitter's name or other details.
Thanks
Dan
You could add a hidden field and have the default value be a page field, like the ID, by entering (I think) either #pageID or [#pageID] - that way you can choose that field for creating content. Of course a static value in the create content workflow is almost just as effective.
Yes, adding a static value of [#pageID] to the node name does the trick.
Thanks
Actually that does not work, [#pageID] creates the node with the ID of the form page rather than the ID of the document being created so you get nodes called 1117, 1117 (1), 1117 (2) etc.
Any ideas how to insert the ID of the document being created?
Thanks
Dan
Comment author was deleted
You would have to do that with a custom workflow since it won't be possible using the default one (should only be a minor change)
I've decided to go with this qucik solution:
Use a static value, e.g ."gallery"
Then update umbraoSettings.config to remove the brackets from the URL:
<char org="(">-</char>
<char org=")"></char>
Leaving us with nice URLs:
/gallery-1/
/gallery-2/
etc
is working on a reply...