aw schriftzug.png aw logo 60x60.png

RenderAllCategories
Renders an overview of all known categories

2019-05-02 - 10:19 | Version 3 |

Documentation

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

Parameters
  • NONE

Implementationde

%STARTINCLUDE%<!-- -->
<noautolink>
%MAKEINDEX{
  "%HIERARCHY{
     web="%BASEWEB%"
     top="TopCategory"
     exclude="TopCategory"
     depth="2"
     format="$title;$topic;$origweb$n"
  }%"
  cols="%CLASSIFICATIONPLUGIN_NRCOLS{default="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{\"Applications.ClassificationApp.CategoryRenderCategoryItem\" OBJECT=\"$2\" THEWEB=\"$3\"}$percnt"
}%

%MAKEINDEX{
  "%HIERARCHY{
     web="%BASEWEB%"
     top="TopCategory"
     exclude="TopCategory"
     mindepth="1"
    format="$title;$topic;$origweb$n$children"
  }%"
  cols="%CLASSIFICATIONPLUGIN_NRCOLS{default="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{\"Applications.ClassificationApp.CategoryRenderIndexItem\" OBJECT=\"$2\" THEWEB=\"$3\"}$percnt"
}%
</noautolink>
<!-- -->%STOPINCLUDE%

Test

Top categories

There are 6 top categories in this web.

List of all child categories

There are 82 child categories in this web.
application_cascade Contacts (1)
TestCategory6
blabla
TestCategory7
foo bar summary

Copyright

© 2006-2015 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.
Warning: Can't find topic Applications/ClassificationApp.WebLeftBarExample

Impressum © Alexander Weimer GmbH