CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom Template: How to reference Street Address?
Pages: [1]

Author Topic: Custom Template: How to reference Street Address?  (Read 1039 times)

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Custom Template: How to reference Street Address?
March 17, 2011, 03:47:21 pm
Dear All,
I created a Membership Directory and in process of customizing the profile view.  As I'm editing the Dynamic.tpl file, I don't know how to reference fields other than first name, last name and custom fields.  For example, if I want to reference a work street address, what exactly should I use?

I've tried {$profileField.contact_street_address.value} and similar with no luck...

Thanks,
Aaron

aaronchow

  • I post occasionally
  • **
  • Posts: 45
  • Karma: 3
  • CiviCRM version: 3.3
  • CMS version: Joomla
  • MySQL version: 4
  • PHP version: 5
Re: Custom Template: How to reference Street Address?
March 17, 2011, 04:56:52 pm
nevermind.  I just need to use my browser to "view page source," and the field names are displayed at the ID tag... 

e,.g. <id="row-street_address_2"...>

Rajan Mayekar

  • I post frequently
  • ***
  • Posts: 177
  • Karma: 20
    • Rajan's Blogs
Re: Custom Template: How to reference Street Address?
March 17, 2011, 08:47:19 pm
To views all smarty variables, u can to put {debug} tag at top of the template, it will list out all template variables which are available in that template file.

Rajan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Custom Template: How to reference Street Address?

This forum was archived on 2017-11-26.