aw schriftzug.png aw logo 60x60.png

RenderInheritanceGraph
a directed graph of TopicType inheritance

2019-05-02 - 09:27 | Version 4 |

Documentation

This function requires GraphvizPlugin

Implementation

%STARTINCLUDE%<!-- -->
<noautolink>
<div class="overflow">
<literal>
%GRAPHVIZ{
   topic="%BASEWEB%.%BASETOPIC%" 
   format="png" 
   section="dot" 
   expand="on"
}%
</literal>
</div>
</noautolink>
<!-- -->%STOPINCLUDE%

%STARTSECTION{"dot"}%
digraph G {
   tooltip=" "
   graph [fontname = helvetica]; 
   node [tooltip=" "]
   node[shape="box", fontsize="10", fontname = helvetica];
   edge[arrowsize="0.5", fontsize="10", fontname = helvetica];
   ratio="auto";
   %DBQUERY{
      "(TopicType=~'\bTopicType\b' OR @Target.TopicType=~'\bTopicType\b') %IF{"'%BASEWEB%'!='Applications'" then="AND WikiApplication!='WikiWorkbench'"}%"
      web="%BASEWEB%"
      format="$topic[URL=\"%SCRIPTURL{"view"}%/$web/$topic\" label=\"$expand(topictitle)\"]; $percntFORMATLIST{\"$expand(@Target.Inheritance or Inheritance)\"
            format=\"$1 -> $topic;\"
            separator=\"$n\"
            exclude=\"$percntFORMATLIST{
                        \"$percntDBQUERY{topics=\"$expand(@Target.Inheritance or Inheritance), none\"
                              format=\"$dollarexpand(@Target.Inheritance or Inheritance)\"
                              separator=\", \"
                          }$percnt\"
                        separator=\"|\"
                        unique=\"on\"
                        header=\"\b(\"
                        footer=\")\b\"
                      }$percnt\"
         }$percnt"
      separator="$n"
   }%
}
%ENDSECTION{"dot"}%

Test

G ApplicationLicense ApplicationLicense ApplicationTopic ApplicationTopic ApplicationTopic->ApplicationLicense DataForm DataForm ApplicationTopic->DataForm DataFormAttribute DataFormAttribute ApplicationTopic->DataFormAttribute DocuTopic DocuTopic ApplicationTopic->DocuTopic TopicStub TopicStub ApplicationTopic->TopicStub TopicTemplate TopicTemplate ApplicationTopic->TopicTemplate TopicView TopicView ApplicationTopic->TopicView WebTool WebTool ApplicationTopic->WebTool WikiApplication WikiApplication ApplicationTopic->WikiApplication WikiTopic WikiTopic WikiTopic->ApplicationTopic TopicType TopicType DataForm->TopicType TopicFunction TopicFunction DocuTopic->TopicFunction DocuTopic->TopicType

Calls to 'RenderInheritanceGraph'

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.
Impressum © Alexander Weimer GmbH