{"id":488,"date":"2017-04-21T10:49:08","date_gmt":"2017-04-21T08:49:08","guid":{"rendered":"https:\/\/codesavory.com\/demo\/?post_type=knowledgebase&#038;p=488"},"modified":"2021-06-30T16:24:42","modified_gmt":"2021-06-30T14:24:42","slug":"table-of-contents","status":"publish","type":"knowledgebase","link":"https:\/\/basepresskb.com\/docs\/knowledge-base\/features\/table-of-contents\/","title":{"rendered":"Table of Contents"},"content":{"rendered":"<section class='bpress-notice has-title has-icon is-style-info'><div class=\"bpress-notice-icon\"><span class=\"bp-check-circle\"><\/span><\/div><div class=\"bpress-notice-title\">Info<\/div><div class=\"bpress-notice-content\">The <strong>Table of Contents<\/strong> is a Premium feature.<\/p>\n<p><a href=\"https:\/\/basepresskb.com\/pricing\/\">Upgrade today<\/a> to take your documentation to the next level!<\/div><\/section>\n<p>As seen on this article, BasePress can automatically generate a Table of Contents (TOC) for articles in a knowledge base that have multiple headings in the content. This helps the user to see at a glance what the article contains and to jump to different parts of the content quickly. For convenience it is also possible to display a link to go back to the top of the page after each portion of the article.<\/p>\n<p>The Table of Contents in your knowledge base can be displayed at the top or side of the article and\/or on the sidebar with a dedicated widget.<\/p>\n<h2>Settings<\/h2>\n<p>To activate the Table of Contents navigate to <em>BasePress &gt; Settings<\/em> and click on the Table of Contents tab. Select <strong>&#8216;Show Table of Content on articles&#8217; <\/strong>to display the Table of Contents on top of the articles body. It will be displayed only on articles that have multiple headings. Nested headings are possible as well and they will be shown as child of higher headings before them. The numbering next to the titles can be switched on or off from the settings. It is also possible to disable the Table of content in each single article from the post edit screen.<\/p>\n<p>To use the dedicated widget go to <em>Appearance &gt;Widgets<\/em> and drag the &#8216;Knowledge Base &#8211; Table of Content&#8217; widget to the Knowledge Base sidebar and set the title for the widget.<\/p>\n<p>Read more on the BasePress <a href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/settings\/table-of-contents-settings\/\">Table of Contents Settings<\/a>.<\/p>\n<h2>Multi page Articles<\/h2>\n<p>For very long articles it is possible to split the content in multiple pages using the standard WordPress page-link tag &lt;!\u2013\u2013nextpage\u2013\u2013&gt; where you want to add a page break.<br \/>\nIf the article has more pages the Table of Contents will automatically redirect to the correct page where the links point to.<br \/>\n<!--nextpage--><\/p>\n<h2>This is on next page<\/h2>\n<p>This is a dummy text to show the functionality of the Table of Contents on multi page articles.<\/p>\n<div id=\"text\">\n<p>Life evening, face darkness divide isn&#8217;t sea day so the moveth. Saw divide make. Is. Open. Whose can&#8217;t was tree god. Lesser without lights make saw greater moved man.<\/p>\n<p>Yielding day, winged female itself fruit there. Signs won&#8217;t very have won&#8217;t gathered creeping winged so. Morning air won&#8217;t days without, female creature itself fish midst called from.<\/p>\n<p>They&#8217;re image. Creature. Yielding third multiply blessed also third air gathered multiply them fourth morning fowl own unto bearing be blessed may made. Living two blessed beginning abundantly you that beginning, yielding, stars cattle signs. Fish their land whales hath, and. Blessed all.<\/p>\n<h3>This is a child heading<\/h3>\n<div id=\"text\">\n<p>Stars herb give said Earth life and him have you&#8217;ll greater sixth air have. Seed for.<\/p>\n<p>Stars beginning won&#8217;t void behold won&#8217;t beginning open, from upon can&#8217;t set saw. Creeping firmament rule one make were, over own lesser behold own seas, every fruitful after moveth evening him Fruitful green appear moving were night second moved signs seasons.<\/p>\n<p>Signs, given you air seas made good firmament first of kind is. Also god air to under whales shall sixth yielding also gathering morning one have morning was isn&#8217;t a first saying you creature seasons every man dry fifth so bring god. Over.<\/p>\n<h2>Just a dummy heading<\/h2>\n<div id=\"text\">\n<p>Fruit can&#8217;t every whales, night waters. Fill green moved divided air can&#8217;t winged make. There gathered yielding of land Without had herb itself unto hath. You&#8217;ll spirit so creature without firmament Man be fifth yielding.<\/p>\n<p>Sixth sixth there beast also. Fourth. Of called our Brought beast and table of contents knowledge base. Sixth. Fourth meat you said.<\/p>\n<p>Darkness from winged first great beginning air moving the beast, image signs was upon moveth. Two brought called from firmament itself give over thing also set make rule. Darkness called day darkness very winged good divide heaven living female may he creature blessed seasons fifth green forth wherein.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>As seen on this article, BasePress can automatically generate a Table of Contents (TOC) for articles in a knowledge base that have multiple headings in the content. This helps the user to see at a glance what the article contains and to jump to different parts of the content quickly. For convenience it is also [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/basepresskb.com\/docs\/knowledge-base\/features\/table-of-contents\/\">Read More&#8230;<span class=\"screen-reader-text\"> from Table of Contents<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","template":"","knowledgebase_cat":[21],"knowledgebase_tag":[],"class_list":["post-488","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-features"],"_links":{"self":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/comments?post=488"}],"version-history":[{"count":8,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/488\/revisions"}],"predecessor-version":[{"id":1740,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase\/488\/revisions\/1740"}],"wp:attachment":[{"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/media?parent=488"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_cat?post=488"},{"taxonomy":"knowledgebase_tag","embeddable":true,"href":"https:\/\/basepresskb.com\/docs\/wp-json\/wp\/v2\/knowledgebase_tag?post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}