- May 14, 2014 at 03:33 #1861
Hello as had previously been in contact with the Intent to create a guide yellow pages , due to the difficulty in finding a developer with extensive knowledge in classibase I decided to do the job on their own.
My doubt is related to the file below :
/ themes / olxer / views / index / _listing_row.php
What I need is the following :
Title of the ad ( solved )
Field Phone : ( solved )
Address location of ads ( address custom field )
I wonder how can I call this field to be listed on the search page .
This is an example of the expected result :
Linda Academy ! gymnastics and aesthetics (21) 2524-0333
Avenida Almirante Barroso, 97th Centro, Rio de Janeiro, RJ
Female Academy , Rio de Janeiro
Custom Fields in the result of the search pageMay 15, 2014 at 05:42 #1868
We have function for getting custom field by type or by ID. In your case by type will be good solution. Use following line for getting address custom field for given ad.
AdFieldRelation::getByType($ad, AdField::TYPE_ADDRESS);May 15, 2014 at 15:16 #1875