Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7760

Provide better placement of HookFormElements in templates

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.alpha, 3.4.beta, 3.4.0, 4.0.0
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Currently all the form elements created by hooks are inserted in CRM/Form/body.tpl which means they will appear above everything, instead of in a position that may make more sense, depending on the form.

      I propose that the $beginHookFormElements block be removed from body.tpl and put into a new template file at CRM/common/HookFormElements.tpl. Then each form would contain an include:

      {include file="CRM/common/HookFormElements.tpl"}

      to provide a finer grained ability to place the form elements.

      Even this is not ideal since it will treat all the hook elements as a group, but it's still better than what we have currently (as of 3.3.5).

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              herb@freeform Herb
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: