Friday, March 12, 2010

Target Specific Content to Specific Audience for List Items, Document Library Items

This is a wonderful out of box feature of SharePoint. You can target any list items, document libraries items to specific groups, distribution list, members.

Target List \ Document Library items to an audience -

There are two options for doing this ->

1) Change Manage permissions for an item
2) Enable Target Audience option available for list and document library

1) Change Manage permissions for an item -
  • Right Click on particular item which you want to set for specific audience. You will find manage permission option. The permissions for current item will be inherited from the parent folder. So according to your choice it can be changed. Users who have the permission on these items; it will appear accordingly in the document library for them.

2) Enable Target Audience option available for list and document library -
    For doing this three steps you have to follow -
  • Enable audience targeting on the list or library
  • Specify the target audience on the items
  • Display the targeted items in a Content Editor Web Part
Explanation of these steps -

Enable audience targeting on the list or library -
  • Navigate to particular list or library. Click on Settings tab -> Document Library Settings.

  • Click on Audience Target Settings.

  • Enable Audience Target checkbox. Click ok
  • After enabling target audience you will be able to see one more column in List or Document Library as Target Audience.
Specify the target audience on the items -
  • On the item -> Right Click -> Edit Properties
  • Add the Target Audience list in this.
Display the targeted items in a Content Editor Web Part -

After using this option the library items will be visible to everyone .You have to use Content Query Web Part to display items for a specific audience.

Monday, February 8, 2010

How to add Site Hierarchy in Left navigation area of SharePoint site

I am wondering if this can be useful for you all.

I wanted to show all folder structure related to my site in left navigation menu, basically site hierarchy. For showing this you just need to enable tree structure on the page.

How to do that ->

1) Go to the SharePoint site.
2) Click on Site Actions -> Click Site Settings -> Click Tree View as shown below

3) Click on Enable Tree view.

Wednesday, February 3, 2010

Explore SharePoint Site Navigation – How to create or modify Top Link tab and Side Bar Link Navigation

When we create new site then Root site will be shown as home page. Under that we can create many sites; but how can we show\ modify navigations according to our requirements.

I am going to explain difference between Current Navigation and Global Navigation.

Global Navigation – This is shown at the top of the page along with the site collection Home page tab.

Current Navigation - This is shown in the side of the page most of the times.

How can we modify navigation as per our requirements ->

1) Browse the Site -> Click on Site Actions -> Site Settings.

2) Click on Navigation

3) Select the option according to your choice

4) Navigation Editing and Sorting  -> This section is used to reorder, modify or create new navigation under this site.

You will find this Navigation Tool Bar for settings.



If you want to create new tab in site for top navigation then add heading under global navigation

If you want to add child link under some top navigation tab then add link in particular heading

If you want to create a new parent link in side navigation bar then add Heading under current navigation.

If you want to create new child link in the side navigation bar then add link within heading under current navigation.

Friday, December 18, 2009

How to import Active directory users to Moss 2007?

I want to make you clear why it is required? Some people have doubts why we import from active directory? Share Point will automatically check the windows authenticate users, when you click on "check names" in any column data type as "people and group".It will not only recognize the user but will give you full information through active directory import. All the required details like – domain, email address, department will update from active directory to Moss site.


So let us start ->
First you have to create a Shared Services Provider if it is not created in your central administration site. Then follow these steps –


1) Login in Central Administration site.


2) You will be able to see SharedServices1 link in left navigation menu under Shared Services Administration. This link name will depend what you have given in ssp name while configuring Shared services provider.


Central-Administrator

3) After clicking this -> you will be navigated to shared services administration screen for your SSP. You will be able to see all these section shown below. Click on “User Profiles and properties” link under User Profile and My sites section to import user profiles from the directory.

SSP

4) On the User Profiles and Properties page click on "Configure profile import".

Configure-Profile-ImportUser_Profiles-and-Properties




5) You will find one link "View Import Connection". On click of this link, new page will open. This page will have one button "Create new Connection". Click on this -> Add connection screen will be opened.

You have to fill all these parameters.
a.    Connection string type – Give Active directory.
b.    Domain Name – provide appropriate domain name.
c.    Select "Auto discover domain controller".
d. Port number and time out will come automatically. So do not change that.
e.    Click on "Auto fill root search  base". It will fill the default details in below section automatically.
f.    Change user filter criteria according to your requirement. This is a LDAP query. You will find this on other blogs that how to build the LDAP query.
g.    Check on Sub tree for all levels search.
h.    Under authentication information specify account name which has read permission for active directory. You can choose default account also.

Add-Connection




6)    Click on Ok-> You will get one warning message accept that and go ahead.

7)    you will find the previous screen with one new connection created which you can edit and save again.


8)    Go back to "Configure Profile Import" screen and fill the details. Click on full import and increment import. Schedule it according to your requirement.


9)    For current full import -> Click on Start full import in "User Profile and Properties page".


10)    You will be able to see your crawl result on this page only. After getting it completed. Go to view profile. You will be able to see all user profiles which have been imported.


11)    Done:)


Sunday, December 6, 2009

SharePoint Interview Questions


Interview Questions

I am sharing the Interview questions which have been asked to me in different companies. I will share all the answers in my coming next posts.
  1. How to import Active directory users to Moss 2007 ?
  2. What is Alternate Access Mapping?
  3. How to give alert in java script on click of one button in a web part?
  4. How you can give access to certain users to view a web part?
  5. How to Perform Form Authentication in Moss 2007?
  6. How to create Ajax Enabled web part? What should we do to make Share Point site AJAX Enabled?
  7. How to customize search?
  8. What is Information Management Policy?
  9. How many types of work flow are present in Share Point?
  10. How can you deploy a feature in Moss 2007 Site?
  11. How can to provide your own link in Moss 2007 Central Administration Site?
  12. How can you give your own tab in Site Setting drop down present in any site?
  13. How many type of databases can you explain regarding Moss 2007 installation?
  14. What is the difference between xml,xslt, xsd?
  15. What are the deployment methods to deploy a web part\feature in Production machine?
  16. Where do you place your .aspx pages in Share Point?

Saturday, December 5, 2009

Moss Installation Problem - Central Administrator Content DB is deleted

Installation Problem – There is one problem which can be faced during installation, so want to share with all of you.

Problem what can be faced - >


I was facing some issues in previous Moss 2007 installation so decided to reinstall it. So first I uninstalled it from control panel -> add\remove programs and then installed it again.

After that I logged in SQL Server 2005 to see all the databases are proper. I found the previous installed Moss 2007 web applications content db were not deleted so I manually deleted it. By mistakenly I deleted the newly installed central admin "Admin Database" (Content database for Central Administrator).
Big time screwed. Central administrator site was not browsable.

Solution which was tried but did not work->

• I tried to uninstall the SharePoint from control panel again -> so I can reinstall it properly but I found that it was unable to uninstall. Automatically, the wizard was disappearing.

• I tried to run the psconfigui.exe present at C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN. From this wizard -> I tried to detach the SQL but no use then tried to run on the same installation without detaching. This was also a problem. Entries were logged in log file.

• I tried to run the setup again forcefully. I got remove and repair option. First tried with Remove, not worked. Then tried to repair, it has been done successfully but central admin database was not recovered.

• I tried to take back up of another installed central admin site and try to restore in new web application. Not succeeded.

• Tried to take SQL backup of another installed Central admin and resorted in SQL with the same name of previous Admin database. Then tried to attach it. Error what I faced is "Operation is not valid due to the current state of the object."

Finally the solution worked – Simple Solution 


• Services.msc – Stopped Sql service.

• All Programs -> Microsoft Office Server-> SharePoint Products and Technologies Configuration Wizard. Run it. Select the options -> detach and click ok.

• Start the SQL Service.

• Rename the previous Central Admin site in IIS because newly created site will be named as SharePoint Central Administration v3

• Rename the previous SharePoint_Config data base to SharePoint_Config_old.

• Run the wizard again.

• It will work.