Loading...
 
Features / Usability

Features / Usability


How to exclude Header from TOC

posts: 14 USA

On a Wiki page I use the "Header 1, 2, etc" sometimes to create a nice section title because I cannot figure out how to just increase the font size (if you can please let me know), but I don't always want that to be included in the auto TOC because it isn't really a section. Is there a tag or special character that is added to the !!! type of markup that can exclude it from the TOC?

- James

posts: 3665 United States

You can use the levels and maxdepth parameters of the maketoc element to control which headings are shown in the table of contents. Please see the docs for details: https://doc.tiki.org/pluginmaketoc

However, if you're using headings to simply change the look/style of the text, you're destroying the semanteics of the page — it is never a good idea. You should really create a custom style that has the size/font/color/etc that you want, and then apply it to the text with the div plugin. Please see the docs for details: https://doc.tiki.org/plugindiv

HTH,

- Rick  |  My Tiki Blog |  My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.

 

posts: 14 USA
Thanks. That is what I was looking for. I knew I was using then wrong but needed a larger font. I figured out the  font tag plugin but I think it is experimental. I'll check out the div tag. Is there a way to add my own styles to the drop down where the heading 1, heading 2, normal shows?

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting