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,
I have created a node on another page. Now moving to another page with session of node.
Can anyone help me finish this. What am i doing wrong?
<umbraco:Macro runat="server" language="cshtml"> @{ var node = Session["node"]; <p>@node</p> node.Publish(userAdmin); library.UpdateDocumentCache(node.Id); } umbraco:Macro> Tkanks :-)
<umbraco:Macro runat="server" language="cshtml"> @{ var node = Session["node"]; <p>@node</p> node.Publish(userAdmin); library.UpdateDocumentCache(node.Id); } umbraco:Macro>
Got it working:
@{ var _alreadyCreatedId = Session["recentnodeId"]; var id = _alreadyCreatedId.ToString().AsInt(); var Node = new Document(id); var userAdmin = new User(0); Node.Publish(userAdmin); library.UpdateDocumentCache(Node.Id); }
is working on a reply...
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.
Continue discussion
Publish node from session with razor.
Hi,
I have created a node on another page. Now moving to another page with session of node.
Can anyone help me finish this. What am i doing wrong?
Got it working:
is working on a reply...
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.