CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

the url is too long and not friendly

1/8/2010 3:15:26 PMAvatarridiLocation: yogyakartaposts: 4Karma: 24

Tweet on publish is great stuff, just simple question..is there anyway for us to limit the real URL to displayed in twitter. for example if we have an update for...

http://blabla.com/blogs/blalsalsalsalsalslalsa.com the tweet on publish can make it friendly like http://blabla.com/...

any clue should be greatly appreciated

thanks

1/8/2010 6:59:23 PMAvatarLaurenceGLocation: Soho, London, UKposts: 179Karma: 143
Comment with ID: 22842

This is something we've been playing with, the idea solution is to tie into the bit.ly API and also create a bit.ly URL for the node on publish.

We're still developing our own package for this, but its no way near ready to be published yet.

You should have a look at the API documentation here...

http://code.google.com/p/bitly-dot-net/

1/9/2010 11:38:48 PMAvatarLee KelleherLocation: Yatton, Bristol, UKposts: 445Karma: 1323
Comment with ID: 22898

@ridi From looking at the source-code for Tweet on Publish package, the URL used for the tweet is Umbraco's NiceUrl - so there's no way to use an alternative property/value.

Depending on how confident with C# you are, you could get the source-code and replace the NiceUrl bit with some custom code? That could call Bit.ly or TinyURL?

I have just released a Bit.ly data-type package for shortening your Umbraco page URLs, you can get it from the project repo. (@Laurence, sorry if this clashes with your Bit.ly package).   But it's not going to be much help for your Tweet problem, sorry.

Please login or Sign up To post replies