Fix missing overrides in the Navigation when shortcutted.
Also, documented the getOverridesList method inside Shortcut.
This commit is contained in:
parent
e76ff7cf28
commit
1e6d9b7d18
3 changed files with 45 additions and 29 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
- fixed #10409: Problem using hash in metadata possible values
|
- fixed #10409: Problem using hash in metadata possible values
|
||||||
- fixed a similar problem with metadata in the Shortcut Asset.
|
- fixed a similar problem with metadata in the Shortcut Asset.
|
||||||
- fixed #10396: Syndicated Content wobject not displaying edit controls
|
- fixed #10396: Syndicated Content wobject not displaying edit controls
|
||||||
|
- fixed #10386: Template override missing in nav shortcut
|
||||||
|
|
||||||
7.7.7
|
7.7.7
|
||||||
- Added EMS Schedule table
|
- Added EMS Schedule table
|
||||||
|
|
|
||||||
|
|
@ -368,6 +368,15 @@ sub getFieldsList {
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
||||||
|
=head2 getOverridesList
|
||||||
|
|
||||||
|
Generates a table of overrides, based on the shortcutted Asset's definition sub.
|
||||||
|
If the field type is hidden, or the field label is empty, then an override is not
|
||||||
|
generated for that field
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
sub getOverridesList {
|
sub getOverridesList {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $output = '';
|
my $output = '';
|
||||||
|
|
|
||||||
|
|
@ -34,19 +34,21 @@ sub definition {
|
||||||
tableName=>'Navigation',
|
tableName=>'Navigation',
|
||||||
className=>'WebGUI::Asset::Wobject::Navigation',
|
className=>'WebGUI::Asset::Wobject::Navigation',
|
||||||
properties=>{
|
properties=>{
|
||||||
templateId =>{
|
templateId => {
|
||||||
fieldType=>"template",
|
label => $i18n->get(1096),
|
||||||
defaultValue=>'PBtmpl0000000000000048'
|
fieldType => "template",
|
||||||
},
|
defaultValue => 'PBtmpl0000000000000048'
|
||||||
mimeType =>{
|
},
|
||||||
fieldType=>"mimeType",
|
mimeType => {
|
||||||
defaultValue=>'text/html'
|
label => $i18n->get('mimeType'),
|
||||||
},
|
fieldType => "mimeType",
|
||||||
assetsToInclude=>{
|
defaultValue => 'text/html'
|
||||||
fieldType=>'checkList',
|
},
|
||||||
defaultValue=>"descendants"
|
assetsToInclude => {
|
||||||
},
|
fieldType =>'checkList',
|
||||||
startType=>{
|
defaultValue =>"descendants"
|
||||||
|
},
|
||||||
|
startType => {
|
||||||
fieldType=>'selectBox',
|
fieldType=>'selectBox',
|
||||||
defaultValue=>"relativeToCurrentUrl"
|
defaultValue=>"relativeToCurrentUrl"
|
||||||
},
|
},
|
||||||
|
|
@ -62,22 +64,26 @@ sub definition {
|
||||||
fieldType=>'selectBox',
|
fieldType=>'selectBox',
|
||||||
defaultValue=>55
|
defaultValue=>55
|
||||||
},
|
},
|
||||||
showSystemPages=>{
|
showSystemPages => {
|
||||||
fieldType=>'yesNo',
|
label => $i18n->get(30),
|
||||||
defaultValue=>0
|
fieldType => 'yesNo',
|
||||||
},
|
defaultValue => 0,
|
||||||
showHiddenPages=>{
|
},
|
||||||
fieldType=>'yesNo',
|
showHiddenPages => {
|
||||||
defaultValue=>0
|
label => $i18n->get(31),
|
||||||
},
|
fieldType => 'yesNo',
|
||||||
showUnprivilegedPages=>{
|
defaultValue => 0,
|
||||||
fieldType=>'yesNo',
|
},
|
||||||
defaultValue=>0
|
showUnprivilegedPages => {
|
||||||
},
|
label => $i18n->get(32),
|
||||||
reversePageLoop=>{
|
fieldType => 'yesNo',
|
||||||
fieldType=>'yesNo',
|
defaultValue => 0,
|
||||||
defaultValue=>0
|
},
|
||||||
},
|
reversePageLoop => {
|
||||||
|
label => $i18n->get('reverse page loop'),
|
||||||
|
fieldType => 'yesNo',
|
||||||
|
defaultValue => 0,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return $class->SUPER::definition($session, $definition);
|
return $class->SUPER::definition($session, $definition);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue