Search This Blog

Total Pageviews

Wednesday, August 31, 2011

SharePoint Global Navigation

  <StaticMenuItemStyle CssClass="topNavItem" ItemSpacing="0"/>
  <StaticSelectedStyle CssClass="topNavSelected" ItemSpacing="0"/>
  <StaticHoverStyle CssClass="topNavHover"/>
  <DynamicMenuStyle CssClass="topNavFlyOuts" />
  <DynamicMenuItemStyle CssClass="topNavFlyOutsItem" />
  <DynamicHoverStyle CssClass="topNavFlyOutsHover"/>

There are two valid values here, horizontal and vertical. Quick Launch bars are usually vertical while the Top Navigation bars are usually horizontal, but you can change them up here if you want.
This is where you set how many levels of navigation you want to always be visible. If you set it to 1, that means only the immediate sites are visible. If you set it to 2, then the immediate sites and their subsites are visible. This value can not be less then 1.
This is where you set how many levels of fly-out you want to appear when hovering over a menu item that has a subsite. If you set this value to 0, then no fly-outs will appear. If you set it to 3, then up to three levels of sub-sites will appear when hovering over sites that have subsites. This value can not be less then 0.
This property lets you indent statis sub-sites in a menu. The value is in pixels and must be greater or equal to 0. Note that you can also set indentation using padding in CSS, which is probably a better idea.
DynamicHorizontalOffset and DynamicVerticalOffsetIf you need your drop down menues to appear slightly offset, you can use these two properties to move the point of where the drop downs appear. You can use both positive and negative values here. Positive values move the drop down or to the right, while negative values move menues up or to the left.
If you don't want static menu items to display an arrow image if they have a sub-site, set this value to false.
If you don't want dynamic (fly-outs) menu items to display an arrow image if they have a sub-site, set this value to false.
If an item is wider then the menu it is appearing in, you can set this value to true and it will wrap and break into a new line. If this is set to false, you'll have to take that into account when you make your CSS files. I had some issues with big long names breaking my design and using ItemWrap was the easiest fix for me.
Sets the name of the CSS class that you can use to reference the entire menu in your CSS file. Usefull for setting a border around the menu, background colors or images, and that sort of stuff.
In terms of user friendlyness and usability this is one of the most important properties in my opinion. By adjusting this value you can set the time it takes for a drop down fly-out to dissapear after a user moves the mouse away from the drop down menu. I hate it when you're navigating some complex menu structure and you're about 5 levels deep when you accidentally move the mouse outside the boundary of the drop down and it closes the whole thing. Grr. Anyway, this value is measured in milliseconds so don't make it 1 or 2, but rather 1000 or 2000 (or more!).
DynamicPopOutImageUrl and DynamicPopOutImageTextFormatString
These two properties lets you set a custom image (and it's alternate text) to replace the default arrow when a dynamic (fly-out) menu item has a sub-site.
StaticPopOutImageUrl and StaticPopOutImageTextFormatStringThese two properties lets you set a custom image (and it's alternate text) to replace the default arrow when a static menu item has a sub-site.
StaticBottomSeparatorImageUrl and StaticTopSeparatorImageUrl
These two properties let's you set custom images to appear before and after each static menu item. You're probably better off to not use these, and rather do such customization in a CSS file. That will give you more flexibility.
DynamicBottomSeparatorImageUrl and DynamicTopSeparatorImageUrl
These aren't actually in the code snippet above, but they do exist and does the same thing as the static ones except for dynamic menu items (fly-outs). Again as with the static ones you're probably better off doing this with CSS instead.
This let's you specify a custom CSS class for each level in a menu structure. I believe you can go as far down as you want here, but I haven't tried it out to check. It does work a little differently then the other properties though, so make sure you have a look at the code snippet above to see how the syntax works.
Let's you specify a custom CSS class for static menu items when they are hovered my the mouse.
Let's you specify a custom CSS class for a static menu item that is selected (like if you're viewing that particular site).
Let's you specify a custom CSS class for a dynamic (fly-outs) menu. This is the entire menu, not individual items.
Let's you specify a custom CSS class for each item in a dynamic (fly-out) menu.
Let's you specify a custom CSS class for an item that if being hovered over by a mouse in a dynamic (fly-out) menu.


Breadcrumb in SharePoint & Design considerations

Validate a SharePoint list column with Regular Expression

Display News Pages in content Query Webpart

Customize SharePoint Top Navigation Bar

Tuesday, August 30, 2011

SharePoint 2010 Mobile View - live Demo


This question has come up a bit so I thought I would make a comment ...

"During the time of adding a new webpart, iam seeing .dwp for some webparts and .webpart for some webparts as extension. What is the difference between these two?" 

The differance here is that one is a SharePoint webpart and the other is a .NET web part.

The .dwp is a SharePoint web part. This would be one like the Content Editor.

The .webpart is a .NET framework.

The primary differances are that the SharePoint webparts are built with backwards compatibility and more functionality in the web parts communitcation area. If you needed a web part that worked in WSS 2.0 and WSS 3.0, this would be your guy.

The later is one that most likely originated in Visual Studio.

Difference between NTLM and kerberos authentication

Sunday, August 28, 2011 2.0 custom webpart and Sharepoint based web part.

A nice comparisons between 2.0 custom webpart and sharepoint based web part.
ASP.NET 2.0 Web PartSharePoint-based Web Part
  • For most business needs.
  • To distribute your Web Part to sites that run ASP.NET 2.0 or SharePoint sites.
  • When you want to reuse one or more Web Parts created for ASP.NET 2.0 sites on SharePoint sites.
  • To use data or functionality provided by Windows SharePoint Services 3.0. For example, you are creating a a Web Part that works with site or list data.
  • When you want to migrate a set of Web Parts using the SharePoint-based Web Part infrastructure to Windows SharePoint Services 3.0.
  • To create cross page connections.
  • To create connections between Web Parts that are outside of a Web Part zone.
  • To work with client-side connections (Web Part Page Services Component).
  • To use a data-caching infrastructure that allows caching to the content database.

Saturday, August 27, 2011

This List is too large to save as a template. The size of a template cannot exceed 10485760 bytes.

stsadm -o setproperty -propertyname max-template-document-size-propertyvalue 500000000

Good Ref:

Downgrade from SP 2010 Enterprise to SP 2010 Standard

At my work we work with a pre-setup development environment, which always includes SharePoint Enterprise edition. But if you have a customer working with the Standard edition, you might be in some trouble during deployment.
To prevent trouble, you can downgrade your Enterprise installation by de-activating and de-installing some features. Below follows a small script to remove the Enterprise features from your environment. Replace the http://url with the correct url.

There's no other easy way in the GUI.
Use stsadm or PowerShell(Disable-SPFeature FeatureFolderName -Url http://url) to disable these features:

stsadm -o deactivatefeature -force -url http://url -name PremiumSite
stsadm -o deactivatefeature -force -url http://url -name BizAppsSiteTemplates
stsadm -o deactivatefeature -force -url http://url -name BizAppsCTypes
stsadm -o deactivatefeature -force -url http://url -name IPFSSiteFeatures
stsadm -o deactivatefeature -force -url http://url -name BizAppsFields
stsadm -o deactivatefeature -force -url http://url -name ExcelServerSite
stsadm -o deactivatefeature -force -url http://url -name BizAppsListTemplates
stsadm -o deactivatefeature -force -url http://url -name PremiumWeb
stsadm -o deactivatefeature -force -url http://url -name ReportListTemplate
stsadm -o deactivatefeature -force -url http://url -name DataConnectionLibrary
stsadm -o deactivatefeature -force -url http://url -name IPFSWebFeatures
stsadm -o uninstallfeature -force -name PremiumSite
stsadm -o uninstallfeature -force -name BizAppsSiteTemplates
stsadm -o uninstallfeature -force -name BizAppsCTypes
stsadm -o uninstallfeature -force -name IPFSSiteFeatures
stsadm -o uninstallfeature -force -name BizAppsFields
stsadm -o uninstallfeature -force -name ExcelServerSite
stsadm -o uninstallfeature -force -name BizAppsListTemplates
stsadm -o uninstallfeature -force -name PremiumWeb
stsadm -o uninstallfeature -force -name ReportListTemplate
stsadm -o uninstallfeature -force -name DataConnectionLibrary
stsadm -o uninstallfeature -force -name IPFSWebFeatures

To activate the Enterprise features again, you can use the following script:

stsadm -o installfeature -name PremiumSite
stsadm -o installfeature -name PremiumWeb
stsadm -o installfeature -name BizAppsSiteTemplates
stsadm -o installfeature -name BizAppsCTypes
stsadm -o installfeature -name IPFSSiteFeatures
stsadm -o installfeature -name BizAppsFields
stsadm -o installfeature -name ExcelServerSite
stsadm -o installfeature -name BizAppsListTemplates
stsadm -o installfeature -name ReportListTemplate
stsadm -o installfeature -name DataConnectionLibrary
stsadm -o installfeature -name IPFSWebFeatures
stsadm -o activatefeature -url http://url -name PremiumSite
stsadm -o activatefeature -url http://url -name PremiumWeb

SharePoint 2010 Interview Questions - Administration

SharePoint 2010 Interview Questions

Administration and General

1.       What are the roles of a SharePoint Administrator?
2.       Why do you think companies go for SharePoint?
3.       What is version history of SP?
4.       What are the various editions of SP 2010?
5.       What do you mean SP Topology?
6.       How do you plan your SP Topology?
7.       What are the pre-requisites to setup a SharePoint Standalone environment?
8.       What are the pre-requisites to setup a multi-server SP farm?
9.       What is the use of Filter Pack?
10.   Can we use SharePoint with a Non SQL Server database?
11.   Can SP run without Active Directory?
12.   What is the diff between NTLM and Kerberos?
13.   What is the diff between Classic and Claims Authentication?
14.   What is the diff between Services and Service Applications?
15.   What is Alternate Access Mappings?
16.   What is extending a Web Application?
17.   What is meant by Self Site Creation? How can it be used?
18.   Can SP permissions be linked to AD groups?
19.   Can users of multiple ADs be used in SP?
20.   How can we configure Anonymous Access?
21.   What is Host Header? Where is it used?
22.   Can we create Custom Service Applications mapping with Web Applications?
23.   How can we consume Service Applications of another SP Farm in one SP Farm?
24.   How can we manage Content Databases?
25.   In a scenario, where you want a Web Application to be temporarily made as Read-Only, what are the options available?
26.   In a scenario, where you want a Site Collection to be temporarily made as Read-Only, what are the options available?
27.   Can we have multiple Content Databases per application?
28.   Can we backup a Web Application?
29.   Can we backup a Site Collection?
30.   Can we backup a Site?
31.   Can we backup a List or Library?
32.   What is the expansion of .cmp?
33.   Can we backup the whole Farm?
34.   Can we backup a Farm Configuration?
35.   What is the difference between saving Site as Template including Content and Exporting a Site?
36.   How do we configure User Profile Synchronization with Active Directory?
37.   What is the use of Audience Targeting?
38.   Can we configure Custom Properties for a User Profile?
39.   Can a SP user profile property be synchronized back to Active Directory?
40.   What is the concept of Managed Accounts?
41.   If a Managed Account’s password is changed outside SP, your SP Farm will stop. How do we reset it back?
42.   What is the concept of configuring Proxy Server for a Search Service Application?
43.   How do we configure Search with File Shares? What permissions are required on the File Shares for the Search to crawl it successfully?
44.   How do we avoid a particular Document Library or List from being crawled?
45.   How do we avoid a SharePoint page from being crawled and appear in Search Results?
46.   What is the concept of Document Conversions?
47.   What is the difference between explicit and implicit inclusions in Managed Paths?
48.   In a scenario, where we need separate Administrators for a single Service Application, how do we configure and set it up?
49.   What is Secure Store Service and how does it work?
50.   How do we setup Performance Point Services Dashboard Designer to work?
51.   How do we manage User Solutions?
52.   If Configuration Database is corrupted / not accessible, will your User Web Applications work?
53.   Can we run PowerShell outside the SharePoint Server?
54.   Can we use SPD outside the SharePoint Server?
55.   How do we change Service Accounts for various Services in SP?
56.   What is SP Health Analyzer and how does it work?
57.   How do we reset the Search Index?
58.   What is a Search Scope?
59.   Can the Search Service Application run on multiple Servers?
60.   How can we deploy / share content between SharePoint Farms?
61.   Can we change a Web Application from Classic Mode to Claims Mode and vice versa?
62.   How do we configure SharePoint Web Applications to use Open ID or a third party identity provider?
63.   In a scenario, where we have created a Web Application without linking to a particular Service Application, can we add the link later?
64.   How do we list all SharePoint Cmdlets in PowerShell? 
65.   How do we configure a SP PowerShell script to run in a schedule?
66.   Difference between StsAdm and PowerShell?
67.   Can we use SP cmdlets in Windows PowerShell?
68.   How do we find the size of a Site Collection Storage?
69.   How do we upgrade from SP 2003 to SP 2010?
70.   How do we upgrade from MOSS 2007 to SP 2010?
71.   How do we configure Multi-Lingual Sites?
72.   How do we install OWA 2010?
73.   What are the benefits of FAST Search?
74.   How do we configure Incoming e-Mail Settings?
75.   How do we configure SMS Alerts?
76.   What is Diagnostic Logging?
77.   How do we see troubleshoot SharePoint Issues?
78.   What is Web Analytics and how do we configure?
79.   How do we execute SharePoint’s Timer Jobs?
80.   How do we configure Site Quotas?
81.   What feature is required to be activated in order to use the Enterprise Search Center Template?
82.   How do we configure Reporting Services Integration?
83.   How do we determine the patch level of the current deployment?
84.   How do we stop users of a site from accessing through SPD?
85.   What is the difference between Site Collection Administrator and a User with Full Control?
86.   What is the component required in the client side for the Datasheet View to work?
87.   What is the difference between Primary and Secondary Site Collection Administrators?
88.   RSS Feeds for a Document Library / List do not work and display a message “RSS feeds requiring authentication is not supported”. How do we overcome this problem?
89.   Can we downgrade from SP 2010 Enterprise to SP 2010 Standard?
90.   Can we use a Farm Configuration Wizard in a standalone installation?
91.   What are distribution groups?
92.   How do we configure PDF in SP?
93.   How do we add / remove file types?
94.   What is Information Rights Management?
95.   How do we change the Upload Size?
96.   How do we change the size of Recycle Bin?
97.   How do we setup multiple Content Databases for multiple Site Collections?
98.   Can we change a Site Collection from one Content Database to another Content Database?
99.   What is List Throttling?
100.What is Request Throttling?