Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Collaboration Portal branding

  Asked By: Juana    Date: Nov 05    Category: Sharepoint    Views: 1744

I have created a console application and can create a site based on
the "SPSPORTAL#0" configuration but can't execute the same code from a
dll and get a "The web being updated was changed by an external
process" Exception when i try to apply branding to the top level site.



2 Answers Found

Answer #1    Answered By: Leanne Rios     Answered On: Nov 05

Are you using SharePoint Portal Server (SPS) 2003 or are you using
Microsoft Office SharePoint Server (MOSS) 2007? In 2003, I didn't think
that Areas could be themed. In 2007, I thought that SPS* Site Templates
in were only used for backwards compatibility.

Answer #2    Answered By: Zachary Roberts     Answered On: Nov 05

The code  is hiding the builtin Colloboration site  from the Top-
Navigation menu. the code works fine from console  app but not from
the provisioner.cs

here's the code:

#region Update Top Navigation Menu
// storage variable for "Global Excludes" property
string strGlobalNavigationExcludes = "";

// get the current Property value (which should be null)
if (rootWeb.AllProperties["__GlobalNavigationExcludes"]
== null)
strGlobalNavigationExcludes = String.Empty;
strGlobalNavigationExcludes = rootWeb.AllProperties

foreach (SPWeb web  in rootWeb.Webs)
if (web.Title == "Reports"
// || web.Title == "Search"
|| web.Title == "Sites"
// || web.Title == "News"
|| web.Title == "Document Center")
strGlobalNavigationExcludes += "{" +
web.ID.ToString() + "};";

// remove the trailing ";" (if there is one)

rootWeb.AllowUnsafeUpdates = true;

// update the property bag for the root web site
rootWeb.AllProperties["__GlobalNavigationExcludes"] =

// apply  theme and site logo
ApplyTheme(rootWeb, "CARDINAL");
(rootWeb, "/_layouts/DeNDRoN/Images/DeNDRoN_web.bmp", "DeNDRoN Portal

// apply (save) the changes to the root web

rootWeb.AllowUnsafeUpdates = false;

Didn't find what you were looking for? Find more on Collaboration Portal branding Or get search suggestion and latest updates.