diff --git a/docs/upgrades/7fixup.pl b/docs/upgrades/7fixup.pl
index 22828bb1a..3898f4a32 100644
--- a/docs/upgrades/7fixup.pl
+++ b/docs/upgrades/7fixup.pl
@@ -14,6 +14,7 @@ my $session = start(); # this line required
my $versionTag = WebGUI::VersionTag->getWorking($session);
$versionTag->set({name=>"Stuff just for 7.0 installs"});
addPrototypes();
+addTemplates();
rearrangeImportNode();
addNewStyles();
addRobots();
@@ -24,6 +25,29 @@ purgeOldRevisions();
finish($session); # this line required
+#-------------------------------------------------
+sub addTemplates {
+ print "\tAdding new templates specific to WebGUI 7.\n";
+ my $import = WebGUI::Asset->getImportNode($session);
+ $import->addChild({
+ className=>"WebGUI::Asset::Template",
+ template=>q|
+
If you're new to WebGUI, click here to learn how to get started. If you're getting up to speed, check out some ways you can do more faster. If this is all old hat to you, then check out the latest news. No matter what level you're at tell your friends about WebGUI.
|, templateId=>'PBtmpl0000000000000002' }); + my $storage = WebGUI::Storage->create($session); + $storage->addFileFromFilesystem("7fixup/advert01.swf"); + $home->addChild({ + className=>"WebGUI::Asset::File", + templateId=>"pbtmpl0000000000000220", + title=>"Ad", + menuTitle=>"Ad", + storageId=>$storage->getId, + filename=>"advert01.swf", + isHidden=>1, + url=>"home/ad", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4' + }); $home->addChild({ className=>"WebGUI::Asset::Wobject::Article", styleTemplateId=>"stevestyle000000000003", @@ -140,6 +179,7 @@ Enjoy your new WebGUI site! menuTitle=>"Get Documentation", isHidden=>1, storageId=>$storage->getId, + filename=>"book02.jpg", url=>"yns/docs", ownerUserId=>'3', groupIdView=>'7', @@ -165,7 +205,7 @@ Enjoy your new WebGUI site! $contentPositions .= $asset->getId.","; my $storage = WebGUI::Storage::Image->create($session); $storage->addFileFromFilesystem("7fixup/server01.jpg"); - $storage->generateThumbnail("book01.jpg"); + $storage->generateThumbnail("server01.jpg"); $asset = $yns->addChild({ className=>"WebGUI::Asset::Wobject::Article", styleTemplateId=>"stevestyle000000000003", @@ -173,6 +213,7 @@ Enjoy your new WebGUI site! title=>"Get Hosting", isHidden=>1, storageId=>$storage->getId, + filename=>"server01.jpg", menuTitle=>"Get Hosting", url=>"yns/hosting", ownerUserId=>'3', @@ -207,6 +248,7 @@ Enjoy your new WebGUI site! title=>"Get Style", isHidden=>1, storageId=>$storage->getId, + filename=>"profile01.jpg", menuTitle=>"Get Style", url=>"yns/style", ownerUserId=>'3', diff --git a/docs/upgrades/7fixup/advert01.swf b/docs/upgrades/7fixup/advert01.swf new file mode 100755 index 000000000..6564286f9 Binary files /dev/null and b/docs/upgrades/7fixup/advert01.swf differ