-
"Fabrik 4" helpers needed!Dismiss Notice
You are invited to join other community members active in coding, maintaining and improving Fabrik. Please visit https://fabrik.help for more information!
Override a Specific Field
-
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) { ?>
<td <?php echo $this->cellClass[$heading]?>><?php echo @$this->_row->data->$heading;?></td>
<?php }?>
</tr>
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) { ?>
<td <?php echo $this->cellClass[$heading]?>>
<?php if ($heading == 'tablename___email') {
echo "email address witheld';
} else {
echo @$this->_row->data->$heading;
}?>
</td>
<?php }?>
</tr>
joeray likes this.
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM