This is the first time I need to programmaticaly create a document node from a user control (.ascx). As this is the first time I'm doing this, I'm looking for some good demo code or documentation.
Thanks for the link. I already stumbled upon this page and it contains some basic information, but I was looking for some more worked out example code.
Like for instance how does one set properties of a document node etc...
I'd just like to add that you probably can find (if you have not already seen it) some usefull information about using the API to create document types etc. in this WIKI entry: http://our.umbraco.org/wiki/reference/api-cheatsheet
Programmaticaly create document node
Hi,
This is the first time I need to programmaticaly create a document node from a user control (.ascx). As this is the first time I'm doing this, I'm looking for some good demo code or documentation.
Does anyone know where I can find this?
Thanks for your help,
Anthony
http://our.umbraco.org/wiki/reference/api-cheatsheet/creating-a-document :-)
Hi Mike,
Thanks for the link. I already stumbled upon this page and it contains some basic information, but I was looking for some more worked out example code.
Like for instance how does one set properties of a document node etc...
Thanks for your help,
Anthony
Hi Anthony,
You can set the value of the property of newly created document like this way
Hope this helps you
PTamang
@anthony,
once you create the document
then you just get the property by id and set the value...
haha, i was too late!
@Ptamang and bob baty-barr thanks for this info guys, I'll give it a try.
greetings,
Anthony
Hi Anthony
I'd just like to add that you probably can find (if you have not already seen it) some usefull information about using the API to create document types etc. in this WIKI entry: http://our.umbraco.org/wiki/reference/api-cheatsheet
Happy coding :)
/Jan
Hi Jan,
This is exactly what I need :)
Thanks a lot,
Anthony
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.