# Using master page and partials, who do they work?

**URL:** <https://forum.pinegrow.com/t/using-master-page-and-partials-who-do-they-work/6253>\
**Category:** Pinegrow PRO\
**Created:** [February 15, 2022, 9:44am UTC](https://forum.pinegrow.com/t/using-master-page-and-partials-who-do-they-work/6253 "2022-02-15T09:44:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![murugappan](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@murugappan](https://forum.pinegrow.com/u/murugappan)\
**Post date:** [February 15, 2022, 9:44am UTC](https://forum.pinegrow.com/t/using-master-page-and-partials-who-do-they-work/6253/1 "2022-02-15T09:44:32Z")

</div>

Hi,

This is what i did:

Created a template style page (Admin Dashboard) with all the side/top bars, footer.  
For the content of the page, i created a div with a simple text. The div is suppose to contain the contents for each new page i create using the master.  
I made the page as master and the div as partial. But defining the div as partial it requested me to enter the file name???

I am confused as how the partial is to be used. The documentation on partials is minimal and does not help.

Please advise.

---

<div class="post-metadata">

**Author:** ![RobM](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@RobM](https://forum.pinegrow.com/u/RobM)\
**Post date:** [February 15, 2022, 10:35am UTC](https://forum.pinegrow.com/t/using-master-page-and-partials-who-do-they-work/6253/2 "2022-02-15T10:35:10Z")

</div>

Hi @murugappan,  
Partials are sort of another way to put together multi-use files. With a Master, you define the skeleton of a page, like the header and footer, that your content goes into. With a partial you can save, for example, three different versions of a header and decide which to use on a particular page. You can think of them like components. Make sense?  
Instead, I think you want to make the inner div editable by adding the “Define Editable” action. That way on each sub-page everything will match the Master page except that div.  
Hope this helps,  
Bob

---

<div class="post-metadata">

**Author:** ![murugappan](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@murugappan](https://forum.pinegrow.com/u/murugappan)\
**Post date:** [February 15, 2022, 11:42am UTC](https://forum.pinegrow.com/t/using-master-page-and-partials-who-do-they-work/6253/3 "2022-02-15T11:42:25Z")

</div>

Hi @RobM

Already did use a editable field. It works fine. The partial here is specific to a page. Whereas in PHP frameworks, partials are components that can be plugged into a template (master). The difference in PHP frameworks the partial is independent of the template and can be used anywhere.

I guess it works quite similarly. I am going to try it out and update post. If it works i can PG to work with Codeigniter 4 easily. Only CI4 not CI3.

Thank you for your assistance. Will update post again.
