• ecWebv4 Sidebar Toggle Button

    From Mindless Automaton@1:103/705 to DOVE-Net.Synchronet_Discussion on Tuesday, July 18, 2023 13:34:57
    FYI, setting <!--NO_SIDEBAR:Home--> does not disable the Toggle Sidebar button.

    Thanks!

    Mindless Automaton

    ---
    ■ Synchronet ■ Eldritch Clockwork
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Mindless Automaton@1:103/705 to Mindless Automaton on Wednesday, July 19, 2023 10:07:10
    On 7/18/2023 1:34 PM, Mindless Automaton wrote:
    FYI, setting <!--NO_SIDEBAR:Home--> does not disable the Toggle Sidebar button.

    Thanks!

    Mindless Automaton

    In index.xjs I just wrapped the code for the button in

    <? if (!(settings.layout_sidebar_off || page_ctrl.options.no_sidebar)) {?> --->button html here<---
    <? } ?>

    and that seems to have fixed my issue. Of course it would only affect
    someone who was doing weird things to begin with. :)

    Thanks!
    Mindless Automaton

    ---
    ■ Synchronet ■ Eldritch Clockwork
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)