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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modifying legend of profile so it used Display Name of contact
Pages: [1]

Author Topic: Modifying legend of profile so it used Display Name of contact  (Read 991 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Modifying legend of profile so it used Display Name of contact
September 11, 2009, 12:04:53 am
When we provide a link on a UserDashboard to a viewable or editable profile for a Permissioned Relationship we get to a url eg /civicrm/profile/edit?reset=1&gid=14&id=19

This URL is using CRM/Profile/Form/Edit.tpl which is a single line file saying "{include file="CRM/Profile/Form/Dynamic.tpl"}"

NB our file states at top "{* customisation held in CRM/Profile/Form/Custom.tpl. autocomplete for employer *}" but suspect that is a red-herring for now and not sure if it came from stoob's work or not.

The Profile Form has a Title and a Legend which in our case both say EMPLOYEE

What do I need to edit so that the legend is replaced with the contacts Display Name?

And do I just need the file to be at CRM/Profile/Form or do I need to add a folder specific to this Profile so I don't end up messing up other versions of this profile display?

cheers
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Modifying legend of profile so it used Display Name of contact
September 11, 2009, 02:09:58 pm
Pete,
it's in the dynamic.tpl file. do a search for profilewrap, and the fieldset is just below that.
if the display name is included on the profile, it should be exposed to the smarty template and you could insert. you might need to then hide the field in the profile display so it's not duplicated.

or maybe add via hook and assign to smarty, but only include in the legend, so it doesn't cycle through the profile fields? maybe?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Modifying legend of profile so it used Display Name of contact
September 11, 2009, 02:12:23 pm
Thanks Brian - will have a look through based on that.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Modifying legend of profile so it used Display Name of contact

This forum was archived on 2017-11-26.