New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Books page as application home page #615

Closed
jonathanadams opened this Issue Dec 12, 2017 · 11 comments

Comments

7 participants
@jonathanadams

jonathanadams commented Dec 12, 2017

For Feature Requests

Desired Feature: Allow the application homepage to be set to /books?

@jonathanadams jonathanadams changed the title from Request: to Request: Book page as application home page Dec 12, 2017

@Abijeet

This comment has been minimized.

Member

Abijeet commented Dec 14, 2017

@jonathanadams - I'm don't know if this will be implemented but depending on which server you are using (nginx, Apache or IIS) you could set this up via a redirection.

Though this would mean that you will not be able to access the current homepage.

@ssddanbrown ssddanbrown changed the title from Request: Book page as application home page to Request: Books page as application home page Dec 24, 2017

@aljawaid

This comment has been minimized.

aljawaid commented Dec 24, 2017

It would be better if a single book can be assigned as the application homepage (before/after loggin in). It would also be beneficial, if we could assign one or more books so that the user can land on them books or direct onto the assigned book (if just one) when he/she logs in.

Example (purely ideas):
User X is temporary staff and only has access to procedures manual (one book). User logs in and is only directed to homepage of that manual.
User Y is temporary senior staff and has 4 books assigned to him. User logs in and is shown a list of books assigned to his login.
User Z is admin/default. Current system of v0.19 default settings apply to this user.

@olenoerby

This comment has been minimized.

olenoerby commented Dec 25, 2017

Thumbs up for user specifik settings and ability to set a global configuration dictating settings for all users by the admin.

@sorvani

This comment has been minimized.

sorvani commented Feb 20, 2018

v0.20 has the ability to select a page as the default homepage, and that is cool, but setting /books to default would be better for our use case.

@sorvani

This comment has been minimized.

sorvani commented Feb 20, 2018

@Abijeet the current home page is only useful if you want to go to something you have recently done or that someone else has recently done.

But often I will be going to a specific book to get to a specific page. It may well not be in the recent lists once my wiki is fully populated.
image

@olenoerby

This comment has been minimized.

olenoerby commented Feb 22, 2018

I use BookStack as a private documentation wiki and have a lot of users set up with different access controls to different books, so not all users have access to all books, representing different locations.

However, when people log in, they're presented with a rather unscenic and confusing frontpage with changes and new pages - where it would be easier if they had direct access to the list of books / households they have read access to.

This is why I request the feature to set /books as homepage upon login.

@pierre-le

This comment has been minimized.

pierre-le commented Mar 12, 2018

A quick and dirty workaround could be to add a rule in Nginx (or whichever web server you're using) to redirect requests from the "Dashboard" to /books.
Using Nginx:

location = / {
    rewrite ^/$ https://<your_url>/books redirect;
}
@sorvani

This comment has been minimized.

sorvani commented Mar 15, 2018

That breaks things unless you add a location path for every other path such as /logon /css /libs, etc.

@pierre-le

This comment has been minimized.

pierre-le commented Mar 15, 2018

@sorvani No, as this rule is an exact match on the home page, which is an HTML page. You just need to place that rule on top of any other location rule.

And... I can certify that this workaround works fine bc we're using it in production right now :)

@Abijeet

This comment has been minimized.

Member

Abijeet commented Apr 15, 2018

@ssddanbrown, I'd like to take a crack at this.

I've been trying to figure out how to fit this into the current UI and for now this is what I've come up with,

screenshot-2018-4-16 settings bookstack

I've tried to merge it with the existing Application Homepage setting but I think its still confusing.

The other option would be to somehow merge it into the current page selector that we have. Maybe at the bottom of the popup.

screenshot-2018-4-16 settings bookstack 1

Note that the popup has a couple of minor quirks that I'll fix along with this merge request.

One more question, should we simply redirect the user to the books/list page or create a new custom template similar to the one we've done for custom page selected as homepage with the same sidebar?

@ssddanbrown

This comment has been minimized.

Member

ssddanbrown commented Apr 21, 2018

Thanks @Abijeet for having a go at this and sorry for my late reply.

I think merging it in with the entity selector will be more trouble so an extra setting, as your first screenshot, is the best option for now.

I've been thinking about cleaning up the setting UI design recently so when I do that I may alter the implementation to be clearer but as the screenshot is perfectly fine for now.

I would say a new custom template may work better, With the same sidebar content as the existing custom homepage layout but with the 'all books' page main content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment