Begin the Help purge.
First batch. Autogenerated lists of Assets, Workflow Activities and Template Parsers. Enabled Macros stay, but no linking to Macro pages.
This commit is contained in:
parent
02abc68aa8
commit
14180620ca
5 changed files with 10 additions and 180 deletions
|
|
@ -3,20 +3,20 @@ package WebGUI::Help::Macros;
|
|||
|
||||
our $HELP = {
|
||||
|
||||
'macros using' => {
|
||||
'macros using' => {
|
||||
title => 'macros using title',
|
||||
body => 'macros using body',
|
||||
fields => [
|
||||
],
|
||||
related => [
|
||||
{
|
||||
tag => "macros list",
|
||||
namespace => "Macros",
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
tag => "macros list",
|
||||
namespace => "Macros",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
'macros list' => {
|
||||
'macros list' => {
|
||||
title => 'macros list title',
|
||||
body => sub {
|
||||
my $session = shift;
|
||||
|
|
@ -55,23 +55,8 @@ our $HELP = {
|
|||
'</th></tr>',$macro_table,'</table>');
|
||||
},
|
||||
fields => [],
|
||||
related => sub { ##Hey, you gotta pass in the session var, right?
|
||||
my $session = shift;
|
||||
sort { $a->{tag} cmp $b->{tag} }
|
||||
map {
|
||||
$tag = $_;
|
||||
$tag =~ s/^[a-zA-Z]+_//; #Remove initial shortcuts
|
||||
$tag =~ s/([A-Z]+(?![a-z]))/$1 /g; #Separate acronyms
|
||||
$tag =~ s/([a-z])([A-Z])/$1 $2/g; #Separate studly caps
|
||||
$tag =~ s/\s+$//;
|
||||
$tag = lc $tag;
|
||||
$namespace = join '', 'Macro_', $_;
|
||||
{ tag => $tag,
|
||||
namespace => $namespace }
|
||||
}
|
||||
values %{ $session->config->get("macros") }
|
||||
},
|
||||
},
|
||||
related => [],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue