# CRM Template, Collapse Left Menu

**URL:** <https://community.weweb.io/t/crm-template-collapse-left-menu/1341>\
**Category:** How do I?\
**Created:** [October 22, 2022, 9:41pm UTC](https://community.weweb.io/t/crm-template-collapse-left-menu/1341 "2022-10-22T21:41:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patopt](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@patopt](https://community.weweb.io/u/patopt)\
**Post date:** [October 22, 2022, 9:41pm UTC](https://community.weweb.io/t/crm-template-collapse-left-menu/1341/1 "2022-10-22T21:41:45Z")

</div>

Is there a way to make a button on the left menu to collapse the sidebar into just icons to get back some screen space?

---

<div class="post-metadata">

**Author:** ![peteletkemansst](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@peteletkemansst](https://community.weweb.io/u/peteletkemansst)\
**Post date:** [October 22, 2022, 9:55pm UTC](https://community.weweb.io/t/crm-template-collapse-left-menu/1341/2 "2022-10-22T21:55:03Z")

</div>

@patopt  
Looks like the sidebar 's visibility is controlled via a variable

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/5/5f08a5231d28e23685f6df3f068d1869f4ac4e3a.png)  
One solution is to create a collapsed sidebar that uses the same variable but with a ‘not’ operation.  
When displaymenu is true, show the original sidebar and hide the collapsed sidebar.  
When displaymenu is false, hide the original sidebar and show the collapsed sidebar.  
In the expanded sidebar add a button with a workflow that changes the value of displaymenu to false.  
In the collapsed sidebar add a button with a workflow that changes the value of displaymeny to true.

---

<div class="post-metadata">

**Author:** ![patopt](https://avatars.discourse-cdn.com/v4/letter/p/97f17d/32.png) [@patopt](https://community.weweb.io/u/patopt)\
**Post date:** [October 22, 2022, 10:05pm UTC](https://community.weweb.io/t/crm-template-collapse-left-menu/1341/3 "2022-10-22T22:05:55Z")

</div>

> [@peteletkemansst](#):
>
> llapsed sidebar that uses the same variable but with a ‘not’ operation.  
> When displaymenu is true, show the original sidebar and hide the collapsed sidebar.

Thanks! Let me play around w/this some.
