Sidebar-Pin state persisted

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
marthaler
Posts: 1
Joined: 26 Feb 2017, 01:30

25 Feb 2021, 22:49

Hi dear Primefaces Team

I bought the Fraya Theme last autumn, and i am very happy with it. I save the config Settings in a Backing Bean with Values stored to the User in a DB. It works perfect. I now tried to save the state of the Sidebar Pin the same way. But no luck for now.

I am looking vor an easy way to save the Sidebar Pin State in a Backing Bean. Can you give me a Hint?

For me the best option would be to have the Sidebar Pin clicked like another layout like (layout-horizontal / layout-sidebar / layout-slim) -> layout-side-pinned

Can you help me to reach my Goal?

Best Regards
Daniel

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

26 Feb 2021, 14:16

Hi,

Please do this change in template.xhtml on line 24. So the line is:

Code: Select all

<div class="layout-wrapper layout-topbar-#{guestPreferences.topbarTheme} layout-menu-#{guestPreferences.menuTheme} #{guestPreferences.menuMode}" >
and please add "layout-static" to end of line. Like this:

Code: Select all

<div class="layout-wrapper layout-topbar-#{guestPreferences.topbarTheme} layout-menu-#{guestPreferences.menuTheme} #{guestPreferences.menuMode} layout-static" >
Best Regards,

Post Reply

Return to “Freya - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests