Add the ability to mark documentation as private, so users don't get confused
as to which template variables to use. Tested this with the Article, now all the others just have to be marked as well.
This commit is contained in:
parent
ff30abdd13
commit
f7b01f5aeb
2 changed files with 3 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ our $HELP = {
|
|||
},
|
||||
|
||||
'article asset template variables' => {
|
||||
private => 1,
|
||||
title => 'article asset template variables title',
|
||||
body => 'article asset template variables body',
|
||||
isa => [
|
||||
|
|
|
|||
|
|
@ -387,6 +387,7 @@ sub www_viewHelpIndex {
|
|||
my $namespace = $fileSet->[1];
|
||||
my $help = _load($session,$namespace);
|
||||
foreach my $key (keys %{$help}) {
|
||||
next if $help->{$key}{private};
|
||||
push @helpIndex, [$namespace, $key,
|
||||
$i18n->get($help->{$key}{title},$namespace)];
|
||||
$i++;
|
||||
|
|
@ -505,6 +506,7 @@ sub www_viewHelpChapter {
|
|||
my $output = '';
|
||||
my $i18n = WebGUI::International->new($session);
|
||||
foreach my $id (@entries) {
|
||||
next if $help->{$id}{private};
|
||||
$output .= '<p><a href="'._link($session,$id,$namespace).'">'.$i18n->get($help->{$id}{title},$namespace).'</a></p>';
|
||||
}
|
||||
my $ac = WebGUI::AdminConsole->new($session,"help");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue