Copied to clipboard

Flag this post as spam?

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


  • Eduardo 106 posts 130 karma points
    Oct 22, 2010 @ 16:01
    Eduardo
    0

    Blog entry and Twitter

    Hi,

    I want to tweet some text just after creating a new document in the backend.

    My purpose is to create a handler that tweets a link(Blog entry URL) with some extra text(Description).

    Nowadays I have the twitter functionality running but, how can I trigger a function just after creating a node in the backend?

    Thanks beforehand.

    Regards,
    Eduardo Macho

  • Rich Green 2246 posts 4008 karma points
    Oct 22, 2010 @ 16:09
    Rich Green
    0

    Hi Eduardo,

    Check this page out http://our.umbraco.org/wiki/reference/api-cheatsheet/attaching-document-eventhandlers

    Also there's a great video on Umbraco.tv too

    Rich


  • Eduardo 106 posts 130 karma points
    Oct 22, 2010 @ 16:11
    Eduardo
    0

    Hi Rich,

    Thank you for your answer. Your help is always welcome!!

    Regards,
    Eduardo Macho

     

  • Rich Green 2246 posts 4008 karma points
    Oct 22, 2010 @ 16:13
    Rich Green
    0

    No problem, there's an event for AfterPublish too, so just change the above code to from 'BeforePublish' to 'AfterPublish'

    These might be better in case something goes wrong with saving the doc.

    Rich

  • Eduardo 106 posts 130 karma points
    Oct 22, 2010 @ 16:19
    Eduardo
    0

    Rich,

    Can you post the video url? I don't know where ti put the code.

    Regards,
    Eduardo

  • Rich Green 2246 posts 4008 karma points
    Oct 22, 2010 @ 16:21
    Rich Green
    0

    Yeah, umbraco tv seems to be missing from the new site, you can get it to it here 

    http://umbraco.org/help-and-support/video-tutorials/for-developers/events/introduction-to-events

    There's even some sample code too :)

    Rich

  • Eduardo 106 posts 130 karma points
    Oct 22, 2010 @ 16:29
    Eduardo
    0

    Rich,

    Thank you very much.

    Regards,
    Eduardo

     

Please Sign in or register to post replies

Write your reply to:

Draft