dynamically generate a list of available wobjects. Note that nothing shows up for collaboration since there is not help yet.
This commit is contained in:
parent
756840c292
commit
d26ae790c9
5 changed files with 33 additions and 50 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package WebGUI::Help::Asset;
|
||||
|
||||
use WebGUI::Session;
|
||||
|
||||
our $HELP = {
|
||||
|
||||
'asset macros' => {
|
||||
|
|
@ -57,6 +59,22 @@ our $HELP = {
|
|||
],
|
||||
},
|
||||
|
||||
'asset list' => {
|
||||
title => 'asset list title',
|
||||
body => 'asset list body',
|
||||
related => [ map {
|
||||
my ($namespace) = /::(\w+)$/;
|
||||
my $tag = $namespace;
|
||||
$tag =~ s/([a-z])([A-Z])/$1 $2/g; #Separate studly caps
|
||||
$tag =~ s/([A-Z]+(?![a-z]))/$1 /g; #Separate acronyms
|
||||
$tag = lc $tag;
|
||||
{ tag => "$tag add/edit",
|
||||
namespace => $namespace }
|
||||
}
|
||||
@{ $session{config}{assets} }, @{ $session{config}{assetContainers} }
|
||||
],
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue