Page 1 of 1

Custom List View Template

Posted: Mon Feb 16, 2015 1:45 pm
by m3suriya
Im using Joomla 2.5

requirement is... changing the List View Template.
i have created a Custom Field with Event Booking component.
i want this Custom field to display in my List View.
how can i display the Custom fields Value in List View Page.

i can only display the Header in List View. from the Page..> Components/com_eventbooking/view/registrants/tmpl/default.php

Code: Select all

<th width="10%" class="title" nowrap="nowrap">
				<?php echo JHtml::_('grid.sort',  JText::_('EB_REGISTRATION_DATE'), 'tbl.register_date', $this->state->filter_order_Dir, $this->state->filter_order ); ?>
</th>
but i cant display the Custom Field Value:

Code: Select all

<td align="right" class="hidden-phone">
                    <?php echo $row->paystatus ; ?>
</td>
hpe someone can help me out....

Re: Custom List View Template

Posted: Mon Feb 16, 2015 2:16 pm
by jcms
what is $row.... is it array of item? var_dump()

Re: Custom List View Template

Posted: Mon Feb 16, 2015 2:36 pm
by m3suriya
$row.... is just a var dump... as i dont know how to bring the value of custom field value... so i used row for dump... but the custom field is comes from other table...

Re: Custom List View Template

Posted: Mon Feb 16, 2015 2:48 pm
by m3suriya
this is how it should be.... registrationstatus is the custom field i created
<td align="right" class="hidden-phone">
<?php echo $this->params->get('registrationstatus'); ?>
</td>

but this not brings the custom fields values...

Re: Custom List View Template

Posted: Tue Feb 17, 2015 6:35 am
by jcms
you must check the array of item, then can echo them....

Re: Custom List View Template

Posted: Tue Feb 17, 2015 6:42 am
by m3suriya
Yes, i did that too...

print_r($this->items[$i]); ---- This prints the Array values which displays by default List view... but there is not custom field Value of registrationstatus

print_r($this->params->get('registrationstatus')); ---- i tried to display like this... but doesnt contain any values.

die;