1

If I want to access to a Contact Summary Page, I go to url:

http://<my_site>/civicrm/contact/view?reset=1&cid=<contact_id>

Is there any parameter I can add to url (or other way) where I can access to this Contact Summary Page but showing the Contributions Tab by default?

1

I don't think CiviCRM allows this out of the box, but you can achieve this by following the below steps using JavaScript:

  1. Using JavaScript check to see if the page url have '/civicrm/contact/view?reset=1&cid='

  2. Then set below two attributes in

  3. to true:

    aria-selected="true" aria-expanded="true" Where id = tab_contribute

Example:

<li id="tab_contribute" class="crm-tab-button ui-corner-all livePage ui-tabs-tab ui-corner-top ui-state-default ui-tab ui-tabs-active ui-state-active crm-count-1" role="tab" tabindex="0" aria-controls="ui-id-23" aria-labelledby="ui-id-22" aria-selected="true" aria-expanded="true">

If your CMS is drupal, you can use JS Injector module to include javascript which provides functionality to run JS on specific pages.

Let me know if you need more help.

1

I've found the parameter to set to url to show Contributions Tab by default (force=1 & selectedChild=contribute):

http://<my_site>/civicrm/contact/view?reset=1&cid=<contact_id>&force=1&selectedChild=contribute

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.