diff --git a/docs/upgrades/7fixup.pl b/docs/upgrades/7fixup.pl index ce3d520e3..c68aa8863 100644 --- a/docs/upgrades/7fixup.pl +++ b/docs/upgrades/7fixup.pl @@ -68,6 +68,129 @@ sub addNewContent { |, templateId=>'PBtmpl0000000000000002' }); + my $gs = WebGUI::Asset->new($session,"_iHetEvMQUOoxS-T2CM0sQ","WebGUI::Asset::Wobject::Layout"); + $gs->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Getting Started", + menuTitle=>"Getting Started", + url=>"getting_started/getting-started", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q| +
+If you're reading this message that means you've successfully installed and configured WebGUI. Great job! +
++Now you should log in and go into admin mode. The default username is "admin" and the default password is "123qwe", but you probably customized both of those when you visited this site for the very first time. +
++Now that you're logged in, we recommend creating a secondary account for yourself with admin privileges just in case you forget the login information for your primary admin account. Don't worry if you lock yourself out, you can always contact Plain Black support to get instructions to get back in. +
++No doubt after you enabled admin mode you saw a menu along the left side of the screen, that's called the Admin Bar. Use that to add content and access administrative functions. To get started with managing content, watch the short instructional video below. +
++[wink flash video here] +
++For more information about services related to WebGUI click here. +
++Enjoy your new WebGUI site! +
+|, + templateId=>'PBtmpl0000000000000002' + }); + my $yns = WebGUI::Asset->new($session, "8Bb8gu-me2mhL3ljFyiWLg", "WebGUI::Asset::Wobject::Layout"); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Talk to the Experts", + menuTitle=>"Talk to the Expoerts", + url=>"yns/experts", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|Plain Black created WebGUI and is here to answer your questions and provide you with services to make sure your WebGUI implementation is entirely successful. We bend over backwards to make sure you're a success. Contact us today to see how we can help you.
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Documentation", + menuTitle=>"Get Documentation", + url=>"yns/docs", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|WebGUI Done Right is the ultimate compendium to WebGUI. It is more than just documentation, it's also a library of hundreds of videos that show you exactly how to get stuff done. This is a must for anyone working in WebGUI, and Plain Black offers vast bulk discounts so you can give it to everyone in your organization.
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Support", + menuTitle=>"Get Support", + url=>"yns/support", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|Plain Black provides support packages to fit any budget or need. Start out with online support which costs only $500 per year! And grow support as your needs grow. We build custom support packages to match our client's needs. And no matter what level of support you purchase, you get WebGUI Done Right included in your purchase.
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Hosting", + menuTitle=>"Get Hosting", + url=>"yns/hosting", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|Who better to host your WebGUI sites than Plain Black. Let us deal with upgrades, security, and server management. Doing so lets you focus on building your WebGUI site, which is where your time and expertise should be spent. And when you sign up with hosting, online support and WebGUI Done Right are both included!
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Style", + menuTitle=>"Get Style", + url=>"yns/style", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|Not a designer? No problem! Plain Black's professional design team can make your site look great. Our team is fast, easy to work with, and can even migrate your existing content into your new WebGUI site.
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Features", + menuTitle=>"Get Features", + url=>"yns/features", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|What's that you say? WebGUI's thousands of features are still missing some important ones? No problem, our professional development team can add any features you need for your site. We've built hundreds of custom apps for people. From simple macros, to custom single sign on systems, to applications that will manage your entire company, our team can do it.
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Translated", + menuTitle=>"Get Translated", + url=>"yns/translated", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|Let our team of professional translators bring your site to new customers by translating your content into additional languages. Our translation services are never machine automated. They're always done by professional translators that have years of experience reading, writing, and speaking many languages.
|, + templateId=>'PBtmpl0000000000000002' + }); + $yns->addChild({ + className=>"WebGUI::Asset::Wobject::Article", + title=>"Get Promoted", + menuTitle=>"Get Promoted", + url=>"yns/promotion", + ownerUserId=>'3', + groupIdView=>'7', + groupIdEdit=>'4', + description=>q|Now that you have a brilliant WebGUI site, you need to get people to visit it. We can help there too. Our marketing specialists can work with you to develop and execute the right combination of search engine placement, advertising buys, and affilliate programs to ensure your site gets the traffic it needs.
|, + templateId=>'PBtmpl0000000000000002' + }); } #------------------------------------------------- diff --git a/lib/WebGUI/Asset/Snippet.pm b/lib/WebGUI/Asset/Snippet.pm index 4700279e9..b56e0e826 100644 --- a/lib/WebGUI/Asset/Snippet.pm +++ b/lib/WebGUI/Asset/Snippet.pm @@ -172,7 +172,7 @@ sub view { my $output = $self->get("snippet"); WebGUI::Macro::process($self->session,\$output); $output = $self->getToolbar.$output if ($self->session->var->get("adminOn") && !$calledAsWebMethod); - unless ($self->getValue("processAsTemplate")) { + if ($self->getValue("processAsTemplate")) { $output = WebGUI::Asset::Template->processRaw($self->session, $output); } if (!$self->session->var->isAdminOn && $self->get("cacheTimeout") > 10) { diff --git a/lib/WebGUI/Session/Http.pm b/lib/WebGUI/Session/Http.pm index fcc8a6cfc..6b43ed899 100644 --- a/lib/WebGUI/Session/Http.pm +++ b/lib/WebGUI/Session/Http.pm @@ -215,10 +215,10 @@ sub setCacheControl { if ($timeout eq "none" || $self->session->setting->get("preventProxyCache")) { $self->session->request->no_cache(1); } elsif ($request->protocol =~ /(\d\.\d)/ && $1 >= 1.1){ - $request->header_out('Cache-Control', "max-age=" . $timeout); + $request->headers_out->set('Cache-Control' => "max-age=" . $timeout); } else { my $date = $self->session->datetime->epochToHuman(time() + $timeout, "%W, %d %C %y %j:%m:%s %t"); - $request->header_out('Expires', $date); + $request->headers_out->set('Expires' => $date); } } }