SearchWiki:
Add Page:

PmWikiRu

pmwiki.org

Page History Edit Page Links to This Page

, !

          PmWiki 2.2.119,     config.php:

  $PmTOC['Enable'] = 1;

  Cookbook:AutoTOC   : 
  • , - ;
  • (h1,h2,...);
  • -, , 3 ;
  • , "localStorage", .. ;
  • ;
  • ;
  • %block notoc% ;
  • (:markup:) .
    :
  • (:toc:) ( " "), , ;
  • (:notoc:) , , (:toc:). , - , .
    ,     .      .  PageUrl#here     :
  • !! id %block id=here%
  • !! [[#here]],
  • !! [[#here]]
  • [[#here]]
    !! ,
        ,         , : #toc-1.2.1,  1.2.1 -  " "   .

PHP

   (local/config.php)   :
  • $PmTOC['Enable'] = 1; # / , - 0.
  • $PmTOC['MaxLevel'] = 6; # , . -, 6, <h1> <h6>.
  • $PmTOC['MinNumber'] = 3; # . :
    • $PmTOC['MinNumber'] = 2; # ;
    • $PmTOC['MinNumber'] = 9999999; # , (:toc:). , !
  • $PmTOC['NumberedHeadings'] = '1.1.1.1.1.1'; # :
    • . , :
      $PmTOC['NumberedHeadings'] = 'I.1.a';
      (I, II, ...), , - (a, b, ...), .
  • $PmTOC['EnableBacklinks'] = 1; # "↑", (-, ).
  • $PmTOC['ParentElement'] = "#wikitext"; # CSS- , . -, , . , (:toc:) (. ).

   XLPage,     :
"Contents" => "",
  "show"     => "",
  "hide"     => "",

: . , , CSS- :

  .PmTOCdiv {
    float: right;
    margin-left: 5px;
  }

. : Cookbook:AutoTOC. AutoTOC, $PmTOC.

PmWiki.TableOfContents -

  PmWikiRu.TableOfContents -

Backlinks
PmWikiRu.TableOfContents: February 23, 2020, at 07:43 PM
PmWiki.TableOfContents: December 17, 2022, at 05:18 PM

Edit Page - Page History - Printable View - Recent Changes - SearchWiki
Page last modified on February 23, 2020, at 07:43 PM