Jogadgets:Help with displaying multi-line images titles? - Joomla! Forum - community, help and support


hi,

i using jogadgets component , it´s mambot create dynamically images chosen font , show image instead of content item title.

this 1 lovely feature, because don´t depend on web visitor having font installed or not, since image created in server font like. has cache logic, once images have been created visitor 1, grabbed cache visitor 2, hence speeding more. works great except 1 thing:

the jogadgets mambot made display text images in 1 row. so, if content title of considerable length you´ll part of image displayed.

hence have modified jogadgets imagetitle creating function make images display long texts wrapping text multiple lines. works in terms of images being created, not managing show them well.

the relevant piece of code in mambot is:

code: select all

//imagetitles
  if($globals['confjg']['useimgtitle']==true){
    $style= 'display:block;height:'.$globals['confjg']['imgtitle_height'];
     
    // perform replacement
     $row->title = '<div style="'.$style.';background:url(_jgfw_/image.php?text='.urlencode(strip_tags($row->title)).') no-repeat;"> </div>';
     
  }


as can see, image created on fly calling script background:url being displayed in
has height set jogadgets config variable. meant: it´s made display images of 1 row of text, being height of images allways same.

so need way of making
elastic(??) can display images of different heights, because example 2-line image title of double height,etc...

- have tried setting height of div =100% (commenting line height grabbed jogadgets variable) doesn´t work. height doesn´t turn elastic.

- have obsrved in core joomla(without jogadget published), content titles wrapped multiple lines if text long, in situation seems trickier.

any idea on how accomplish this?

thank in advance,
nico






Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support