How to display sidebar menu in webpage, it doesn't show on website?

Hi team
How to display sidebar menu in webpage, it doesn’t show on website?



On website

hello
have you enabled “show sidebar” in your web page doctype ?

Yes, I did it

I ticked show sidebar but it not show my sidebar item

just tested this , does work … v13.26
have you added the web page to website settings?

Screenshot from 2022-10-06 10-02-33

Screenshot from 2022-10-06 10-04-35

did you clear cache ? Or Reload page ?

1 Like

There are some issues with sidebar in v14:

1 Like

I did it. thank you !

thank you!

@Thanh_Binh let us know what was your solution , in-case there are others who may need to know , thanks

I added the sidebar code to web_sidebar.html because my web_sidebar.html is empty.

1 Like

Hi sir,
Can you show me the code of your web_sidebar file?
Thank you.

Write this code in the same py name file of your html file :
eg. hello.html so write in hello.py

import frappe
import frappe.www.list
from frappe import _

no_cache = 1

def get_context(context):
context.show_sidebar = True

Do this context.show_sidebar = True