Hi,
I have set up my html table properly on my category page here:
www.borderlearning.justrite.co.za/index.php/component/k2/itemlist/category/9-bnb?limitstart=0
by adding the table element to my category.php custom template
However i still have two extra fields that i want data to display in.. -> Contact Number & Further details.
i know you have to add this code:
but im not sure where to add it.
I have set up my html table properly on my category page here:
www.borderlearning.justrite.co.za/index.php/component/k2/itemlist/category/9-bnb?limitstart=0
by adding the table element to my category.php custom template
<?php if((isset($this->leading) || isset($this->primary) || isset($this->secondary) || isset($this->links)) && (count($this->leading) || count($this->primary) || count($this->secondary) || count($this->links))): ?>
<!-- Item list -->
<table align="center">
<tr>
<td>Listing</td>
<td>Contact Number</td>
<td>Further Details</td>
</tr>
<tr>
<td>
<div class="itemList">However i still have two extra fields that i want data to display in.. -> Contact Number & Further details.
i know you have to add this code:
<?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
<?php if(isset($this->item->extraFields->contactnumber->value)): ?>
<?php echo $this->item->extraFields->furtherdetails->value; ?>
<?php endif; ?>
<?php endif; ?>but im not sure where to add it.