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
Can any one suggest me how to create documents and media programmatically? I would like to know the publish event and save event equivalent in v5.
Thanks in advance
PTamang
I don't know how to create media or documents in v5 yet. You probably need to do this using the Hive provider. V5 doesn't have events, but tasks (basically the same). There aren't many tasks at the moment yet. You can find an overview here: http://our.umbraco.org/forum/core/umbraco-5-general-discussion/26052-Events-(eg-BeforeSave)-in-Umbraco-5-Jupiter?p=1#comment104515.
Jeroen
Thank you Jeroen,
Seems it is helpful. I'll give it a try.
Hi Pasang,
Did you have any success in adding docuements and media in v5? This is something I really want to have a go at.
Hi Matthew,
I tried the example (can be found here : http://our.umbraco.org/forum/core/umbraco-5-general-discussion/26052-Events-(eg-BeforeSave)-in-Umbraco-5-Jupiter?p=1#comment104515) referred by Jeroen. That works and still trying to find out more solution.
Thanks
Thanks Pasang,
I'll give it a try, although I can't spot the code that creates content at a glance, but I'll dive into it and try to figure it out :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Create Media and Document Programmatically in Umbraco v5
Can any one suggest me how to create documents and media programmatically? I would like to know the publish event and save event equivalent in v5.
Thanks in advance
PTamang
I don't know how to create media or documents in v5 yet. You probably need to do this using the Hive provider. V5 doesn't have events, but tasks (basically the same). There aren't many tasks at the moment yet. You can find an overview here: http://our.umbraco.org/forum/core/umbraco-5-general-discussion/26052-Events-(eg-BeforeSave)-in-Umbraco-5-Jupiter?p=1#comment104515.
Jeroen
Thank you Jeroen,
Seems it is helpful. I'll give it a try.
PTamang
Hi Pasang,
Did you have any success in adding docuements and media in v5? This is something I really want to have a go at.
Hi Matthew,
I tried the example (can be found here : http://our.umbraco.org/forum/core/umbraco-5-general-discussion/26052-Events-(eg-BeforeSave)-in-Umbraco-5-Jupiter?p=1#comment104515) referred by Jeroen. That works and still trying to find out more solution.
Thanks
PTamang
Thanks Pasang,
I'll give it a try, although I can't spot the code that creates content at a glance, but I'll dive into it and try to figure it out :)
is working on a reply...