Google sitemaps index added to WebGUI
This commit is contained in:
parent
83bb3c1904
commit
293e1c0e47
2 changed files with 126 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ addProfileExtrasField($session);
|
|||
addWorkflowToDataform( $session );
|
||||
installDataTableAsset( $session );
|
||||
installAjaxI18N( $session );
|
||||
installSiteIndex( $session );
|
||||
finish($session); # this line required
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
@ -85,6 +86,27 @@ sub installAjaxI18N {
|
|||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# installSiteIndex
|
||||
# Install the content handler by adding it to the config file
|
||||
sub installSiteIndex {
|
||||
my $session = shift;
|
||||
print "\tInstalling the SiteIndex content handler... " unless $quiet;
|
||||
|
||||
my $oldHandlers = $session->config->get( "contentHandlers" );
|
||||
my @newHandlers;
|
||||
for my $handler ( @{ $oldHandlers } ) {
|
||||
if ( $handler eq "WebGUI::Content::Asset" ) {
|
||||
push @newHandlers, "WebGUI::Content::SiteIndex";
|
||||
}
|
||||
push @newHandlers, $handler;
|
||||
}
|
||||
$session->config->set( "contentHandlers", \@newHandlers );
|
||||
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
sub upgradeToYui26 {
|
||||
my $session = shift;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue