{"id":124,"date":"2014-06-26T18:45:51","date_gmt":"2014-06-26T18:45:51","guid":{"rendered":"https:\/\/openbook.ums.edu.my\/iotb\/chapter\/table-of-contents-adding-a-second-level\/"},"modified":"2024-09-19T04:11:23","modified_gmt":"2024-09-19T04:11:23","slug":"table-of-contents-adding-a-second-level","status":"publish","type":"chapter","link":"https:\/\/openbook.ums.edu.my\/iotb\/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":1,"menu_order":5,"template":"","meta":{"pb_show_title":"","pb_short_title":"","pb_subtitle":"","pb_authors":["pressbooks"],"pb_section_license":""},"chapter-type":[],"contributor":[62],"license":[],"class_list":["post-124","chapter","type-chapter","status-publish","hentry","contributor-pressbooks"],"part":110,"_links":{"self":[{"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/chapters\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/chapters\/124\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/chapters\/124\/revisions\/125"}],"part":[{"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/parts\/110"}],"metadata":[{"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/chapters\/124\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/wp\/v2\/media?parent=124"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/pressbooks\/v2\/chapter-type?post=124"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/wp\/v2\/contributor?post=124"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/openbook.ums.edu.my\/iotb\/wp-json\/wp\/v2\/license?post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}