| Break long linked URLs in content |
|
|
| 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!![]() 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. |
|
© 2007 Design Guru. Some rights reserved under license. |