- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
.net barcode reader sdk PS > Set-SPTheme -url http://nimaintranet -theme Azure in .NET
PS > Set-SPTheme -url http://nimaintranet -theme Azure QR Code ISO/IEC18004 Recognizer In VS .NET Using Barcode Control SDK for VS .NET Control to generate, create, read, scan barcode image in VS .NET applications. Create QR Code In .NET Using Barcode encoder for .NET framework Control to generate, create QR Code JIS X 0510 image in .NET framework applications. If we want to apply the same theme to multiple sites, we can use the Get-SPSite and Get-SPWeb cmdlets and pipe the retrieved site objects to the Set-SPTheme function Quick Response Code Decoder In Visual Studio .NET Using Barcode recognizer for VS .NET Control to read, scan read, scan image in VS .NET applications. Creating Barcode In .NET Framework Using Barcode encoder for .NET framework Control to generate, create barcode image in .NET framework applications. PS > Get-SPSite -Identity http://nimaintranet | Get-SPWeb | ForEach-Object { >> Set-SPTheme -url $_Url -theme Azure } Bar Code Scanner In Visual Studio .NET Using Barcode reader for .NET framework Control to read, scan read, scan image in .NET framework applications. Creating Quick Response Code In Visual C# Using Barcode encoder for .NET Control to generate, create Quick Response Code image in .NET framework applications. To revert to the default theme, use the static SetThemeUrlForWeb method of the MicrosoftSharePointUtilitiesThmxTheme class The method has two overload definitions One of the overloads takes two arguments: an SPWeb object and a theme URL The second overload also supports a shareGenerated parameter In the next example, we set the theme URL to null, which resets the site to the default theme QR-Code Encoder In .NET Framework Using Barcode creation for ASP.NET Control to generate, create Quick Response Code image in ASP.NET applications. Drawing Denso QR Bar Code In Visual Basic .NET Using Barcode generator for .NET framework Control to generate, create Quick Response Code image in .NET applications. PS > $spWeb = Get-SPWeb -Identity http://nimaintranet PS > [MicrosoftSharePointUtilitiesThmxTheme]::SetThemeUrlForWeb( >> $spWeb, $null) Printing Bar Code In VS .NET Using Barcode creator for .NET Control to generate, create barcode image in Visual Studio .NET applications. Linear Barcode Maker In Visual Studio .NET Using Barcode generation for .NET framework Control to generate, create Linear 1D Barcode image in Visual Studio .NET applications. The SetThemeUrlForWeb method can also be used to apply a new theme to a site, just as we did with the ApplyTo method of the ThmxTheme class in a previous example Bar Code Creator In .NET Using Barcode generator for .NET framework Control to generate, create barcode image in Visual Studio .NET applications. Creating EAN 8 In .NET Using Barcode generation for .NET framework Control to generate, create EAN-8 Supplement 5 Add-On image in .NET applications. PS >> >> PS >> PS > $thm = [MicrosoftSharePointUtilitiesThmxTheme]::GetManagedThemes($spWebSite) | Where { $_Name -eq "Berry" } > [MicrosoftSharePointUtilitiesThmxTheme]::SetThemeUrlForWeb( $spWeb, $thmServerRelativeUrl) > $spWebDispose() Make 1D In VB.NET Using Barcode generation for VS .NET Control to generate, create 1D Barcode image in .NET framework applications. Linear Barcode Encoder In .NET Framework Using Barcode drawer for ASP.NET Control to generate, create Linear image in ASP.NET applications. Changing the Site Logo, Title, and Description
Make Barcode In Java Using Barcode creator for BIRT reports Control to generate, create bar code image in BIRT applications. Decode Code 128A In VS .NET Using Barcode decoder for VS .NET Control to read, scan read, scan image in .NET framework applications. We can modify the site logo, as well as its title and description, by changing the properties of the corresponding SPWeb object Painting Code 39 Full ASCII In C# Using Barcode encoder for Visual Studio .NET Control to generate, create Code 3 of 9 image in Visual Studio .NET applications. Linear 1D Barcode Creation In Visual C#.NET Using Barcode encoder for VS .NET Control to generate, create Linear Barcode image in .NET applications. Changing the Logo
Generating UCC - 12 In None Using Barcode drawer for Online Control to generate, create UPC-A image in Online applications. Read Code 3/9 In VB.NET Using Barcode scanner for .NET Control to read, scan read, scan image in VS .NET applications. In this scenario, we will look at how easy it is to change the logo of a site A site logo is the small image that appears to the left of the site title, in the top-left corner of your site s pages First, we bind to the site using the Get-SPWeb cmdlet PS > $spWeb = Get-SPWeb -Identity http://nimaintranet
PowerShell for Microsoft SharePoint 2010 Administrators
The SPWeb object returned by the Get-SPWeb cmdlet supports SiteLogoUrl and SiteLogoDescription properties that we can use to set a new site logo and a description In this example, we use an image that exists in a picture library within the site PS > $spWebSiteLogoUrl = "http://nimaintranet/Pictures/Imagebmp" PS > $spWebSiteLogoDescription = "My Image" After we have set the properties, we use the Update method to commit the changes we have made to the site, and finally dispose of the object PS > $spWebUpdate() PS > $spWebDispose() By placing the code in a function, we can reuse it on multiple sites without needing to retype the code every time Here is an example on a function, Set-SPSiteLogo, that sets the site logo and the site logo description: function Set-SPSiteLogo([string]$url, [string]$logoUrl, [string]$description) { $spWeb = Get-SPWeb -Identity $url $spWebSiteLogoUrl = $logoUrl $spWebSiteLogoDescription = $description $spWebUpdate() $spWebDispose() } You can run the function by typing the following: PS > Set-SPSiteLogo -url http://nimaintranet -description "My image" ` >> -logoUrl http://nimaintranet/Pictures/Imagebmp Changing the Title and Description
Both the title and description of a site in SharePoint 2010 are available as properties on a corresponding SPWeb object These properties allow us to change the title and description with only a few lines of code, as this example shows: PS PS PS PS PS > > > > > $spWeb = Get-SPWeb -Identity http://nimaintranet $spWebTitle = "New Title" $spWebDescription = "New Description" $spWebUpdate() $spWebDispose() Here, we create an instance of an SPWeb object and set the Title property to New Title and the Description property to New Description When we call the Update method, the changes are committed 13: Managing the Look and Feel of Sites
We can also use the more convenient Set-SPWeb cmdlet, which allows us to perform the same actions on a single line of code PS > Set-SPWeb http://nimaintranet -Description "New Description" Managing Navigation
Along with the top navigation control, SharePoint 2010 can, out of the box, present navigation items in the left-side navigation pane using the Quick Launch bar or using the Tree View navigation Both the Quick Launch navigation and the Tree View controls can be displayed at the same time, but usually only one is used
|
|