Break long linked URLs in content Print E-mail
Monday, 08 January 2007

Okay, so this isn't really a complex hack - but its something pretty much every Joomla webmaster can use; a way to limit the length of hyperlinks!... 

All you have to do is include a javascript in your template that will cut the link down in length and then set whatever functional variables you want by editing the script.

NOTE: only *linked* urls will be shortened in length w/this script. 

Now I just need to figure out how to force all URLs in content to be made into links and I'll never worry about URLs breaking my templates ever again! Wink

To insert the javascript into your template, use the following line in the 'head' adjusted or the location where you save the attached script on your server.

<script type="text/javascript" xsrc="shortlinks.js"></script>

Hint: look at the javascript before you use it - you may want to make edits.

[ download shortlinks.zip

Comments (0) >> feed
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley


Write the displayed characters


busy
 

Creative Commons License
© 2007 Design Guru. Some rights reserved under license.