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) »
  • Where to edit profiles? Dynamic.tpl or not
Pages: [1]

Author Topic: Where to edit profiles? Dynamic.tpl or not  (Read 1225 times)

marc

  • Guest
Where to edit profiles? Dynamic.tpl or not
August 09, 2010, 07:43:29 am
Hi,

I want to modify a civicrm profile used on drupal login, and so added some code in Dynamic.tpl. I tried to edit templates/CRM/Profile/Form/10/Edit.tpl (where 10 is the id of the profile I want to modify), but none of those changes showed up, hence I hacked Dynamic.tpl. Is this how I should go about it or should I add the code somewhere else?

Cheers,

Marc

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Where to edit profiles? Dynamic.tpl or not
August 09, 2010, 09:11:47 am

hey marc:

the main issue is the specific template customization does not flow down the template inclusion path (it can with a few more core code changes, but currently not) (i.e. since Edit.tpl includes Dynamic.tpl, the specific id template cstomization does not work for Dynamic.tpl)

also since drupal registration can include multiple profiles, it does not follow the specific  profile id inclusion path also.

If you are interested in making changes to this, get on IRC and we can point you down the right path

lobo


A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

quentong

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.23
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Where to edit profiles? Dynamic.tpl or not
May 03, 2012, 08:45:20 pm
Any insight in this? I am trying to modify the layout of my drupal registration and edit. I thought I could accomplish that by making a custom edit.tpl and view.tpl. My understanding (am a bit new) is to use debug to get the variables and arrange accordingly on edit.tpl and view.tpl in my respective over ride folder. Am I heading down the wrong path?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Where to edit profiles? Dynamic.tpl or not
May 04, 2012, 06:40:28 am


yes, i would modify edit.tpl and within that, i'd include my modified dynamic.tpl or inline it in the edit.tpl file itself

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

quentong

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 3.3.2
  • CMS version: Drupal 6.23
  • MySQL version: 5.1
  • PHP version: 5.2
Re: Where to edit profiles? Dynamic.tpl or not
May 14, 2012, 11:32:48 am
Tks Lobo. I appreciate it.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Where to edit profiles? Dynamic.tpl or not

This forum was archived on 2017-11-26.