So Now I will show how to achieve this. I will save a Content Editor Web Part which is showing the data from a text file which is available in one document liberary. Here are the steps for doing this:
1. Go to SharePoint Designer 2010 and inser a Content Editor Web Part.
2. Select the Web Part and go to Web Part Tools and Format. There we have two options to Save the Web Part.
3. This will prompt a dialog box where we can specify the name for this Web Part and the description. Also we can set the propery for this Web Part.
5. Once this is done we are ready to use this saved Content Editort Web Part into any page. This Saved Web part will be available under miscellaneous Category.
6. Once we place this web part it will show the text from the text file it was pointing to. If we change the content of the text file automatically Web Part content will also be refreshed.
This concepts is very helpful in the scenario where we want to create our own data view web parts based on some list or document library data. We can create a Web Part like this and save that web part. While doing this, there is yet another prompt saying:
If we select No, the Web Part will show data from the list at the path validation, relative to the site in which it is used. So we can use this web part in any site having a list called Validation. With this this saved Data View Web Part can be resued in multiple environments.
No comments:
Post a Comment