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) »
  • Display CiviCRM Profile in Joomla Front end
Pages: [1]

Author Topic: Display CiviCRM Profile in Joomla Front end  (Read 625 times)

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Display CiviCRM Profile in Joomla Front end
May 14, 2012, 04:47:27 pm
Hello everybody,
I have another question for you, who are the custodians of the knowledge.  ;D

In my Joomla CiviCRM installation, I have build a custom profile with many fields.
In the back end I can group some fields using some code
Code: [Select]
<fieldset>
<legend>Info Title</legend>
in "Field Pre Help"  and
Code: [Select]
</fieldset> in "Field Post Help".

 (see jpg attached)

But I don't know how I can obtain a custom view in the front end:
I opened the Dynamic.tpl file, where i found these lines:

Code: [Select]
{if ! empty( $row )}
{* wrap in crm-container div so crm styles are used *}
    {if $overlayProfile }
        {include file="CRM/Profile/Page/Overlay.tpl"}
    {else}
        <div id="crm-container" lang="{$config->lcMessages|truncate:2:"":true}" xml:lang="{$config->lcMessages|truncate:2:"":true}">
            {foreach from=$profileFields item=field key=rowName}
              <div id="row-{$rowName}" class="crm-section {$rowName}-section">
                <div class="label">
                    {$field.label}
                </div>
                 <div class="content">
                    {$field.value}
                 </div>
                 <div class="clear"></div>
              </div>
            {/foreach}
        </div>
    {/if}
{/if}
{* fields array is not empty *}


Now I could solve my problem using some if (e.g. if rowName is birthdate, add fieldset label), but I don't know what I have to write.

Thanks in advanced for your reply.

totolabs

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.2.0
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.61-0ubuntu0.10.04.1
  • PHP version: 5.3.2-1ubuntu4.14
Re: Display CiviCRM Profile in Joomla Front end
May 18, 2012, 04:47:35 am
At the moment I solved using a css hack:

Code: [Select]
div#row-first_name:before {
content: "Personal Data";
    display: block;
    margin-top: 2em;
margin-bottom: 1em;
    text-align: center;
font-weight:bold;
font-size:16px;
color: #134E8B;}

div#row-email_1:before {
content: "Contacts";
    display: block;
    margin-top: 2em;
margin-bottom: 1em;
    text-align: center;
font-weight:bold;
font-size:16px;
color: #134E8B;}

but I hope in an another solution.... ::)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Display CiviCRM Profile in Joomla Front end

This forum was archived on 2017-11-26.