Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • conforturis Friend
    #189565

    Hi,
    How can I make changes in code for hide publish date field in ‘JA Jobboard: List of Jobs’ module using Theme Name -> Default??

    HeR0 Friend
    #501710

    Hi Conforturis,

    In the theme/default/item_jalist.php file. Find code line
    [PHP]$width_column = ($field->column_width!=0)?”width=””.$field->column_width.”%””:””;[/PHP]
    and add new code line above that line
    [PHP]if($field->field_name == ‘effected_date’){
    continue;
    }[/PHP]
    Hope that helps.

    conforturis Friend
    #501785

    It did not help. Thus hide the date but the field name continues to appear.

    HeR0 Friend
    #501932

    Did you edit this file jalist_item.php , please note this file contains 4 themes of the component.

    conforturis Friend
    #502111

    Yes I made it in default theme. The date (Ex 2013-08-07 13:15:00) hidden but the field name ‘Publish Date’ keep to show.

    HeR0 Friend
    #502142

    Yes, sorry for my mistake on the the lable of field name. Please find the following code block on t hat file:

    <?php for($i = 0, $n = count($fieldlist); $i < $n; $i++ ) {
    $field = $fieldlist[$i];
    $header = rendfieldlabel($field);

    ?>
    <td class="<?php if ($i==$n-1) echo 'last'; ?> sectiontableheader">
    <?php echo $header; ?>
    </td>
    <?php
    }?>

    Then change it to

    <?php for($i = 0, $n = count($fieldlist); $i < $n; $i++ ) {
    $field = $fieldlist[$i];
    if($field->field_name == 'effected_date'){
    continue;
    }
    $header = rendfieldlabel($field);

    ?>
    <td class="<?php if ($i==$n-1) echo 'last'; ?> sectiontableheader">
    <?php echo $header; ?>
    </td>
    <?php
    }?>

    Pls try and let me know if it helps.

    conforturis Friend
    #502678

    Solved.
    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  conforturis 11 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum