# "\\Components\\Update the whole project" - any way to exclude certain files?

**URL:** <https://forum.pinegrow.com/t/components-update-the-whole-project-any-way-to-exclude-certain-files/6311>\
**Category:** Beginners\
**Created:** [February 23, 2022, 6:47pm UTC](https://forum.pinegrow.com/t/components-update-the-whole-project-any-way-to-exclude-certain-files/6311 "2022-02-23T18:47:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dculp](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@dculp](https://forum.pinegrow.com/u/dculp)\
**Post date:** [February 23, 2022, 6:47pm UTC](https://forum.pinegrow.com/t/components-update-the-whole-project-any-way-to-exclude-certain-files/6311/1 "2022-02-23T18:47:00Z")

</div>

Almost all of my pages are controlled just by the master.html. They appear as –

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/b/be1de3ffc35d852b080046446b1273aa139fc704.png)

However, two pages (contents.html and glossary.html) have a left sidebar –

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/2/2caa1f1a86be4428b142a459d402281813cac4b5.png)

If I apply “\Components\Update the whole project” then the sidebars are removed. My only solution is to temporarily rename these two files with a non-html extension before applying “\Components\Update the whole project” and then rename them back afterwards – not really ideal.

Is there a better way to handle this (perhaps some code within contents.html to preserve the sidebar)?

Thanks,  
Don C.

---

<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 23, 2022, 7:19pm UTC](https://forum.pinegrow.com/t/components-update-the-whole-project-any-way-to-exclude-certain-files/6311/2 "2022-02-23T19:19:35Z")

</div>

Hi @dculp,  
I would have to see:

1. How the editable area of the Master page is set-up
2. How the sidebar is added into the code.  
If everything between the header and footer is set as editable, you sidebars shouldn’t be stripped out.  
Cheers,  
Bob

---

<div class="post-metadata">

**Author:** ![dculp](https://avatars.discourse-cdn.com/v4/letter/d/e47c2d/32.png) [@dculp](https://forum.pinegrow.com/u/dculp)\
**Post date:** [February 23, 2022, 9:54pm UTC](https://forum.pinegrow.com/t/components-update-the-whole-project-any-way-to-exclude-certain-files/6311/3 "2022-02-23T21:54:39Z")

</div>

If I have something like –

```auto
<div class="sidebar" data-pgc-edit="sidebar"> 

```

What is the significance of the name assigned to data-pgc-edit (`sidebar` in the above example)? Is the name used elsewhere?

Can data-pgc-edit have the same name as class (both `sidebar` in the above example)?

---

<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 24, 2022, 10:17am UTC](https://forum.pinegrow.com/t/components-update-the-whole-project-any-way-to-exclude-certain-files/6311/4 "2022-02-24T10:17:58Z")

</div>

Hi @dculp,  
The `data-pgc-edit` attribute is assigned to elements that get the ‘Define Editable’ action. There shouldn’t be any other editable areas defined with the same id, but having a class with the same name won’t be a problem.  
Bob
