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
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
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
Hi Rich,
Thank you for your answer. Your help is always welcome!!
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,
Can you post the video url? I don't know where ti put the code.
Regards,Eduardo
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 :)
Thank you very much.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
Hi Rich,
Thank you for your answer. Your help is always welcome!!
Regards,
Eduardo Macho
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
Rich,
Can you post the video url? I don't know where ti put the code.
Regards,
Eduardo
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
Rich,
Thank you very much.
Regards,
Eduardo
is working on a reply...