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
Hi!
How do you change the "Name" property via SetValue("propertyAlias", value). You know on the top of the page, the part the also changes the url?
SetValue("propertyAlias", value)
I've tried SetValue("name", value) and also SetValue("Name", value) but nothing works.
SetValue("name", value)
SetValue("Name", value)
Any ideas?
You should simply change the .Name property of your contentObject and then pass it back to ContentService.Save(contentObject). The ID acts as the primary key so the new name will be persisted.
Not able to test this but I think this should help you!
http://stackoverflow.com/questions/26137761/change-the-name-of-content-using-the-content-service
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Change "Name"(?) property of page
Hi!
How do you change the "Name" property via
SetValue("propertyAlias", value)
. You know on the top of the page, the part the also changes the url?I've tried
SetValue("name", value)
and alsoSetValue("Name", value)
but nothing works.Any ideas?
You should simply change the .Name property of your contentObject and then pass it back to ContentService.Save(contentObject). The ID acts as the primary key so the new name will be persisted.
Not able to test this but I think this should help you!
http://stackoverflow.com/questions/26137761/change-the-name-of-content-using-the-content-service
is working on a reply...