Problem/Motivation
Currently the "contact method" entities do not have their own dedicated theme templates.
I would like these to exist, since I want to adapt the theming of my contact methods.
For example, I want to override the template for the Telephone contact type, to be rendered as follows:
<div>{{ telephone }} ({{ detail }})</div>
This would then output a telephone contact method as:
+32 1234 56 78 90 (Home)
Proposed resolution
- Add a theme hook
- Add a template file
- Add theme suggestions for bundle & view mode combinations
Issue fork crm-3569519
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
svendecabooterI have added an MR that implements this functionality.
I think all template_preprocess_crm_* hooks in crm.module could probably also go in the ThemeHooks class, but I wanted to keep this MR as focussed as possible.
Comment #6
bluegeek9 commented