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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Add parameters to $customPost
Pages: [1]

Author Topic: Add parameters to $customPost  (Read 879 times)

Triquanta

  • Guest
Add parameters to $customPost
February 13, 2010, 06:52:15 am
Is it possible to add some information to the fields in $customPost and $customPre that are used in showing profiles on event registration pages? I can do that with a profile form with hook_civicrm_buildForm, but in the rendering of an event registration a variable ($customPost / $customPre) is passed to Block.tpl. Is it in any way possible to alter those vars before rendering in a hook?

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: Add parameters to $customPost
February 13, 2010, 07:26:33 am

currently no. we need a "pre display" hook in the form process so developers can alter the template variables. If you file an issue, i'll add it for 3.2 :)

any reason why u dont customize block.tpl

customPre / customPost are formatted in a very "specific" manner, so not sure if u'd want to modify those variables

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

Triquanta

  • Guest
Re: Add parameters to $customPost
February 13, 2010, 07:50:56 am
I want to group certain fields in different fieldsets. So custom data group 1 in a fieldset 1, and custom data group 2 in a different fieldset. Becasue grouping is not possible right now I worked arround this by putting some extra information in the custom fields. In my template file I can switch on that to close and open fieldsets and tables.
Is there maybe another way of doing this?

Triquanta

  • Guest
Re: Add parameters to $customPost
February 15, 2010, 01:17:41 am
issue filed.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Add parameters to $customPost

This forum was archived on 2017-11-26.