.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Sandeep Singh

Home >> Articles >> SharePoint >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Displaying user field in site definition

Posted By:Dhiraj Ranka       Posted Date: May 06, 2011    Points: 200    Category: SharePoint    URL: http://www.dotnetspark.com  

Displaying user field in site definition


This is one of the most interesting learning point for me to add a user field in site definition. Because while doing so I understood a lot of things about site definition and how it works. Okay, the main point is to add user field in site definition, so let's get started. For this we have to create a site definition and then a list definition and finally a user field.  

1. Creating empty solution

Project creation

2. Adding site definition project

Site Definition project creation

Solution explorer
Solution explorer

3. Adding list definition

Adding list definition

4. List Definition settings

List Definition settings

5. Changing the list definition (elements.xml file)

6. Changing the list schema in schema.xml file



7. Amending the one.xml (site schema)

8. Getting the feature ID

Feature ID

9. Deploy the project

10. Go to central administration and click on "Create site collections"

Central administration

11. Specify site collection details

Creating site collection

12. Site created successfully

Site created successfully

13. Open the site

Site default page

14. Click on "All Site Content" and click on the List name that we have just created

15. Then click on "Add new item" and you can see the user field that we have created

Adding data

16. Displaying added data
Displaying data

That's it, and we are done with it. Hope this will help you guys.

 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend