GithubHelp home page GithubHelp logo

Comments (5)

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 20, 2024

Hello.

The right menu not only shows information related to blog pages (taxonomies, archives, feeds, etc, only if the corresponding plugins are activated), but also shows the top menu when browsing on mobile devices.

I wonder why you would want to remove that menu on the right. However, this involves a deep remodeling of the code, which, at the moment, is not in my plans.

If you do some digging into the code you can see that that menu loads in the {% block menu %} block in different twig templates. You can play commenting on those blocks to see if the result is what you are looking for.

On the other hand, menu_login is not to show or hide the menu icon on the right, but to show an icon in the top bar in case you want to enable multi-user access for private pages available in Grav.

from grav-theme-future2021.

Oxyaxion avatar Oxyaxion commented on July 20, 2024

Hello,

Thanks for the feedback. Indeed I did some test from a smartphone + taxonomies plugins, I see what your mean

In fact my goal is not to remove the menu the menu. But just to hide the login button to my visitors.
Editors will be able to login in by the grav / admin panel, thus I want to maximize security and avoid login attempts as much as possible.

Especially as I don't understand what this button is really for. Knowing that once connected it doesn't allow you to edit pages.

from grav-theme-future2021.

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 20, 2024

The login that is done through the Login button is to access private pages previously defined as such in the security tab of each page. https://learn.getgrav.org/17/admin-panel/page/security
To prevent a user from accessing the administration panel you just have to disable the Admin plugin. But that would prevent you from also accessing and having to do all the work of managing pages directly in the .md files of each page in your folders.

To have an address to the admin panel other than /admin you should set an alternative route in the admin.yaml file (in the /user/config/plugins folder) by changing route: /your_custom_route

from grav-theme-future2021.

Oxyaxion avatar Oxyaxion commented on July 20, 2024

Hello,

Workarround was super easy , to remove the "login button" from the right bar

in templates\partials\sidebar_right.html.twig

Comment from line 61 -> 73.

from grav-theme-future2021.

pmoreno-rodriguez avatar pmoreno-rodriguez commented on July 20, 2024

Hello.

I see that in the end you have been able to adapt the theme to your needs. At first I thought you wanted to remove the menu button from the right sidebar, but it was a mix-up from the screenshots you showed.

Well, if everything goes well, can we close this issue?

from grav-theme-future2021.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.