Saturday, November 3, 2012
Thursday, September 13, 2012
Verbose logginglevel to Default - Stsadm command
stsadm -o setlogginglevel -tracelevel none
- At the Windows PowerShell command prompt (that is, PS C:\>), type the following command, and then press ENTER:
Set-SPLogLevel -TraceSeverity {None | Unexpected | Monitorable | Medium | High | Verbose} -EventSeverity {None | Information | Warning | Error | Critical | Verbose} [-Identity <Category name…>] -VerboseYou can use theIdentityparameter to specify one or more categories to change — for example, Administration. If you do not specify the value for theIdentityparameter, all categories are changed.To view the current settings, typeGet-SPLogLevel, and then press ENTER.To set all categories back to default levels, typeClear-SPLogLevel, and then press ENTER.
Wednesday, September 12, 2012
URL's to Access SharePoint Pages
Here are some URL's to access pages in SharePoint. These URL are helpful to save time and hassles of clicking many times to reach a speicfied page:
The URL's are grouped based on the major functioanlity area:
Users and Permissions:
People and Groups: _layouts/people.aspx
Site Collection Admins: _layouts/mngsiteadmin.aspx
Advanced Permissions: _layouts/user.aspx
Master Pages: _Layouts/ChangeSiteMasterPage.aspx
Look and Feel:
Title, Desc, and Icon: _layouts/prjsetng.aspx
Navigation: _layouts/AreaNavigationSettings.aspx
Page Layout and Ste Templates: _Layouts/AreaTemplateSettings.aspx
Welcome Page: _Layouts/AreaWelcomePage.aspx
Tree View: _layouts/navoptions.aspx
Top Nav Bar: _layouts/topnav.aspx
Site Theme: _layouts/themeweb.aspx
Reset to Site Definition: _layouts/reghost.aspx
Searchable Columns: _Layouts/NoCrawlSettings.aspx
Site Content Types: _layouts/mngctype.aspx
Galleries
The URL's are grouped based on the major functioanlity area:
Users and Permissions:
People and Groups: _layouts/people.aspx
Site Collection Admins: _layouts/mngsiteadmin.aspx
Advanced Permissions: _layouts/user.aspx
Master Pages: _Layouts/ChangeSiteMasterPage.aspx
Look and Feel:
Title, Desc, and Icon: _layouts/prjsetng.aspx
Navigation: _layouts/AreaNavigationSettings.aspx
Page Layout and Ste Templates: _Layouts/AreaTemplateSettings.aspx
Welcome Page: _Layouts/AreaWelcomePage.aspx
Tree View: _layouts/navoptions.aspx
Top Nav Bar: _layouts/topnav.aspx
Site Theme: _layouts/themeweb.aspx
Reset to Site Definition: _layouts/reghost.aspx
Searchable Columns: _Layouts/NoCrawlSettings.aspx
Site Content Types: _layouts/mngctype.aspx
Galleries
Site Columns: _layouts/mngfield.aspx
Site Templates: _catalogs/wt/Forms/Common.aspx
List Templates: _catalogs/lt/Forms/AllItems.aspx
Web Parts: _catalogs/wp/Forms/AllItems.aspx
Workflows: _layouts/wrkmng.aspx
Master Pages and Page Layouts: _catalogs/masterpage/Forms/AllItems.aspx
Regoinal Settings: _layouts/regionalsetng.aspx
Site Administration
Site Libraries and Lists: _layouts/mcontent.aspx
Site Usage Report: _layouts/usageDetails.aspx
User Alerts: _layouts/sitesubs.aspx
RSS: _layouts/siterss.aspx
Search Visibility: _layouts/srchvis.aspx
Sites and Workspaces: _layouts/mngsubwebs.aspx
Site Features: _layouts/ManageFeatures.aspx
Delete This Site: _layouts/deleteweb.aspx
Site Output Cache: _Layouts/areacachesettings.aspx
Content and Structure: _Layouts/sitemanager.aspx
Content and Structure Logs: _Layouts/SiteManager.aspx?lro=all
Search Settings: _layouts/enhancedSearch.aspx
Site Collection Administration
Site Templates: _catalogs/wt/Forms/Common.aspx
List Templates: _catalogs/lt/Forms/AllItems.aspx
Web Parts: _catalogs/wp/Forms/AllItems.aspx
Workflows: _layouts/wrkmng.aspx
Master Pages and Page Layouts: _catalogs/masterpage/Forms/AllItems.aspx
Regoinal Settings: _layouts/regionalsetng.aspx
Site Administration
Site Libraries and Lists: _layouts/mcontent.aspx
Site Usage Report: _layouts/usageDetails.aspx
User Alerts: _layouts/sitesubs.aspx
RSS: _layouts/siterss.aspx
Search Visibility: _layouts/srchvis.aspx
Sites and Workspaces: _layouts/mngsubwebs.aspx
Site Features: _layouts/ManageFeatures.aspx
Delete This Site: _layouts/deleteweb.aspx
Site Output Cache: _Layouts/areacachesettings.aspx
Content and Structure: _Layouts/sitemanager.aspx
Content and Structure Logs: _Layouts/SiteManager.aspx?lro=all
Search Settings: _layouts/enhancedSearch.aspx
Site Collection Administration
Search Scopes: _layouts/viewscopes.aspx?mode=site
Search Keywords: _layouts/listkeywords.aspx
Recycle Bin: _layouts/AdminRecycleBin.aspx
Site Collection Features: _layouts/ManageFeatures.aspx?Scope=Site
Site Hierachy: _layouts/vsubwebs.aspx
Portal Site Connection: _layouts/portal.aspx
Site Collection Audit Settings: _layouts/AuditSettings.aspx
Site Collection Policies: _layouts/Policylist.aspx
Site Collection Cache Profiles: Cache%20Profiles/AllItems.aspx
Site Collection Output Cache: _Layouts/sitecachesettings.aspx
Site Collection Object Cache: _Layouts/objectcachesettings.aspx
Variations: _Layouts/VariationSettings.aspx
Variation Labels: _Layouts/VariationLabels.aspx
Recycle Bin: _layouts/AdminRecycleBin.aspx
Site Collection Features: _layouts/ManageFeatures.aspx?Scope=Site
Site Hierachy: _layouts/vsubwebs.aspx
Portal Site Connection: _layouts/portal.aspx
Site Collection Audit Settings: _layouts/AuditSettings.aspx
Site Collection Policies: _layouts/Policylist.aspx
Site Collection Cache Profiles: Cache%20Profiles/AllItems.aspx
Site Collection Output Cache: _Layouts/sitecachesettings.aspx
Site Collection Object Cache: _Layouts/objectcachesettings.aspx
Variations: _Layouts/VariationSettings.aspx
Variation Labels: _Layouts/VariationLabels.aspx
Translatable Columns: _Layouts/TranslatableSettings.aspx
Variation Logs: _Layouts/VariationLogs.aspx
Site Settings: _layouts/settings.aspx
Variation Logs: _Layouts/VariationLogs.aspx
Site Settings: _layouts/settings.aspx
How to Enable the Developer Dashboard in SharePoint 2010
When activated, the Developer Dashboard appears at the bottom of a page and allows site owners and up to view the call stack, database query times, exception information in error messages, and loading events for web parts during page rendering. All of these allow you to pinpoint the bottleneck within your page and to quickly focus on the resolution. The Developer Dashboard can be enabled via STSADM or PowerShell. This is one of the rare cases where the command in STSADM is shorter than PowerShell. The recommended property value is OnDemand, which provides you the ability to toggle the dashboard on and off.
STSADM
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddsetting=$svc.DeveloperDashboardSettings
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$ddsetting.Update()
An icon displays in the top right of the page when the Developer Dashboard is set to OnDemand — click this to toggle the dashboard on and off.

Example of the Developer Dashboard:




_____________________
STSADM
- stsadm -o setproperty -pn developer-dashboard -pv on
- stsadm -o setproperty -pn developer-dashboard -pv off
- stsadm -o setproperty -pn developer-dashboard -pv OnDemand (recommended)
$svc=[Microsoft.SharePoint.Administration.SPWebService]::ContentService
$ddsetting=$svc.DeveloperDashboardSettings
$ddsetting.DisplayLevel=[Microsoft.SharePoint.Administration.SPDeveloperDashboardLevel]::OnDemand
$ddsetting.Update()
An icon displays in the top right of the page when the Developer Dashboard is set to OnDemand — click this to toggle the dashboard on and off.
Example of the Developer Dashboard:
_____________________
Wednesday, March 14, 2012
How to Save a Site as a Template in SharePoint 2010
How to Save a Site as a Template in SharePoint 2010
Saving a SharePoint 2010 site as a template allows you to clone it somewhere else. You can do this either without content (to create a brand new site with the same design) or with content (as one way of doing a site migration or backup).
How does this works?
1. Under “Site Actions”, select “Site Settings”.
2. Under “Site Actions”, you should see “Save Site as Template”. But sometimes it may not be there. You may see something like the below instead.
3. If you don’t have “Save Site as Template” as an option, it could be because you don’t have sufficient permissions (in which case you need to talk to your site administrator). But what if you are the administrator, and you still don’t see “Save Site as Template”? In this case, the problem may be that you need to turn off the site’s publishing features. (Note: if you are working with a sub site, the parent site will not be affected by this.)
3A. Go to Site Actions -> Site Settings -> Manage site features (under “Site Actions”)
3B. Click “Deactivate” for “SharePoint Server Publishing”
3C. Go back to Site Actions -> Site Settings. You should now see “Save site as template” as an option
4. Select “Save site as template”, and provide the required information. Decide whether you want to copy the site’s content with the template (see above). Click “OK”.
5. You will get a link to your “solution gallery”, which has your template.
6. If you need to find it later, the template is at <your root site URL>/_catalogs/solutions . Note that as with SharePoint 2007, the site template is stored at the root level (even if the site you are saving is a sub site). This means that you need to have permissions to the root site in order to complete this process.
7. If you want to clone the site to another location, first save it out, for instance to your desktop. Do this by
7A. Clicking on the name
7B. Clicking “Save” and selecting a location. For SharePoint 2010, it should save as a “.wsp” file. (“Resource Usage” of “0.00” does not mean that it is an empty file: you’re fine.)
8. If you now want to make the cloned site a sub site of another SharePoint 2010 installation, you first need to load it into the “Solution Gallery” in the target site.
8A. In the root site for the target installation, go to the “Solution Gallery”
8B. From the ribbon, select “Solutions” then “Upload Solution”
8C. Browse to the file. If you don’t see an “OK” button on the file browse window, click the “maximize” button in the upper right next to the “x”.
8D. Click OK
9. Check that the template now appears in the target installation’s Solution Gallery.
10. You can now create a new sub site using the template from Site Actions -> New Site
Tuesday, February 21, 2012
SharePoint 2010 Search, Best Bets
Here i just want to explain about ‘best bets’ functionality in this post.
Best bets essentially allows you to inject your chosen content at the top of search queries for certain keywords. As an example on my test bed site when ever someone types ‘javier’ I want to return three key items at the top. These three items will be:
Create a Search Center
To leverage best bets we must use a search center. That is pretty easy. A search center in essence is a subsite of your site. Click on Site Actions->New Site->Search->Basic Search Center. Lets fill it our with the following information, and select create. Take a look at the more options button if you want to modify it from the default settings.

Great once you select create it puts into your search center. If we try and search for the term ‘javier’ we get results, but not our best bests. Lets navigate back to our parent site.
Creating Best Bets
From here lets go back to our site settings. Remember this is our parent site and not the new site setting for the search center we just created. click Site Actions->Site Collection Administration->Search keywords->Add Keyword. I want my key word to be ‘javier’ but as we can see you can fill in synonyms as you need them. Optionally, you can add some type of definition to appear with the keyword result. In this case I’ll use ‘javi’ my nickname as a synonym.

Now that your key word is set lets create the actual best bets. Click on ‘Add Best Bet’.

Enter your information, and click OK. Let repeat that cycle to enter in the all the best bests we want, and in the order we want. If you take a look at the rest of the edit key word screen you will notice other options to add a contact and publishing options. Press OK when completed.
Lets test it out. I’ll navigate to your search center subsite and enter in my new keyword ‘javier’.

Great! now we have best bet set up and returning the information we want for our users. Almost complete but still not quite there…
Completing the Configuration
Lets test the search from our parent site.

hmm… as we can see no best bets here. The key is the URL.
Compare that to a search with in our search center subsite with the same exact term.
we need to link our parent site search bar to default to the new search center subsite. In the parent site click on site actions-> site settings-> search setings. Select ‘Enable custom scopes’ and fill in the appropraite link to your subsite. In my case that was ‘/sites/test/searchcenter’. I do not like to use full URL hard links because this offers the maximum versatility, and SharePoint is smart enough to add the appropriate completed link. In addition I chose, ‘Do not show scopes dropdown, and default to target results page’ under ‘specify the dropdown mode for Search Boxes:’. We will go over custom scopes later. click OK.
Now if we type in ‘javier’ from the parent’s search box it will return the proper results WITH the best bets.

Fantastic! Now, remember best bets is not available to SharePoint Foundation, but you can get it SharePoint 2010 Search Server Express, SharePoint 2010 Standard, and SharePoint 2010 Enterprise.
Best bets essentially allows you to inject your chosen content at the top of search queries for certain keywords. As an example on my test bed site when ever someone types ‘javier’ I want to return three key items at the top. These three items will be:
- link to my twitter feed link
- link to my technical blog techgrowingpains.com
- link to my Linkedin page
Create a Search Center
To leverage best bets we must use a search center. That is pretty easy. A search center in essence is a subsite of your site. Click on Site Actions->New Site->Search->Basic Search Center. Lets fill it our with the following information, and select create. Take a look at the more options button if you want to modify it from the default settings.
Great once you select create it puts into your search center. If we try and search for the term ‘javier’ we get results, but not our best bests. Lets navigate back to our parent site.
Creating Best Bets
From here lets go back to our site settings. Remember this is our parent site and not the new site setting for the search center we just created. click Site Actions->Site Collection Administration->Search keywords->Add Keyword. I want my key word to be ‘javier’ but as we can see you can fill in synonyms as you need them. Optionally, you can add some type of definition to appear with the keyword result. In this case I’ll use ‘javi’ my nickname as a synonym.
Now that your key word is set lets create the actual best bets. Click on ‘Add Best Bet’.
Enter your information, and click OK. Let repeat that cycle to enter in the all the best bests we want, and in the order we want. If you take a look at the rest of the edit key word screen you will notice other options to add a contact and publishing options. Press OK when completed.
Lets test it out. I’ll navigate to your search center subsite and enter in my new keyword ‘javier’.
Great! now we have best bet set up and returning the information we want for our users. Almost complete but still not quite there…
Completing the Configuration
Lets test the search from our parent site.
hmm… as we can see no best bets here. The key is the URL.
1 | http://javierbarrera.com/sites/test/_layouts/OSSSearchResults.aspx?k=javier&cs=This%20Site&u=http://javierbarrera.com/sites/test |
1 | http://javierbarrera.com/sites/test/SearchCenter/results.aspx?k=javier |
Now if we type in ‘javier’ from the parent’s search box it will return the proper results WITH the best bets.
Fantastic! Now, remember best bets is not available to SharePoint Foundation, but you can get it SharePoint 2010 Search Server Express, SharePoint 2010 Standard, and SharePoint 2010 Enterprise.
How to define a new Best Bet Keyword in SharePoint 2007?
- From your site home page, click "Site Actions/Site Settings/Modify All Site Settings".
- Under Site Collection Administration, click "Search Keywords".
- On the Manage Keywords page, click "Add Keyword".
- On the Add Keyword page, click "Add Best Bet".
- On the Add Best Bet popup page, enter the Target URL, Title and Description of the best bet and click "OK".
- Back on the Add Keyword page, enter the Keyword Phrase, Synonyms (separated by a semi colon), Definition, Contact Person and Expiration Date and click "OK".
- The new keyword and best bet should now be listed.
- Testing by searching for "My Phrase" should yield the Best Bet. You can customize where Best Bets show up on the results page. In our example's case, it was set to be the first results in the list.
- A search for any of the synonyms should yield the same result.
Subscribe to:
Posts (Atom)