Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pasang Tamang 258 posts 458 karma points
    Feb 01, 2012 @ 10:07
    Pasang Tamang
    0

    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

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Feb 01, 2012 @ 10:15
    Jeroen Breuer
    0

    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

  • Pasang Tamang 258 posts 458 karma points
    Feb 01, 2012 @ 12:54
    Pasang Tamang
    0

    Thank you Jeroen,

    Seems it is helpful. I'll give it a try. 

    PTamang

  • Matt Watson 33 posts 55 karma points
    Feb 02, 2012 @ 14:27
    Matt Watson
    0

    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.

  • Pasang Tamang 258 posts 458 karma points
    Feb 02, 2012 @ 15:43
    Pasang Tamang
    0

    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

  • Matt Watson 33 posts 55 karma points
    Feb 02, 2012 @ 16:09
    Matt Watson
    0

    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 :)

  • 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.

Please Sign in or register to post replies