Advertisement:

Author Topic: Show region name in Latest Listing title? [SOLVED]  (Read 1284 times)

ioasw

  • Newbie
  • *
  • Posts: 40
Show region name in Latest Listing title? [SOLVED]
« on: April 11, 2015, 04:55:23 am »
How can I show the regions name in the latest listings title? ie. Oregon Latest Listings
« Last Edit: April 12, 2015, 02:37:16 am by ioasw »

ioasw

  • Newbie
  • *
  • Posts: 40
Re: Show region name in Latest Listing title?
« Reply #1 on: April 12, 2015, 02:37:02 am »
Damn I'm good:

Code: [Select]
<?php $lregion Region::newInstance()->findByPrimaryKey(Params::getParam('sRegion')); ?>
and then where you want the region to appear on the page:
Code: [Select]
<?php print($lregion['s_name']); ?>

ashish1241

  • Jr. Member
  • **
  • Posts: 59
Re: Show region name in Latest Listing title? [SOLVED]
« Reply #2 on: April 23, 2015, 08:53:12 pm »
Hey where did you enter this Code?

lucato

  • Full Member
  • ***
  • Posts: 182
  • [<o>] Brasil
Re: Show region name in Latest Listing title?
« Reply #3 on: July 07, 2015, 06:00:18 pm »
Damn I'm good:

Code: [Select]
<?php $lregion Region::newInstance()->findByPrimaryKey(Params::getParam('sRegion')); ?>
and then where you want the region to appear on the page:
Code: [Select]
<?php print($lregion['s_name']); ?>

Hi Ioasw, in which path/.php file is this code?

I want to do a similar thing, but is placing a custom field instead. Any idea how to do it?

Thanks.