Answers.Body: <p>Not sure if it's a path problem or anything else, but in case of, it seems that CiviCRM manages only one <code>.extra.tpl</code> file per template. If another extension adds an extra template, it can override yours.</p>
  <p>In this case, this answer works fine:
  <a href="https://civicrm.stackexchange.com/a/33603/5794">https://civicrm.stackexchange.com/a/33603/5794</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-18T14:32:24.443Z
Answers.LastActivityDate: 2022-11-18T14:32:24.443Z
Answers.UserDisplayName: Bastien Ho
Body: <p>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.</p>
  
  <p><a href="https://i.sstatic.net/N0ep6.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/N0ep6.png" alt="enter image description here"></a></p>
  
  <p>Contents of my MembershipView.extra.tpl</p>
  
  <pre><code>{literal}
  &lt;script type='text/javascript'&gt;
  alert(5);
  &lt;/script&gt;
  {/literal}
  testing this text here
  </code></pre>
  
  <p>Thanking you</p>
  
  <p>Imran</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-04T19:03:27.990Z
Comments.Text: Did you ever figure this out?
Comments.UserDisplayName: Sleewok
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-11-18T14:11:43.990Z
Comments.Text: It seems that CiviCRM manages only one `.extra.tpl` file per template. If another extension adds an extra template, it can override yours.
Comments.UserDisplayName: Bastien Ho
Tags: <civimember><extension><templates><custom-templates>
Title: Extend CiviCRM template in Extension
ThreadText: # Extend CiviCRM template in Extension
  
  (Asked by: username_0 on 2017-07-18)
  
  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](https://i.sstatic.net/N0ep6.png)](https://i.sstatic.net/N0ep6.png)
  
  Contents of my MembershipView.extra.tpl
  
  ```
  {literal}
  <script type='text/javascript'>
  alert(5);
  </script>
  {/literal}
  testing this text here
  
  ```
  
  Thanking you
  
  username_0
  
  **Tags:** civimember, extension, templates, custom-templates
  
  > **Comments:**
  > **username_1**: Did you ever figure this out?  
  > **username_2**: It seems that CiviCRM manages only one `.extra.tpl` file per template. If another extension adds an extra template, it can override yours.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-11-18. Score: 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>
  
  
  ---
  
  