Added #10145: Global Head Tags in Settings

This commit is contained in:
Doug Bell 2009-04-29 21:51:22 +00:00
parent 003f54fd40
commit 026f7ff47e
5 changed files with 29 additions and 1 deletions

View file

@ -13,6 +13,7 @@
- fixed #10184: Matrix 2.0 - Version Tag Duplicate Type
- fixed #10182: Matrix 2.0 - Comparison view broken in IE 6 & 7
- Added individual shipping requirements to the Sku.
- added #10145: Global Head Tags in Settings
7.7.4
- rfe: Extend DateTime for Week-Nrs (#9151)

View file

@ -40,7 +40,7 @@ sm_updateDailyWorkflow($session);
turnOffAdmin($session);
correctEventTemplateVariables($session);
addGlobalHeadTags( $session );
addShipsSeparateToSku($session);
finish($session); # this line required
@ -59,6 +59,13 @@ sub turnOffAdmin {
print "OK\n" unless $quiet;
}
sub addGlobalHeadTags {
my ( $session ) = @_;
print "\tAdding Global HEAD tags setting... " unless $quiet;
$session->setting->add('globalHeadTags','');
print "OK\n" unless $quiet;
}
sub installStoryManagerTables {
my ($session) = @_;
print "\tAdding Story Manager tables... " unless $quiet;

View file

@ -262,6 +262,14 @@ sub definition {
label => $i18n->get('recaptcha private key'),
defaultValue => $setting->get('recaptchaPrivateKey'),
});
push @fields, {
tab => "ui",
fieldType => "codearea",
name => "globalHeadTags",
label => $i18n->get('global head tags label'),
hoverHelp => $i18n->get('global head tags description'),
defaultValue => $setting->get('globalHeadTags'),
};
# messaging settings
push(@fields, {
tab=>"messaging",

View file

@ -181,6 +181,7 @@ props["pageURL"] = "'.$self->session->url->page(undef, undef, 1).'";
return props[propName];
}
</script>
' . $self->session->setting->get('globalHeadTags') . '
<!--morehead-->
';

View file

@ -4349,6 +4349,17 @@ Users may override this setting in their profile.
lastUpdated => 0,
context => q|name for the Ad Space control|
},
'global head tags label' => {
message => 'Global Head Tags',
lastUpdated => 0,
context => "Label for setting",
},
'global head tags description' => {
message => '<head> tags for every page on the site (including admin pages)',
lastUpdated => 0,
context => 'Description of setting',
},
};