]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/listdirectives.pm
add getsetup hook
[git.ikiwiki.info.git] / IkiWiki / Plugin / listdirectives.pm
index 96150f986dabd8c1e25b0fd708b18a9d44e5e6fd..8a67f716026003e8b00135f4de5f1f7da60794a2 100644 (file)
@@ -19,6 +19,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => undef,
                plugin => {
                        safe => 1,
                        rebuild => undef,
+                       section => "widget",
                },
                directive_description_dir => {
                        type => "string",
                },
                directive_description_dir => {
                        type => "string",
@@ -84,7 +85,7 @@ sub preprocess (@) {
        foreach my $plugin (@pluginlist) {
                $result .= '<li class="listdirectives">';
                my $link=linkpage($config{directive_description_dir}."/".$plugin);
        foreach my $plugin (@pluginlist) {
                $result .= '<li class="listdirectives">';
                my $link=linkpage($config{directive_description_dir}."/".$plugin);
-               add_depends($params{page}, $link, content => 0);
+               add_depends($params{page}, $link, deptype("presence"));
                $result .= htmllink($params{page}, $params{destpage}, $link);
                $result .= '</li>';
        }
                $result .= htmllink($params{page}, $params{destpage}, $link);
                $result .= '</li>';
        }