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";
Hi Jon
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).
/Jan
Hi,
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)?
Thanks
Hey,
Found an answer to this on Stack Overflow that works in 6.1.1
http://stackoverflow.com/questions/26137761/change-the-name-of-content-using-the-content-service
From SO:
For changing Node Name you have to do something like that :
umbraco_node.Name="32"; contentService.SaveAndPublishWithStatus(umbraco_node);
Don't forget about publishing node.
Cheers,
Devin
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set nodeName using c#?
I thought maybe it was something like this:
doc.getProperty("nodeName").Value = "New node Name";
Hi Jon
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).
/Jan
Hi,
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)?
Thanks
Hey,
Found an answer to this on Stack Overflow that works in 6.1.1
http://stackoverflow.com/questions/26137761/change-the-name-of-content-using-the-content-service
From SO:
For changing Node Name you have to do something like that :
Don't forget about publishing node.
Cheers,
Devin
is working on a reply...