Skip to content
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

Table of Contents as Home Page #616

Open
jdrews opened this issue Dec 13, 2017 · 11 comments
Open

Table of Contents as Home Page #616

jdrews opened this issue Dec 13, 2017 · 11 comments

Comments

@jdrews
Copy link

jdrews commented Dec 13, 2017

For Feature Requests

Desired Feature:
Looking for a table of contents that we can set as the home page. The use case is to allow for a jump point for new visitors. They may not know what they're looking for so a search doesn't always work.

@Shackelford-Arden
Copy link

@jdrews

Are you looking for a table of contents to be auto-generated or are you simply looking for a way to set a custom home page that you've put together yourself?

You can already set any page as the home page for your bookstack instance by doing the following:

  • Login
  • Click Settings
  • Adjust the option for Application Homepage

Would that help with what you're trying to do or are you looking for something else?

@jdrews
Copy link
Author

jdrews commented Dec 14, 2017

I am looking for a table of contents to be generated. This is similar to the /books display, however I am looking for the contents of the books to be displayed as well (both chapters and pages).

After we can generate a table of contents, I'd like to place that as the home page.

@jdrews
Copy link
Author

jdrews commented Dec 14, 2017

Thinking further, I could see a use case where there are so many pages that it could get unwieldy to display them on a table of contents. But for a smaller deployment it would be useful to see books, chapters, and pages on a table of contents.

Could the inclusion of pages be a configuration item?

@AbijeetP
Copy link
Contributor

I'm assuming you are looking for something similar to this but across books,

screenshot-2017-12-14 sort book the book of books bookstack 1

@jdrews
Copy link
Author

jdrews commented Dec 14, 2017

Yes Please!

@aljawaid
Copy link

aljawaid commented Dec 23, 2017

Having a Table of Contents (just like creating and auto cross-referencing the same from Microsoft Word) would make the BookStack book very printer/pdf friendly too. If there was an ability to show or hide the page numbers, then the final generated offline paper version of the book would be a lot more professional.

Just sharing my opinion.

My use case: for certain business terms and policies in particular books, there is no user access, just a printed paper version. At the moment, there is no company logo, header/footer, or table of contents/index. Having that stuff would make the online/offline same copies of the books awesome-r! :)

@Wookbert
Copy link

Wookbert commented Oct 12, 2019

@ssddanbrown @jdrews @littlebrighter

I am voting also for a full-fledged Table of Contents (ToC)/Index on the Homepage, and already spent some serious thoughts on this. Here’s a quick 'n dirty mockup:

BookStack Inhaltsverzeichnis

  • ToC on homepage, below existing blocks
    The existing blocks in the three columns should have the same maximal vertical length (in the above screenshot the middle block is too long. The lower left block should either be a) moved down a bit (this way the text/icons would vertically align across the three columns) or b) extended with white, so it aligns with the bottom of the middle block.

  • ToC in 3 columns ... or 2?
    In my above mockup, I've used 3 columns and tried to horizontally align both icons and text with the 3 blocks above.

    The problem with 3 ToC columns as pictured above is that the 3rd column on the right exceeds the block. This is in part because when looking at the above 3 blocks and my yellow markings, you see the gap between block 1-2 and 2-3, but that gap space is not existing on right side of the 3rd block. The ToC lines of each column could run up to each yellow marking ... if we wouldn't have the problem with the 3rd column.

    Solution A: Ignore horizontal alignment of text/icon entirely and use a raster independent from the 3 blocks above

    Solution B: Go for 2 columns.

  • Dealing with long headlines
    Shorten the text or wrap it into the next line? I guess I'd go for wrapping with shortening after the 3rd line.

  • Icons & Colors
    The above mockup shows icons only for books. My next post hereunder shows a life, actually working mockup where we incorporate both icons and the color scheme of books, chapters and pages.

  • Indention?
    Chapters don't have necessarily to be indented (other than shown in the above mockup), but can/could be on the same indention level as the book title itself. One should test to display chapters in italic, as they don't have actual content.

    Pages, Headline Large and Medium should be indented. Headline Small and Tiny could be on the same level? Question is: Are Headlines Tiny shown in the ToC? Down to which level do we go? Is this a user adjustable feature?

  • Order of book appearance
    The above mockup has a sorting drop menu, similar to the Books and Shelves views. Sorting options should be Name, Created Date, Updated Date, Popular Books (how often a book gets opened, already exists in the left side navigation in the Books view; IMO a much needed sorting option).

@Wookbert
Copy link

Wookbert commented Oct 12, 2019

The following screenshot shows a BookStack Table of Contents Hack my partner has coded. It's live, generated on-the-fly from the actual books and fully working – but of course is a separate HTML page not implemented into BookStack. Our current implementation work-around: We've created a book in BookStack named „Table of contents“, which we are redirecting using the Apache server to our HTML page.

Bildschirmfoto 2019-10-10 um 16 32 12

@nathlx
Copy link

nathlx commented Nov 15, 2022

The following screenshot shows a BookStack Table of Contents Hack my partner has coded. It's live, generated on-the-fly from the actual books and fully working – but of course is a separate HTML page not implemented into BookStack. Our current implementation work-around: We've created a book in BookStack named „Table of contents“, which we are redirecting using the Apache server to our HTML page.

Bildschirmfoto 2019-10-10 um 16 32 12

This looks great, did you publish this anywhere? or is it tied tightly to your implementation?

This was referenced Aug 29, 2023
@jefry7
Copy link

jefry7 commented Aug 29, 2023

Any progress on this feature? is there any way to get it?

@ccarlo88
Copy link

ccarlo88 commented Nov 11, 2023

You are probably looking for something like this: #2477

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

No branches or pull requests

9 participants