Click on this icon to open the XML page.Tom Van Gaever - Blog
Search:   

SPWeb themes and Icons 
Wednesday, June 11, 2008, 09:27 - SharePoint
Posted by Administrator
here's my small code snippet that enables an administrator to change the theme and the icon of an entire sitecollection at once.

here it is:
public enum SPSiteThemes {
none,
classic,
simple,
Belltown,
Breeze2,
Cardinal,
Citrus,
Granite,
Jet,
Lacquer,
Lichen,
Obsidian,
Petal,
Plastic,
Reflector,
Verdant,
Vintage,
Wheat
}


private void ApplyThemeToWeb(SPSiteThemes Theme, SPWeb Web, bool Recurse)
{
Web.ApplyTheme(Theme.ToString());
if (Recurse) {
foreach (SPWeb subweb in Web.Webs) {
try
{
ApplyThemeToWeb(Theme, subweb, Recurse);
}
finally {
subweb.Dispose();
}
}
}
Web.Update();
}

private void ApplyIconToWeb(string IconURL, SPWeb Web, bool Recurse)
{
Web.SiteLogoUrl = IconURL;
Console.WriteLine(Web.Title + " updated to " + IconURL.ToString());
if (Recurse)
{
foreach (SPWeb subweb in Web.Webs)
{
try
{
ApplyIconToWeb(IconURL, subweb, Recurse);
}
finally
{
subweb.Dispose();
}
}
}
Web.Update();
}



add comment ( 7 views )   |  permalink   |   ( 3 / 497 )
46 new AJAX.NET Examples 
Friday, June 6, 2008, 14:03 - AJAX.NET
Posted by Administrator
There are 46 new tutorials added to the AJAX.NET website.

here
add comment ( 6 views )   |  permalink   |  related link   |   ( 3 / 579 )
Finally Visual Studio 2008 support for sharepoint development 
Friday, June 6, 2008, 10:12 - SharePoint
Posted by Administrator
Windows SharePoint Services 3.0 Tools: Visual Studio 2008 Extensions, Version 1.2

An overview:

Tools for developing custom SharePoint applications: Visual Studio project templates for Web Parts, site definitions, and list definitions; and a stand-alone utility program, the SharePoint Solution Generator. Please also download the User Guide and Samples listed in Related Resources.

The User Guide for this tool can be found here

The 1.1 version can be found here for Visual Studio 2005 support: Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions, Version 1.1

Version 1.2 of the Visual Studio 2008 Extensions for Windows SharePoint Services contains the following tools to aid developers in building SharePoint applications:

Visual Studio 2008 Project Templates Web Part
Team Site Definition
Blank Site Definition
List Definition
Empty SharePoint Project
Visual Studio 2008 Item Templates (items that can be added into an existing project)
Web Part
Custom Field
List Definition (with optional Event Receiver)
Content Type (with optional Event Receiver
Module
List Instance
List Event Handler
Template

SharePoint Solution Generator
This stand-alone program generates a Site Definition project from an existing SharePoint site. The program enables developers to use the browser and Microsoft Office SharePoint Designer to customize the content of their sites before creating code by using Visual Studio.

DOWNLOAD

add comment ( 4 views )   |  permalink   |   ( 3 / 490 )
Gentleman warm up your SharePoint Engines 
Friday, May 30, 2008, 15:02 - SharePoint
Posted by Administrator
Ever thought things on ASP.NET were a bit slow the first time accessing them? Many of you are aware that ASP.NET from a web admin perspective know that things have to recompile and things just aren't as fast the first time. In fact some times things are incredibly slow the first time and are incredibly slow. Ever had users say, for some odd reason some times when I hit my SharePoint site it takes 30 seconds to load, then after a refresh it goes sub second, even clearing their cache the page is fast. That's because it's not a user issue, its simply compiling, caching, etc... on the server after an IISReset or app pool reset or worker process cycle.


Joel Oleson's post is very very interesting:

add comment ( 6 views )   |  permalink   |  related link   |   ( 3 / 620 )
3 sharepoint administrator "golden" tips 
Friday, May 30, 2008, 15:00 - SharePoint
Posted by Administrator
Tip #1: Add Command Line Shortcut to "12 Hive"
Tip #2: Access STSADM.EXE From any Directory in a Command Prompt
Tip #3: Recycle Application Pools, not IIS

Read More
add comment ( 4 views )   |  permalink   |  related link   |   ( 2.9 / 456 )

<<First <Back | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | Next> Last>>