I know this is an old one: some long urls are forcing my fixed width layout to break - I remember reading a discussion on Drupal's url wrapping abilities but can't find it. If someone can point me in the right direction, I would appreciate it.

Best, Case.

Comments

beliy1’s picture

try htmlwrap-module http://drupal.org/node/24027

This is a simple filter module which wraps input by breaking long words and preventing them from damaging your layout. This is a common problem on site with newbie or troll commenters who post ong urls, or nonsense words to destroy the site layout. You cannot generally wrap a single word with css or table layouts

nightsochi.ru

C-Watootsi’s picture

Hi beliy1 -- Thanks for pointing that out. It doesn't seem to be 4.6/CivicSpace compatible though, which is completely unstandable since it seemed to be developed during the 4.7 codefreeze. Anyone got an older version somewhere in their files?

wildlettuce’s picture

I am using the Biblio module for a small library site. The URL field within Biblio is being used to link to pdfs, however the urls to the pdfs are too long and break the margins in IE and Chrome - the urls wrap perfectly in Firefox.

I have word-wrap: break-word and overflow: hidden in my stylesheet for table (I also tried putting them under td.) I am not sure why they are not working - yes I cleared the cache.

I would be happy to truncate the urls and I have found php that would do this, but I have no idea where to put the code and all the modules I have found for this sort of thing are only for Drupal 4.

Any ideas?

fadgadget’s picture

Hi is there any update for this for drupal 6? I have long url's breaking my margins all over my website. None of the modules mentioed are still active. Im having a hell of a time finding out how to wrap long urls people post in my sote.

Thanks

fadgadget’s picture

ah found it eventually
admin/settings/filters/1/configure