Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 924
    • Issues 924
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #101

Closed
Open
Opened May 03, 2018 by michael@michael

Allow further customization of search form in hooks

The contact search form uses the template templates/CRM/Contact/Form/Search/Criteria/Basic.tpl. In the template there are already some conditionals to hide certain fields, such as

{if $form.group}
  <td>
  ...
{/if}

However only some fields are covered. For an extension developer who wants to hide more fields here it is difficult without causing warnings or breaking the layout.

It is now possible to override the fields on the basic search template by altering the fields array assigned to the template in a hook


Core PR: https://github.com/civicrm/civicrm-core/pull/12078

Edited Jun 08, 2018 by eileen
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
5.4.0
Milestone
5.4.0
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#101