1

I am trying to extend the MembershipView.tpl which look like the image below. I have created an extension and added a MembershipView.extra.tpl file to my extension folder and placed it in Template>CRM>Membership>Form but the contents I have placed inside wont show in the membership view template.

enter image description here

Contents of my MembershipView.extra.tpl

{literal}
<script type='text/javascript'>
alert(5);
</script>
{/literal}
testing this text here

Thanking you

Imran

2
  • Did you ever figure this out?
    – Sleewok
    Jun 4, 2018 at 19:03
  • It seems that CiviCRM manages only one .extra.tpl file per template. If another extension adds an extra template, it can override yours.
    – Bastien Ho
    Nov 18, 2022 at 14:11

1 Answer 1

1

Not sure if it's a path problem or anything else, but in case of, it seems that CiviCRM manages only one .extra.tpl file per template. If another extension adds an extra template, it can override yours.

In this case, this answer works fine: https://civicrm.stackexchange.com/a/33603/5794

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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