album title too long - stretches the template.
effisk
Joined: 2005-01-09
Posts: 37 |
Posted: Mon, 2005-01-31 15:51 |
Hi everyone, I have a problem with my gallery: When titles are too long, they expand the width of my table and make it wider that the template. Example: Is there a way to keep the title and split it on two lines? I tried with adding some HTML code in the title (<br />) but it's being removed. cheers. |
|
Posts: 6818
Hi,
open util.php
find in function editField(..)
after add:
$buf = wordwrap($buf, 50, '<br>');
Jens
Posts: 37
that was too easy :D
It doesn't work. Instead of displaying the link, it actually displays part of the code for the link (on two lines, I must admit it :wink: )
Posts: 37
I don't know much about php, I'm trying several options..
Posts: 37
ok, here's the code it actually creates:
I don't get it why it puts the <br> at the beginning of the line when it is percised 50 in the wordwrap :-?
<a<br>href="http://www.teetravel.com/galerie/challenge-touessrok-2004">1er<br>Challenge International Touessrok - 27 Nov. au 05<br>Déc. 2004</a>
Posts: 37
I have temporarily solved the problem by setting the number to 105.
It works for this title, not sure it will work all the time though...
Posts: 6818
My fault, sorry.
open util.php
find in function editField(..)
After:
$buf .= $album->fields[$field];
Add:
$buf = wordwrap($buf, 50, '<br>');
Jens
Posts: 27300
version 1.5.7 this function is in
/lib/content.php
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 11
bumped
Posts: 27300
So you can't find this function?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team