Copied to clipboard

Flag this post as spam?

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


  • Dan Evans 616 posts 988 karma points
    Apr 28, 2011 @ 18:55
    Dan Evans
    0

    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

  • Sebastiaan Janssen 4899 posts 14655 karma points MVP admin hq
    Apr 28, 2011 @ 23:02
    Sebastiaan Janssen
    0

    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.

  • Dan Evans 616 posts 988 karma points
    Apr 28, 2011 @ 23:44
    Dan Evans
    0

    Yes, adding a static value of [#pageID] to the node name does the trick.

    Thanks

     

  • Dan Evans 616 posts 988 karma points
    May 03, 2011 @ 11:29
    Dan Evans
    0

    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

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    May 03, 2011 @ 14:51
    Tim Geyssens
    0

    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)

  • Dan Evans 616 posts 988 karma points
    May 03, 2011 @ 15:52
    Dan Evans
    0

    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


  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies