diff --git a/docs/upgrades/7fixup.pl b/docs/upgrades/7fixup.pl index e85805571..ce3d520e3 100644 --- a/docs/upgrades/7fixup.pl +++ b/docs/upgrades/7fixup.pl @@ -17,16 +17,66 @@ addPrototypes(); rearrangeImportNode(); addNewStyles(); addRobots(); -#deleteOldContent(); -#addNewContent(); +deleteOldContent(); +addNewContent(); $versionTag->commit; purgeOldRevisions(); finish($session); # this line required +#------------------------------------------------- +sub addNewContent { + print "\tAdding new content.\n"; + my $home = WebGUI::Asset->getDefault($session); + $home->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Welcome", + menuTitle=>"Welcome", + url=>"home/welcome", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|
The WebGUI Content Engine is a powerful and easy to use system for managing web sites, and building web applications. It provides thousands of features out of the box, and lots of plug-in points so you can extend it to match your needs. It's easy enough for the average business user, but powerful enough for any large enterprise.
+ +There are thousands of small and large businesses, schools, universities, governments, associations, clubs, churches, projects, and communities using WebGUI all over the world today. A brief list of some of them can be found here. Your site should be on that list.
|, + templateId=>'PBtmpl0000000000000002' + }); + $home->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Key Benefits", + menuTitle=>"Key Benefits", + url=>"home/key-benefits", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q| ++Easy To Use - WebGUI is absolutely easy to use. WebGUI 7 has a completely revamped user interface to make it even easier to use. There are lots of visual cues, consistent icons, helper apps, and a huge repository of built-in help files. +
++Workflow & Versioning - Never again worry about content getting put on your site that you don't want there. Never again lose your old content after making an edit. And never again push out new changes until you're absolutely ready to release them. WebGUI's workflow and versioning system if fast, flexible, powerful, and easy to use. +
++Everything's a Template - Worry nevermore about your CMS forcing you into a mould that doesn't suit you. With WebGUI everything a site visitor can see is a customizable template, so you can make it look exactly how you want. Moreover if you're the type that strives for excellence rest in the knowledge that all the templates that come with WebGUI are XHTML 1.0 strict compliant. +
++Localization - WebGUI's entire user interface is set up to be internationalized. Visit one of the WebGUI Worldwide member sites to get translations for your language. Stay there to get support and services in your native language. Feel confident in the knowledge that WebGUI will work with your native characters because it's UTF-8 compliant. On top of that WebGUI allows you to customize dates, currency, and weights to match your locale. +
++Pluggable By Design - With WebGUI 7 you have many plug-in points to add your own functionality. And best of all, the API is stable and standardized. Write it today and it will still work years from now and survive all upgrades. +
+|, + templateId=>'PBtmpl0000000000000002' + }); +} + #------------------------------------------------- sub deleteOldContent { print "\tDeleting old content\n"; + foreach my $id (qw(TKzUMeIxRLrZ3NAEez6CXQ sWVXMZGibxHe2Ekj1DCldA x_WjMvFmilhX-jvZuIpinw DC1etlIaBRQitXnchZKvUw wCIc38CvNHUK7aY92Ww4SQ)) { + my $asset = WebGUI::Asset->newByDynamicClass($session, $id); + $asset->purge if (defined $asset); + } } @@ -150,7 +200,8 @@ sub addNewStyles { } } print "\t\tSetting all pages to use new style.\n"; - $session->db->write("update wobject set styleTemplateId='stevestyle000000000001' where styleTemplateId in ('B1bNjWVtzSjsvGZh9lPz_A','9tBSOV44a9JPS8CcerOvYw')"); + $session->db->write("update wobject set styleTemplateId='stevestyle000000000003' where styleTemplateId in ('B1bNjWVtzSjsvGZh9lPz_A','9tBSOV44a9JPS8CcerOvYw')"); + $session->setting->set("userFunctionStyleId","stevestyle000000000003"); print "\t\tDeleting old styles.\n"; my $asset = WebGUI::Asset->new($session,'9tBSOV44a9JPS8CcerOvYw'); $asset->purge if defined $asset; diff --git a/docs/upgrades/7fixup/style1/style01.snippet b/docs/upgrades/7fixup/style1/style01.snippet index a974460e7..f6d414636 100644 --- a/docs/upgrades/7fixup/style1/style01.snippet +++ b/docs/upgrades/7fixup/style1/style01.snippet @@ -1,7 +1,6 @@ -#title:style01.css -#menuTitle:style01.css -#url:style01.css -#processAsTemplate:yes +#title:css01.css +#menuTitle:css01.css +#url:style1/css01.css #mimeType:text/css body, html { @@ -14,7 +13,7 @@ body, html #main { width:800px; - background: url('^FileUrl(style01/main_bg.jpg);') repeat-y; + background: url('^FileUrl(style1/main_bg.jpg);') repeat-y; height:100%; margin-left:auto; margin-right:auto; @@ -32,7 +31,7 @@ body > #main { width:800px; height:133px; - background: url('^FileUrl(style01/header.jpg);') top left no-repeat; + background: url('^FileUrl(style1/header.jpg);') top left no-repeat; margin-bottom:0px; position:relative; } @@ -53,7 +52,7 @@ body > #main #main #mainContent { - background: url('^FileUrl(style01/orange_left01.jpg);') left top no-repeat; + background: url('^FileUrl(style1/orange_left01.jpg);') left top no-repeat; width:100%; height:100%; margin-top:0px; @@ -100,50 +99,50 @@ body > #main height:25px; display:block; float:left; - background: url('^FileUrl(style01/nav1_off_left.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav1_off_left.jpg);') no-repeat top left; } #main .mainNav_2 div .left { - background: url('^FileUrl(style01/nav2_off_left.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav2_off_left.jpg);') no-repeat top left; } #main .mainNav_1 div .center, #main .mainNav_2 div .center { height:25px; display:block; float:left; - background: url('^FileUrl(style01/nav1_off_center.jpg);') repeat-x top left; + background: url('^FileUrl(style1/nav1_off_center.jpg);') repeat-x top left; color:white; font-family:arial, verdana; font-size:8pt; } #main .mainNav_2 div .center { - background: url('^FileUrl(style01/nav2_off_center.jpg);') repeat-x top left; + background: url('^FileUrl(style1/nav2_off_center.jpg);') repeat-x top left; } #main .mainNav_1 div .right, #main .mainNav_2 div .right { width:10px; height:25px; display:block; float:left; - background: url('^FileUrl(style01/nav1_off_right.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav1_off_right.jpg);') no-repeat top left; } #main .mainNav_2 div .right { - background: url('^FileUrl(style01/nav2_off_right.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav2_off_right.jpg);') no-repeat top left; } #main .mainNav_1 div.navOn .left { - background: url('^FileUrl(style01/nav1_on_left.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav1_on_left.jpg);') no-repeat top left; } #main .mainNav_1 div.navOn .center { - background: url('^FileUrl(style01/nav1_on_center.jpg);') repeat-x top left; + background: url('^FileUrl(style1/nav1_on_center.jpg);') repeat-x top left; } #main .mainNav_1 div.navOn .right { - background: url('^FileUrl(style01/nav1_on_right.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav1_on_right.jpg);') no-repeat top left; } #main .mainNav_2 div.navOn .left { - background: url('^FileUrl(style01/nav2_on_left.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav2_on_left.jpg);') no-repeat top left; } #main .mainNav_2 div.navOn .center { - background: url('^FileUrl(style01/nav2_center_on.jpg);') repeat-x top left; + background: url('^FileUrl(style1/nav2_center_on.jpg);') repeat-x top left; } #main .mainNav_2 div.navOn .right { - background: url('^FileUrl(style01/nav2_on_right.jpg);') no-repeat top left; + background: url('^FileUrl(style1/nav2_on_right.jpg);') no-repeat top left; } #main .mainNav_1 div.navOn a:link, #main .mainNav_1 div.navOn a:visited, #main .mainNav_2 div.navOn a:link, #main .mainNav_2 div.navOn a:visited { color:black; @@ -225,4 +224,4 @@ body > #main } * html #copyright { background: transparent; -} \ No newline at end of file +} diff --git a/docs/upgrades/7fixup/style1/style01.tmpl b/docs/upgrades/7fixup/style1/style01.tmpl index 85ab3ebcb..60200b3de 100644 --- a/docs/upgrades/7fixup/style1/style01.tmpl +++ b/docs/upgrades/7fixup/style1/style01.tmpl @@ -8,7 +8,7 @@