Skip to main content

SharePoint Integration Framework (1.1.0 rev. 130613) for Sitecore - Use Cases

If you were wondering how a non-bi-directional SPIF works in different use cases, you may want to look at the table below based from my testing.



# Sharepoint Changes Supported? SPIF Notes
1 Folder created Y Folder created Do not name the folder or file with special chars like "-"
2 Folder deleted Y Integration folder is deleted This deletes any items in the folder
3 Folder renamed N Rename not supported Refrain from renaming folders in Sharepoint to avoid confusion - it wont get renamed in SC
Folder is still connected and any items added or updated under it gets syncd
  3.1 Upload File  Y File is pulled into SC similar to #5 Still syncs even though folder name is different
4 Folder Moved? N Folder is deleted Gets recreated as a new folder in the target location and any items under it
5 File uploaded Y File is pulled to SC
5.1 File updated Y Updated file is pulled into SC SP Overwrite\\keeps its GUID and refs
6 File deleted Y File deleted in SC
7 File renamed N Rename not supported File is still in sync, eventhough the name is different 
8 File moved? N File is deleted in original location File is recreated in the target as a new media item
Sitecore Changes SPIF Notes
1 SP Integration Item Clicked Checks with SP Doc Lib for any updates Statistics is updated with user who last triggered a check
2 SP Integration Folder Clicked Checks with SP Doc Lib for any updates Statistics is updated with user who last triggered a check
3 SP Integration File Clicked Checks with SP Doc Lib for any updates Statistics is updated with user who last triggered a check
4 SP Integration Item Manually Edited (re-Attach) Just gets overwritten on the next run
5 SP Integration Folder Deleted Gets recreated in the next run (with new GUIDs)
6 SP Integration Folder Renamed Still gets sync'd Looks like the integration is still valid as long as the original item exists in SP
7 SP Integration Folder Moved Gets deleted (not recycled)
The original location where the folder once lived is recreated though
The same main parent integration tree
8 SP Integration File Renamed Still gets sync'd Looks like the integration is still valid as long as the original item exists in SP
9 SP Integration File Deleted media item gets recreated (with a new GUID) on next run
Note: SPIF is NOT bi-directional

Comments

Popular posts from this blog

Add Export to File Functionality in Sitecore's Search Options

One of our business users was requesting for a listing of items they've already added and have it available in a format that can be opened in a spreadsheet (Excel). My initial thought was to create a blank aspx page and write all the logic to get the data in the code-behind, run it and save the resulting file to a csv then I'm done.
But then it got me to think, it might be a better idea to have this functionality plugged in to Sitecore and made available for everyone to use.  Sitecore Bucket's Search Options fly-out seemed a good candidate for this feature (See image below). So doing some quick readings I got myself in to the "zone" and started implementing this quick and dirty PoC.

Just to explain what it actually does.

User will basically do a search, (Note that all search options require some filters or search keyword before any of the options can be used) clicks the Export to File, it pops up a dialog to confirm the action and executes, after which a browser-…

Rich Text Editor (RTE) Stripping Script tags

Ran across an issue today wherein one of our Content Editors was complaining that their page was not working, i.e. some page scripts where not firing.
Upon closer inspection, we found out that their content inside their RTE was missing.
We added them back but, it just kept getting stripped-off when we close the editor.
This did not happen to us before when we were using SC6.5, so this basically smells more like an upgrade issue.
I scanned all of the config changes (I kept a log) and found one curious setting:

<setting name="HtmlEditor.RemoveScripts" value="true" />

This setting was by default removing any embedded scripts inside the RTE.
Just turn it off in your CM and keep it on in your CD.

Implementing a Secure Media library in Sitecore

Our internal clients wanted us to secure some of their resources stored in the media library so that only authenticated and authorized extranet users are able to view or download them. Our current setup has the following components, I'll simply focus on the 3rd and 4th points:
Sharepoint Workflows on a Sharepoint 2007 Server. This serves as the working repository of the resource owners.Sitecore Sharepoint Integration Framework. This hooks up Sitecore with the designated document library in Sharepoint for all finalized files/documentsIntegration folder in the Media libraryLogin page to handle the authenticationCreate your login page. You have the option to create your sublayout for this (mostly to control the page contents etc.) or you can just quickly create one and put it in one of your folders in your solution. I normally use CodeFile directive in my pages as we found it easier to maintain this type of setup in the long run. There are plenty of samples of the login functionality …