On SolidQ blogs we have talked sometimes about working with XSLT in Sharepoint 2010, manipulating XML structures and the combination of both technologies to generate HTML. It is very important to learn how to work with these tools in Sharepoint 2010, since many Web Parts by default allow the personalization combining these technologies. This is the case of Content Query Web Part, Data Form Web Part and so on, that as we know, they are suitable for some tasks but not such as good for another ones. Could it be possible to generate a Web Part to carry out a very specific task that we need, and make it capable of personalizing at our discretion using XSLT? The answer is yes, so let’s see how. Firstly, we are going to observe the list of ingredients:
SolidQ Filtered Lookup Columns for Cascading Dropdowns in SharePoint 2010 (works with more than 20 items scenario)
If you have in your SharePoint 2010 list (or library) a Column Validation:
XSLT and SharePoint 2010. Obtaining all visible list fields in Content Query WebPart or XSLTListViewWebPart
When we are editing XSLT for Content Query Web Part, XSLTListViewWebPart or any other WebPart with configurable XSLT, you can obtain all list fields and their values with following code:
This week I have been working on the creation of a custom control of ASP.NET, its main function is to generate the popular “social buttons” of some social networks (Facebook, Twitter and LinkedIn until now), which allows sharing amongst those links in social networks to any article, web, etc.
How to Check if Current User Roles or Permissions are higher or equal than other RoleDefinition (SharePoint 2010)
In SharePoint we have five OOB roles or permissions levels: Limited Access, Read, Contribute, Design and Full Control. If we want to check if current user have one permission level or higher, we can use this function: