PmWikiRu

, !

          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.GroupFooter -

  PmWikiRu.GroupFooter -

Backlinks
PmWikiRu.GroupFooter: September 10, 2011, at 06:48 PM
PmWiki.GroupFooter: December 16, 2022, at 12:08 PM