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

How to enable the toc permanently #30

Closed
Pantos opened this issue Mar 11, 2017 · 9 comments
Closed

How to enable the toc permanently #30

Pantos opened this issue Mar 11, 2017 · 9 comments

Comments

@Pantos
Copy link

Pantos commented Mar 11, 2017

Hello,
is there a setting to enable the toc permanently (so you don't have to choose this in the settings first)?

Thanks for your help!

@x8-999-github
Copy link

Hi,

I am looking for the same. Having had a quick look at the code I do not thinks this is currently possible but of course should not be to hard to fix.

One thing i "discovered" is that you can set toc=true in the url param to enable the toc
e.g. myurl/p/Item?toc=true

@guakamole
Copy link

guakamole commented Jul 28, 2017

Hello,

Thank you for this great extension 👍

Same question here, is there a way to display the ToC by default for all the pads without having to provide a URL ending with ?toc=true ?

@Ptrph
Copy link

Ptrph commented May 14, 2018

Hello,
For future information or if anyone still looking for the same issue, I found this. It works for me.
(I just had to delete the comma after “false” or I had a “bad json” warning.)

@fwolfst
Copy link
Contributor

fwolfst commented Apr 7, 2020

Put the following in settings.json:

"ep_toc": {
  "disable_by_default": false
},

@diesocke
Copy link

I put it at the end of the settings.json. If I save from the admin settings, I get a warning: "YOUR JSON IS BAD AND YOU SHOULD FEEL BAD." If I change the file via FTP it doesn't even display the contents of the file anymore, until I reverse it.

@JohnMcLear
Copy link
Member

@diesocke remove the trailing , and before you submit your JSON run it through a JSON validator. TLDR is you suck at JSON yea you totally suck :D

Seriously tho, it's hard/fiddly for a newcomer to understand JSON but once you get it, it's easy.... <3

@diesocke
Copy link

I got it working. At least, there is now a tab called "Gliederung" (which is "structure" in German). How do I mark headings to be displayed there?

@JohnMcLear
Copy link
Member

@diesocke ?? click that select, click an option in that select, they will show up in TOC on the left...

@diesocke
Copy link

image

Which select? I cannot see any, even if I mark some content.

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

7 participants