Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Henrik Madsen 9 posts 29 karma points
    Feb 01, 2011 @ 09:27
    Henrik Madsen
    0

    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

    Feb 01, 2011 @ 09:33

    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

  • Henrik Madsen 9 posts 29 karma points
    Feb 01, 2011 @ 10:12
    Henrik Madsen
    0

    Can't get it to work, it keeps saving it at the root :(

  • Comment author was deleted

    Feb 01, 2011 @ 15:31

    Ok and can you share some more details, what is the xpath you are entering?

  • Mysterious 27 posts 47 karma points
    Sep 03, 2011 @ 14:07
    Mysterious
    0

    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

  • Amir Khan 1282 posts 2739 karma points
    Dec 05, 2011 @ 21:44
    Amir Khan
    0

    Mysterious, did you ever find a good solution for this?

    -Amir

  • Nathan Sleigh 109 posts 353 karma points
    Dec 11, 2015 @ 10:21
    Nathan Sleigh
    0

    Anyone ever figure this one out?

    Nathan

Please Sign in or register to post replies

Write your reply to:

Draft