The Problem / Example : Need to put the “alt” attribute in the HTML “img” element from a content type field “Title” in a custom page layout and the content type fields represented as a SharePoint controls like that
You can do that simply by CSS/ JQuery :
1-Hide the SharePoint control that represent the field value using CSS and give the span container an ID “Ex: spanTitle” :
2-Write the HTML “img” element with attribute “alt” empty and give it an id “Ex:exampleImage” :
3-Write these lines of JQuery that will fetch the value from the hidden span and put it to the “alt” attrbuite in the “img” element :
I Written this script to bulk delete old completed workflow tasks with related history items by specify the date that script will stop delete until it.
The script were treated to deal with a huge number of data.
Click here to download The script
Click here to download from TechNet Gallery
1. Read the Instructions in the top of the file to set the script parameters
Script Instructions part
Table of list template IDs
Programming over SharePoint XML files needs List Template ID in many cases “List definitions xml , site deifnations xml , event receivers xml ,etc..) , here is a table for list template IDs
When you create a new SharePoint event receiver from Visual Studio the Visual Studio asks you “What item should be the event source” – ” see image below”
For example if you choose the list template “Survey” that means your event receiver will applied in all lists from the type survey , but in the real work you need to specify a list instance which the event receiver will apply to it .
We will describe it by a full example “the full code in the end of the post for copy”
In this example we will create 2 classes , the “Task” class which has the task properties and the “TasksGroupedItem” which has 3 properties:
-Task day : it will contain the task day that we will group by
-List<Task> : it will contain list of tasks per Task Day
Then we will create a function that takes List<Task> and return List<TasksGroupedItem> , here is the code
Suppose yo have this case
1-Important document uploaded to a document library in SharePoint site.
2-You sent the document URL to thousands of your customers
3-For organizing reason the document is moved inside a folder in the document library or the document library itself is moved to other sub site.
4-The document link is failed to open by your thousands customers !
Also many problems as the above one another example you need to gave users a Shorten URL for a specific page in SharePoint.