Documentation

Renders an index of all known categories, top categories first.

Parameters
  • NONE

Implementation

%STARTINCLUDE%<!-- render all categories -->
<noautolink>
%MAKEINDEX{
  "%HIERARCHY{
     web="%BASEWEB%"
     top="TopCategory"
     exclude="TopCategory"
     depth="2"
     format="$title;$topic;$origweb$n"
  }%"
  cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%"
  header="<h2>Top categories</h2>
    There 
    $percntIF{\"'$count'='1'\"
      then=\" is one top category \"
      else=\" are $count  top categories \"
    }$percnt in this web."
  split="\n"
  pattern="(.*);(.*);(.*)"
  unique="on"
  format="$percntDBCALL{\"$3.$2->RenderIndexItem\"}$percnt"
}%

%MAKEINDEX{"
  "%HIERARCHY{
     web="%BASEWEB%"
     top="TopCategory"
     exclude="TopCategory"
     mindepth="1"
    format="$title;$topic;$origweb$n$children"
  }%"
  cols="%IF{"defined CLASSIFICATIONPLUGIN_NRCOLS" then="%CLASSIFICATIONPLUGIN_NRCOLS%" else="3"}%"
  header="<h2>List of all child categories</h2>
    There 
    $percntIF{\"'$count'='1'\"
      then=\" is one child category \"
      else=\" are $count child categories \"
    }$percnt in this web."
  split="\n"
  unique="on"
  pattern="(.*);(.*);(.*)"
  format="$percntDBCALL{\"$3.$2->RenderIndexItem\"}$percnt"
}%
</noautolink>
<!-- //render all categories -->%STOPINCLUDE%

Test

List of all child categories

There are 85 child categories in this web.

A

B

C

D

E

F

G

G

H

I

K

L

M

N

O

P

Q

R

S

S

T

U

W

Copyright

© 2008-2013 Michael Daum http://michaeldaumconsulting.com

This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Topic revision: r1 - 07 Jan 2013, ProjectContributor
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample

 

Das Urheberrecht © liegt bei den mitwirkenden Autoren. Alle Inhalte dieser Kollaborations-Plattform sind Eigentum der Autoren.