[pmwiki-users] TOC no scrolling please

Petko Yotov 5ko at 5ko.fr
Mon Jan 19 03:21:56 PST 2026


I have updated the core styles for the next PmWiki version.

If the table of contents is closed, the [Contents] frame will not be 
printed. If it is open, the full table of contents will be printed 
without scrolling or hidden lines.

Try it on a page on pmwiki.org with many headings, for example here:

   https://www.pmwiki.org/wiki/PmWiki/ChangeLog

You can add this to pub/css/local.css to enable the same before 
upgrading to 2.5.6:

   @media print {
     .PmTOCtable {
       max-height: none;
       overflow: visible;
       line-height: var(--pm-lineheight);
     }
     .PmTOCdiv:not([open]) {
       display:none;
     }
   }



Petko

-- 
If you upgrade :  https://www.pmwiki.org/Upgrades

On 19/01/2026 11:55, Martin Cuno wrote:
> I want to print the complete table of contents (with working links,
> forward and backward; this works well in Firefox). These are primarily
> documents that I want to provide to users as PDFs. How users print the
> pages isn't important at the moment.
> 
> I'm not using `action=print`, or rather, I've defined
> `$ActionSkin['print'] = (the default skin)'.
> 
> Martin
> 
> ===== Ursprüngliche Nachricht =====
> Von: Petko Yotov <5ko at 5ko.fr>
> Am: 19.01.2026, 11:30:02 Uhr
> Betreff: Re: [pmwiki-users] TOC no scrolling please
> 
> The solution will depend on this information:
> 
> Do you print the page directly, by pressing File-Print or Ctrl+P in 
> your
> browser, or do you first go to Page?action=print?
> 
> Do you want to print the full table of contents, or to hide it?
> 
> If the user has closed the table of contents, what should be printed,
> nothing, or the closed box, or the box should open and expand?
> 
> Petko
> 
> 
> 
> --
> Diese E-Mail wurde von Avast-Antivirussoftware auf Viren geprüft.
> www.avast.com



More information about the pmwiki-users mailing list