I know this is question has been asked long ago, but I couldn't find any good solution on the forum.
How can I set the xpath to be a page that I have choosed from the form itself, in my contour form I have a dropdown that is populate from the prevalue source which fetch nodes from the root, I want to be able to save the current node created by the contour form under the selected node (from the dropdown), I hope I made my point clear that you can help me
Save as an umbraco document(where to save) xpath problem
Hey..
I'm trying to save an entity as an umbraco document. I need to save it with a dynamic parent.
I tryed to type "[#pageID]" in the "where to save" xpath and a lot of other things. But it doesn't work.
What am I doing wrong?
Comment author was deleted
Hi Henrik,
Here are a couple of examples:
current page id: $currentPage/@id
stored in a propertyfield of the current page
$currentPage/propertyAlias
store on the second level parent
$currentPage/ancestor-or-self::* [@level = 2]/@id
Can't get it to work, it keeps saving it at the root :(
Comment author was deleted
Ok and can you share some more details, what is the xpath you are entering?
I know this is question has been asked long ago, but I couldn't find any good solution on the forum.
How can I set the xpath to be a page that I have choosed from the form itself, in my contour form I have a dropdown that is populate from the prevalue source which fetch nodes from the root, I want to be able to save the current node created by the contour form under the selected node (from the dropdown), I hope I made my point clear that you can help me
I used the code in this project to create a new workflow:
http://our.umbraco.org/projects/backoffice-extensions/contour-workflow-save-to-page-specified-in-form-field
Thanks
Mysterious, did you ever find a good solution for this?
-Amir
Anyone ever figure this one out?
Nathan
is working on a reply...