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 there,
The following code work just fine in 4.7 but after upgrading to 4.11 i get weird errors:
Document doc = new Document(childDocId); doc.Move(newParentDocId); umbraco.library.UpdateDocumentCache(doc.Id); umbraco.library.RefreshContent(); doc.Publish(new User(0)); umbraco.library.UpdateDocumentCache(doc.Id); umbraco.library.RefreshContent(); return umbraco.library.NiceUrl(doc.Id);
I can see the doc moved to the new parent but in razor I still see it under the old parent?!
Regards,
mkariti
Update: For some reason it will not update the doc url.
Any Idea?
OK So Ive tried to create a new node in the backsystem and move it to a new parent and same result.
The url still refers to the old parent.
What went wrong?!
Hi, its a known bug, See http://umbraco.com/follow-us/blog-archive/2013/2/1/umbraco-4114-released.aspx for the patch :). (Think this is correct) Charlie :)
Hi Charles,
Many thanks for your reply.
Im coming from 4.7 So not sure if its applicable. I did however tired the patch but with no success
Cheers
Sorry, did not see the version you are using :). No problem. Charlie.
Is it to do with the cache? Have you tried removing it?
No worries,
I tried everything. Creating deleting and moving via system and c# as well.
Nothing seems to cut it.....
Ok, well trying hasing umbraco on twitter see if someone has had that issue, if not i would raise it as a bug here i think :)
http://our.umbraco.org/forum/ourumb-dev-forum/bugs
and
http://our.umbraco.org/contribute/report-an-issue-or-request-a-feature
Charlie.
Many thanks - Im hoping to find an answer soon......
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
4.11.5 Moving Doc to new parent
Hi there,
The following code work just fine in 4.7 but after upgrading to 4.11 i get weird errors:
I can see the doc moved to the new parent but in razor I still see it under the old parent?!
Regards,
mkariti
Update: For some reason it will not update the doc url.
Any Idea?
OK So Ive tried to create a new node in the backsystem and move it to a new parent and same result.
The url still refers to the old parent.
What went wrong?!
Hi, its a known bug, See http://umbraco.com/follow-us/blog-archive/2013/2/1/umbraco-4114-released.aspx for the patch :). (Think this is correct) Charlie :)
Hi Charles,
Many thanks for your reply.
Im coming from 4.7 So not sure if its applicable. I did however tired the patch but with no success
Cheers
mkariti
Sorry, did not see the version you are using :). No problem. Charlie.
Is it to do with the cache? Have you tried removing it?
No worries,
I tried everything. Creating deleting and moving via system and c# as well.
Nothing seems to cut it.....
Ok, well trying hasing umbraco on twitter see if someone has had that issue, if not i would raise it as a bug here i think :)
http://our.umbraco.org/forum/ourumb-dev-forum/bugs
and
http://our.umbraco.org/contribute/report-an-issue-or-request-a-feature
Charlie.
Many thanks - Im hoping to find an answer soon......
is working on a reply...