my17560 / dokuwiki-template-readthedokus

"Read the Docs" flavored DokuWiki template
MIT License
13 stars 10 forks source link

Hide Title if user has no access to it #45

Closed eduardomozart closed 1 year ago

eduardomozart commented 1 year ago

Hello, After LogOut, the user are still able to see the path of the page he/she is trying to access at the Breadcrumb and the Title of the page. Not exactly a bug, and I know it's the default behavior of DokuWiki (as far as I've seen into other templates too), but I believe it should be great to hide the Title of page if user isn't authenticated and isn't logged in into DokuWiki while trying to access a namespace he/she has no access to. Not sure if it's possible though.

SCR-20230206-x5t
my17560 commented 1 year ago

Sorry but the feature you are asking for is beyond the scope of this template. You should ask to the Dokuwiki author.

However, you can hide breadcrumbs when you are logged out with css. When you are logged in, div#dokuwiki__site has loggedIn class. so adding the style below will hide breadcrumbs when you are logged out.

#dokuwiki__site:not(.loggedIn) .breadcrumbs
{
    display: none;
}
eduardomozart commented 1 year ago

Thank you!