Giter Club home page Giter Club logo

Comments (5)

Japhys avatar Japhys commented on July 28, 2024 1

I use my website as a personal 'Instagram' and for travel updates (pre and post covid of course). Mainly for friends and family. Others don't need to see where I am or what I do, they don't need to know these pages even exist.

So when people visit my website they only see two menu item: about and login. After logging in they see a couple more: photos and travel. That's the idea. And it already works like that.

I use /userlogin now and I put it in the menu, however the nav item name is not conditional. It remains whatever I call it, in this case login, even when you are logged in. I would like to see it change to log out after logging in,

This is probably not something you will have to implement in the theme, maybe something I'll have to figure out myself and put in my navigation twig. I just don't know how, can't get it to work :)

from grav-coder.

ParitoshBh avatar ParitoshBh commented on July 28, 2024

There's a couple of different things that'll have to be addresses here,

  1. Navbar menu item -> Easy part. Although I do want to know the use case here.
  2. /login url -> Currently works but the form on page is sort of broken. It works but CSS needs fixing.

It'd be nice to know what you're trying to achieve here (besides showing login url/status in navbar) and how that can be useful for others. Reason I am asking this is I personally don't see the value in it (my preference is using admin dashboard) however if there's a strong use case here, I'll consider this!

from grav-coder.

ParitoshBh avatar ParitoshBh commented on July 28, 2024

Pushed a new update 0.1.8, that should support your use case. If you're interested in code, here's the relevant portion 96a178f#diff-5c36d298048f0d5b0fb77402283f1c1bf4184911555dc8a92818aac4d79792f2

from grav-coder.

Japhys avatar Japhys commented on July 28, 2024

Wonderful! Thanks so much

edit

@ParitoshBh just to let you know I tried it and it worked exactly as I was hoping for. Many thanks!

from grav-coder.

ParitoshBh avatar ParitoshBh commented on July 28, 2024

Good to know it worked out for you!

from grav-coder.

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.