Javascript for adding a node (of a particular type)
Hi! My creative editors/writers like to have links on the dashboard for adding some common nodes. For example a shortcut for adding a new news node in the news folder.
Thanks, but I'm not sure that's what I want. I would just like the ui to pop up a new node-dialog, just as if the user right clicks the news-node and clicks Create.
Javascript for adding a node (of a particular type)
Hi! My creative editors/writers like to have links on the dashboard for adding some common nodes. For example a shortcut for adding a new news node in the news folder.
Create a news item
Anyone knows how to do just that?
Many thanks
Jonas Eriksson
Just create your own aspx and add them as dashboard control. In the aspx you can create nodes programatically.
hth, Thomas
Hi Jonas,
Like Thomas mentioned, you should create your own usercontrol and add it to dashboard.
Maybe Per's post about Blog 4 umbraco, 2.0.14 Easy blog creation helps you.
Thanks, but I'm not sure that's what I want. I would just like the ui to pop up a new node-dialog, just as if the user right clicks the news-node and clicks Create.
ok, maybe you want to look /umbraco/js/umbracoDefault.js
function createNew()
openModal("create.aspx?nodeID=" + nodeID + "&nodeType=" + nodeType + "&nodeName=" + nodeName + '&rnd=' + returnRandom(), uiKeys['actions_create'], 425, 600);
Totally cool. The code became (on the dashboard)
And on a document in the content window:
Thanks Jukka-Pekka!
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.