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 #16

Open
studiohypersetadmin opened this issue Aug 3, 2018 · 0 comments
Open

Table of Contents #16

studiohypersetadmin opened this issue Aug 3, 2018 · 0 comments

Comments

@studiohypersetadmin
Copy link
Contributor

Another thing that would be handy, especially for authors: adding a table of contents.

This too would require a manual page break and would go something like this:

<!—bof-title-of-this-section-->
Chapter 1: Disappointment

Their would need to be a GUI on the page below the one you already have there:

unnamed-1

The GUI would ask if a Table of Contents should be activated. If yes, it would ask:
What is the title of this menu: “Table of Contents” (default setting; they could type in what they want)
Specify a css wrapper class: “.plp-toc” (default setting; they could type in what they want)
Where would you like the TOC to appear?
First page only; Every page; First page of every section?
Horizontally: Float left, right, or center?
Vertically: Fix top, bottom, or middle?

The drawback is that you’d have to allow for styling controls for people who can’t do css. Maybe this could be in settings, not page specific? If you are allowing them to override the default class within the page, advanced users could alter as they please.

But in the settings, you’d need to allow a user to style their little menu. Text size, color, weight, etc. And maybe let them create a box around the menu, specifying background, border, shadow, rounded corners, etc.

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

No branches or pull requests

1 participant