Jump to content

Include Custom Address Details


Richard A

Recommended Posts

I just noticed the address is missing from the AMP output as i have a custom place for it is my detail_tab.thtml override file:

<?php /* MEDIA TOP - MAIN MEDIA AND COMPACT LAYOUT */ ?>

		<?php echo $this->element('listing_detail_media',array('position'=>'top','mainMedia'=>$mainMedia));?>

		<?php /* SUMMARY - DESCRIPTION */ ?>

		<div class="jrListingFulltext <?php echo $char_limit > 0 ? 'jr-show-more' : ''; ?>" <?php echo $char_limit > 0 ? 'data-characters="'. $char_limit .'"' : ''; ?> itemprop="description">

			<?php echo $CustomFields->field('jr_nothing',$listing); ?>
			<b><?php echo $CustomFields->label('jr_address',$listing); ?></b>
			<br>
			<?php echo $CustomFields->field('jr_address',$listing); ?>
			<br>
			<?php echo $CustomFields->field('jr_city',$listing); ?>
			<br>
			<?php echo $CustomFields->field('jr_state',$listing); ?>
			<br>
			<?php echo $CustomFields->field('jr_postcode',$listing); ?>
			<br>
			<?php echo $CustomFields->field('jr_country',$listing); ?>

			

		</div>

		<div class="jr-tabs jrTabs">

The six fields appear on the left hand side just before the tabs start, how do i include the six custom fields in the amp output?

 

You can see the address in the normal listing http://www.bowlschat.com/directory/clubs/belmont-bowling-club

 

And the AMP Output http://www.bowlschat.com/directory/clubs/belmont-bowling-club/amp

Edited by Richard A
Link to comment
×
×
  • Create New...