{"id":124,"date":"2014-06-26T18:45:51","date_gmt":"2014-06-26T18:45:51","guid":{"rendered":"https:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/chapter\/table-of-contents-adding-a-second-level\/"},"modified":"2024-09-28T08:04:35","modified_gmt":"2024-09-28T08:04:35","slug":"table-of-contents-adding-a-second-level","status":"publish","type":"chapter","link":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/chapter\/table-of-contents-adding-a-second-level\/","title":{"raw":"Table of Contents: Adding a Second Level","rendered":"Table of Contents: Adding a Second Level"},"content":{"raw":"Pressbooks supports adding one sub-level to your Table of Contents. Below are instructions on how you can use Heading 1 to enable a second level on your TOC.\n<ol>\n \t<li>Go to Appearance &gt; Theme Options<\/li>\n \t<li>Select \"Enable a two-level TOC\"<\/li>\n \t<li>Now, in your content, headings tagged with &lt;h1&gt; tags should be parsed into a (linked) subsection in your TOC.<\/li>\n<\/ol>\nPlease note that these second levels (with H1 headings) appear collapsed by default. This means that while they <strong>are<\/strong> in the TOC, you will have to click on the <strong>+<\/strong> button next to the chapter so that this second level shows.\n\nFinally, not all Themes have been tested with this feature -- if things look funny, please test another theme.","rendered":"<p>Pressbooks supports adding one sub-level to your Table of Contents. Below are instructions on how you can use Heading 1 to enable a second level on your TOC.<\/p>\n<ol>\n<li>Go to Appearance &gt; Theme Options<\/li>\n<li>Select &#8220;Enable a two-level TOC&#8221;<\/li>\n<li>Now, in your content, headings tagged with &lt;h1&gt; tags should be parsed into a (linked) subsection in your TOC.<\/li>\n<\/ol>\n<p>Please note that these second levels (with H1 headings) appear collapsed by default. This means that while they <strong>are<\/strong> in the TOC, you will have to click on the <strong>+<\/strong> button next to the chapter so that this second level shows.<\/p>\n<p>Finally, not all Themes have been tested with this feature &#8212; if things look funny, please test another theme.<\/p>\n","protected":false},"author":2,"menu_order":5,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":["pressbooks"],"pb_section_license":""},"chapter-type":[],"contributor":[61],"license":[],"part":110,"_links":{"self":[{"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/chapters\/124"}],"collection":[{"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":1,"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/chapters\/124\/revisions"}],"predecessor-version":[{"id":125,"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/chapters\/124\/revisions\/125"}],"part":[{"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/parts\/110"}],"metadata":[{"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/chapters\/124\/metadata\/"}],"wp:attachment":[{"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/pressbooks\/v2\/chapter-type?post=124"},{"taxonomy":"contributor","embeddable":true,"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/wp\/v2\/contributor?post=124"},{"taxonomy":"license","embeddable":true,"href":"http:\/\/openbooks.hdfoundation.in\/developingopentextbooks\/wp-json\/wp\/v2\/license?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}