Custom List View Template

Everything to do with Joomla! 2.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
m3suriya
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Jul 21, 2007 6:46 am
Contact:

Custom List View Template

Post by m3suriya » Mon Feb 16, 2015 1:45 pm

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....

 
jcms
I've been banned!
Posts: 2233
Joined: Wed Nov 19, 2014 9:23 am

Re: Custom List View Template

Post by jcms » Mon Feb 16, 2015 2:16 pm

what is $row.... is it array of item? var_dump()

m3suriya
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Jul 21, 2007 6:46 am
Contact:

Re: Custom List View Template

Post by m3suriya » Mon Feb 16, 2015 2:36 pm

$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...

m3suriya
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Jul 21, 2007 6:46 am
Contact:

Re: Custom List View Template

Post by m3suriya » Mon Feb 16, 2015 2:48 pm

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...

jcms
I've been banned!
Posts: 2233
Joined: Wed Nov 19, 2014 9:23 am

Re: Custom List View Template

Post by jcms » Tue Feb 17, 2015 6:35 am

you must check the array of item, then can echo them....

m3suriya
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Sat Jul 21, 2007 6:46 am
Contact:

Re: Custom List View Template

Post by m3suriya » Tue Feb 17, 2015 6:42 am

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;

 

Locked

Return to “Templates for Joomla! 2.5”