Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I thought maybe it was something like this:
doc.getProperty("nodeName").Value = "New node Name";
You can see more about how to use the API here: http://our.umbraco.org/documentation/Reference/management/Documents/
You set the nodename, when creating the node like it's shown in the section "Creating a Document and setting properties".
Hope this helps.
(I'm not sure if this is still true if you're playing around with v6 though).
I'm looking to do this. I see from the docs how to create a new node with a specific nodeName but I can't see how to edit the nodeName programatically. Can anyone suggest how to do this (4.7.1)?
Found an answer to this on Stack Overflow that works in 6.1.1
For changing Node Name you have to do something like that :
Don't forget about publishing node.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted