This documentation relates to CiviCRM version 2.2. It's not maintained anymore.
Current version of documentation.


Displaying signup email within profile

Comparaison des versions


  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • Formatting was changed.
Commentaire: Migrated to Confluence 4.0

I've made the following modification to civicrm/templates/CRM/UF/Form/Block.tpl (see below) that allows the primarily email field to be specified in the profile and displayed - without a duplicate as is the case in the demo @


Bloc de code
{if $n eq 'email-Primary'}
            {assign var=n value=email-$bltID}
            <td class="label">{$form.$n.label}</td>
               <td class="label">{$form.$n.label}</td>
                 {if $n|substr:0:2 eq 'im'}
                   {assign var="provider" value=$n|cat:"-provider_id"}

With the change made, the email field entry/display that is present in other templates can be commented out. ie.

Bloc de code
{assign var=n value=email-$bltID}
<table class="form-layout-compressed">
    <tr><td class="label nowrap">{$form.$n.label}</td><td>{$form.$n.html}</td></tr>

Attached are the files that I modified. Hope it's useful to everyone else