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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Expand Custom Data Section as default
Pages: [1]

Author Topic: Expand Custom Data Section as default  (Read 1135 times)

czerwinski1977

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
Expand Custom Data Section as default
June 22, 2010, 04:18:54 pm
Hi there,

when adding a new contact, I would like to expand the custom data section by default. Can somebody please point me in the right direction how to accomplish that?

Thank you!

Reinhard.

ctarascio

  • I post frequently
  • ***
  • Posts: 334
  • Karma: 30
    • American Friends Service Committee
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 6.26
  • MySQL version: 5.5.20
  • PHP version: 5.3.13
Re: Expand Custom Data Section as default
June 23, 2010, 05:55:24 am
Hi Reinhard,
I don't think there is an easy way to do what you want, but perhaps this post will help you: http://forum.civicrm.org/index.php/topic,5108.0.html.

Barring that, edit the "settings" for your custom group and make sure that the box for "Collapse this group on initial display" is unchecked. You will still have to click on the "Expand all tabs" link in the upper right-hand corner of the screen, so I am not sure that this approach really saves you any time.

Hope this helps,
Cynthia

czerwinski1977

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
Re: Expand Custom Data Section as default
June 26, 2010, 06:53:04 am
Cynthia, thank you for this hint!

I edited templates/CRM/Contact/Form/Contact.tpl ... (yes, I know, I should have my own template files instead of editing the original ones ... ;) ...)

...
{* include common additional blocks tpl *}
{include file="CRM/common/additionalBlocks.tpl"}

{* and HERE starts my insert *}
{* http://forum.civicrm.org/index.php/topic,5108.0.html *}
{literal}
<script type="text/javascript">
    jQuery( function ($) {
        $( '#customData').show();
    });

</script>
{/literal}


This works basically pretty well and is what I want. However, there is one small thing left: the arrow-indicator of the custom data section points to the right (indicating it can still be expanded) - as a result, the meaning of the indicator and the show-status of the section are reversed.

Any idea what else I have to tweak?

Thanks again!

Reinhard.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Expand Custom Data Section as default
June 28, 2010, 04:09:12 am
Reinhard

I think custom data has a settings "Collapse on Display", so if you un check that it will be open by default. This should work well for 3.2

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Expand Custom Data Section as default

This forum was archived on 2017-11-26.