Display specific fields in single custom template
-
I have copied the default single template for my use to incorporate a google map URL and image into the template.
I have reviewed a few of the threads and have been unable to find the proper code to extract a listing for a single field.
I need to generate a URL with the following syntax:
http://maps.google.com/maps?q=”.address.”,+”.city.”,+”.state.”+”.zipcode
I have tried using this code (and similar) inside and outside the default loops, with no results:
//<? print $this->record->fields[‘city’]->value; ?>What is the syntax for outputting single fields from the DB outside the default loop to display all [non-excluded] fields.
the URL I am setting is up here if it helps: //http://carryfriendly.info/view-locations/view-location-detail/?pdb=1
Thanks – Tim
The topic ‘Display specific fields in single custom template’ is closed to new replies.