I have written an extension to allow you to convert short link displays to a real link. It makes it easier to write your posts / pages when you don't remember the exact link to say a google search page. The format would be something like this [ shortlink:google,Test,Test ] where the first field after the google word is the link text and the second word is the display text. Then in the ExtensionsManager you could create an entry like google and http://www.google.com/search?hl=en&q={0}

When it serves the page if the body contains anywhere the word shortlink it then processes the short links against the rules you have setup. Please note that it is the very first draft of this extension. I think there are ways to make it more efficient, but for now I wanted to release it and see what people think.

ShortLink.cs (2.32 kb)

Comments Comments (19) Permalink Permalink     Rss feed for comments Post Comment Feed

E-mail DotNetKicks Digg StumbleUpon Slashdot Twitter Facebook Del.icio.us

Comments (19) -

thanks for sharing... and also to you jwendi..
Australia 9/14/2008 4:52:34 AM #


Thank you for good extension. It's very usefull.
Spain 9/19/2008 4:48:16 AM #
great post and very Thank you for good extension. It's very usefull.
9/27/2008 10:25:53 AM #
Great extension, thanks for the note.
Peru 11/17/2008 7:58:59 PM #
Thanks for the great reference post.
United States 2/9/2009 4:58:48 PM #
This is so cool.  I appreciate it and  am have to try it.
United States 2/13/2009 9:28:50 AM #
Great extencion, are there any similar extencions for wordpress?
United States 2/14/2009 1:39:12 AM #
No I do not believe that there is a similar extension for Wordpress, but there are various plugins to Wordpress that implement the same idea. I suggest looking http://wordpress.org/extend/plugins/ I have been out of the loop for a while.
United States 2/14/2009 4:23:44 PM #
Thanks for posting this kind of ideas and tips,
it's an additional knowledge from what I know before, keep up the good work
United States 3/9/2009 10:31:35 PM #
I think this helpful so well, thanks.
United States 4/7/2009 1:28:35 PM #
im excited to use this new extension of blogengine
United States 5/16/2009 6:46:25 PM #
Hi jwendl,
i have looking for this for long time.
it's very usefull for me. i plan to use this for my project.
thanks, great share.
Indonesia 7/19/2009 4:41:29 PM #
I'll give this one ago!
United Kingdom 7/29/2009 10:29:57 PM #
that's a cool extension
United States 8/23/2009 1:13:12 PM #
Great extension!thanks for sharing it!
United Kingdom 9/13/2009 10:00:14 PM #
Is short links extensions always confined to Google or is it available with other websites?
Australia 12/1/2009 2:08:33 AM #
Any website you setup in the extension manager for the extension.
United States 12/1/2009 2:15:01 AM #
The shortlink extension is very useful thanks
United States 1/21/2010 5:21:44 PM #
Dave
Dave
I've changed your extension a little bit. I've reserved the second and third keyword. My enhanced ShortLink extension allows to use multiple placeholder in the template url.

[ShortLink:LinkCode,LinkText,Arg1[,arg2[....,argN]]

To extend your example: [ShortLink:Wikipedia,Blog,Blog,en]. Wikipedia is configured as 'http://{1}.wikipedia.org/wiki/{0}'.

On request I can send you the modified code.
United States 7/3/2010 5:39:51 PM #

Add comment




  Country flag
biuquote
  • Comment
  • Preview
Loading


About Author

Justin Wendlandt
Justin Wendlandt
I work for Wells Fargo, play a lot of video games, and program in many languages. [ more ] E-mail me Send mail

View Justin Wendlandt's profile on LinkedIn View Justin Wendlandt's Facebook Profile View Justin Wendlandt's Twitter Profile View Justin Wendlandt's Zune Profile View Justin Wendlandt's Xbox Live Profile

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar

Recent Posts

Recent Comments

Comment RSS

Most comments

ericchapman ericchapman
1 comments
gb United Kingdom
Clone High Streaming Clone High Streaming
1 comments
us United States
iphone mad iphone mad
1 comments
gb United Kingdom

Poll

This poll is closed.
What do you use to connect to the internet?
A DLink Exterme Gaming router
 
0.0%
A Linksys / Cisco home router
 
0.0%
None of the above
 
0.0%
A Netgear home router
 
0.0%
I built my own box to do routing
 
100.0%

Total Votes: 1

Stock Quotes

WFC 25.10 +0.44 (+1.78%)
GOOG 463.18 +2.845 (+0.62%)
BBY 33.46 +0.80 (+2.45%)
CML 17.80 +2.79 (+18.59%)
COST 58.59 +0.80 (+1.38%)
MSFT 23.94 +0.04 (+0.17%)

Digsby

Xbox Gamer Card

Jwendl Gamer Score: 11570
Jwendl
Rock Band 2 (310) TMNT 1989 Arcade (35) Assassin's Creed II (340) Marvel Ult. Alliance 2 (390) FINAL FANTASY XIII (245) Borderlands (1340) Kane and Lynch:DeadMen (40) Madden NFL 10 (0) Family Game Night (0) STREET FIGHTER IV (180) South Park (180) Gears of War 2 (400) TEKKEN 6 (0) Culdcept SAGA (95) CSI: Deadly Intent (0) CSI-Hard Evidence (0)
Offline
8/30/2010 1:31:44 AM
Last seen 08/30/10 playing Xbox.com

Xbox Avatar

xbox Avatar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2010

Creative Commons License