item = $this->model->getItem(); // For all items that has no value show "Not Available" foreach ((array)$this->item as $prop => $value) { if (!$this->item->{$prop}) { $this->item->{$prop} = cssJSToolbox::getText('N/A'); } } echo $this->getTemplate($tpl); } } // End class. // Hookable!! CJTTemplatesInfoView::define('CJTTemplatesInfoView');