# Extending the lead view page

**URL:** <https://forum.mautic.org/t/extending-the-lead-view-page/2753>\
**Category:** Development\
**Created:** [November 10, 2015, 8:35pm UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753 "2015-11-10T20:35:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danionut](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@danionut](https://forum.mautic.org/u/danionut)\
**Post date:** [November 10, 2015, 8:35pm UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/1 "2015-11-10T20:35:41Z")

</div>

Hello,  
  
  
  
I’m trying to build a mautic plugin, and i would like to add a form to the lead view page just under the Points.  
  
  
  
Any idea on how can i extend the page ? I want to create a plugin and not alter the code that’s in the LeadBundle.  
  
  
  
Looking at the code it seems to me that it’s not really extendable and i have no idea at this point on how to approach this.  
  
  
  
Any hint is appreciated.  
  
Thank you.

---

<div class="post-metadata">

**Author:** ![danionut](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@danionut](https://forum.mautic.org/u/danionut)\
**Post date:** [November 10, 2015, 8:35pm UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/2 "2015-11-10T20:35:41Z")

</div>

Hello,

I’m trying to build a mautic plugin, and i would like to add a form to the lead view page just under the Points.

Any idea on how can i extend the page ? I want to create a plugin and not alter the code that’s in the LeadBundle.

Looking at the code it seems to me that it’s not really extendable and i have no idea at this point on how to approach this.

Any hint is appreciated.  
Thank you.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [November 11, 2015, 10:20am UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/3 "2015-11-11T10:20:12Z")

</div>

Hi, never tried this, but Mautic is a Symfony App. Try this:

[http://symfony.com/doc/current/book/templating.html#template-inheritance-and-layouts](http://symfony.com/doc/current/book/templating.html#template-inheritance-and-layouts)

---

<div class="post-metadata">

**Author:** ![danionut](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@danionut](https://forum.mautic.org/u/danionut)\
**Post date:** [November 11, 2015, 7:18pm UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/4 "2015-11-11T19:18:02Z")

</div>

I don’t think the inheritance of views helps at all.

I want to inject a form into the lead page, i’m not trying to create a separate page, also rewriting the route would not be a good idea because i’m not hacking it, i want to build a plugin.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [November 11, 2015, 9:29pm UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/5 "2015-11-11T21:29:34Z")

</div>

Well, I apologize for the misleading link then. I thought it could guide you to a solution.

---

<div class="post-metadata">

**Author:** ![danionut](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@danionut](https://forum.mautic.org/u/danionut)\
**Post date:** [November 12, 2015, 6:38am UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/6 "2015-11-12T06:38:27Z")

</div>

I was hoping for your second try or correcting me with an example on how to use the inheritance in that example ☹

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:57pm UTC](https://forum.mautic.org/t/extending-the-lead-view-page/2753/7 "2020-02-02T22:57:16Z")

</div>


