Moonsoft Software Solutions

Display formatting issue, date wrapping

Started 3 Jul 2012 · 1 reply

  1. moon_436
    Hello,

    We have a date column on our website which is wrapping, making an unpleasant looking display:

    http://intermix.ca/pen-datewrap.jpg

    Is there any way this can be fixed, or, to hard code a width into just this one field?

    Thank you in advance,

    Mitchell
  2. Moonsoft support
    Hello,
    yes, the '-' sign is indicating your browser the cell can be wrapped at that point. You can try to fix the with of the date column changing the file

    joomla\modules\mod_listmanager\tmpl\content.php


    looking for the createTableData function, and before this line (about line 588, depending on your joomla version):

    $(trdato).adopt(tddato);

    hard code the td width, this way:
    if(arrCabeceras=='1'){
    tddato.setStyle('width',200);
    }

    $(trdato).adopt(tddato);

    Hope this helps,

    --Sorry, the forum strips code due to security reasons, the first line should be

    if(arrCabeceras/?php echo $seed;?\=='1'){
    tddato.setStyle('width',200);

    }

    but changing / and \ for lower than and greater than symbols. If you can't get it work, please place a ticket at helpdesk, in order we can exchange files and code. Thank you

    Edited by MSTeam - 03.07.2012 21:42

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket