UnnumberedHeadings
This page has the top-level headings in the page NOT numbered.
This is in config.php or Group.php or Group.Page.php:
$PmTOC['NumberedHeadings'] = 1;
This requires version 2.5.5 or more recent. This version adds class names to the numbers and allows flexible hiding.
There are classes for the full prefix per level, e.g. "2.3.1" and individual numbers per level, here "2.", "3.", and "1." Here is an example of the HTML of the number prefix elements for heading "2.3.1":
<span class="pmnumwrap pmnumwrap3"> <span class="pmnum1">2.</span> <span class="pmnum2">3.</span> <span class="pmnum3">1.</span> </span>
The same classes are used in the headings and in the table of contents.
You can define styles for these classes in pub/css/local.css, and for example hide some numbers.
The full prefix per level has a class name "pmnumwrap1" to "pmnumwrap6". Each digit-dot inside the prefix has a class name "pmnum1" to "pmnum6".
For example, to hide the numbers before headings level 3-6, and only show numbers for headings level 1 and 2, you could do:
.pmnumwrap3, .pmnumwrap4, .pmnumwrap5, .pmnumwrap6 {
display: none;
}
Inversely, to hide numbers for headings levels 1 and 2, but show the numbers before the smaller internal headings, you could do:
.pmnum1, .pmnum2 {
display: none;
}
On this page below, only .pmnum1 is hidden.
Notes:
- The level 1 in
.pmnum1refers to the biggest heading in your page text, that could be typically<h2>, but also<h1>or<h3>. - The classname levels are numeric 1-6, even if you configure the numbering to show letters or Roman numerals.
Top level heading
Text.
Another top level heading
Text.
Numbered heading
Text.
Numbered heading
Text.
Numbered heading
Text.
Numbered subheading
Text.
Another top level heading
Text.
Numbered heading
Text. Text.