• Payment Plugins Poll

    We need your feedback on the need for updated payment plugins. Please go here and give us your feedback.

  • Joomla 5.1

    For running J!5.1 you must install Fabrik 4.1
    See also Announcements

  • Subscription and download (Fabrik 4.1 for J!4.2+ and J!5.1) are working now

    See Announcement
    Please post subscription questions and issues here

    We have resolved the issue with the J! updater and this will be fixed in the next release.

Override a Specific Field

  • Views Views: 13,641
  • Last updated Last updated:

Navigation

  • Each row of your List is rendered with components/com_fabrik/views/table/tmpl/default_row.php. The standard file for this looks like:

    PHP:
    <?php
    defined('_JEXEC') or die( 'Restricted access');
    ?>

    <tr id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
    <?php foreach ($this->headings as $heading=>$label) {&nbsp;?>
    <td <?php echo $this->cellClass[$heading]?>><?php echo @$this->_row->data->$heading;?></td>
    <?php }?>
    </tr>
    If we want to alter a single cell, in this case replacing the 'email' value with the text 'email address withheld', we can do this:
    PHP:
    <?php
    defined('_JEXEC') or die( 'Restricted access');
    ?>

    <tr id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
    <?php foreach ($this->headings as $heading=>$label) {&nbsp;?>
    <td <?php echo $this->cellClass[$heading]?>>
    <?php if ($heading == 'tablename___email') {
    echo "email address witheld';
    } else {
    echo @$this->_row->data->$heading;
    }?>
    </td>
    <?php }?>
    </tr>
    Easy when you know how.
Back
Top