vrijdag 11 juli 2014

How to hide elements in modal dialog in SharePoint 2013

SharePoint 2013 allows us to hide site elements in dialogs just as we could in SharePoint 2010. Just be aware that the class we add to such elements we wish to hide has changed.
Hide Element in Dialog - Error
The Problem:
In a custom branding project you add a new container element, such as a new header, navigation block or footer to your System (default) Master Page. This element then appears in dialogs even through we do not want it to.
Solution:
In SharePoint 2010 we would add the following class to an HTML block we want hidden in dialogs.
1
s4-notdlg
such as
1
2
3
<div id="custom-header" class="s4-notdlg">
<!—the rest of the header-->
</div>
In SharePoint 2013 we use the same method, just a different class, ms-dialogHidden.
1
2
3
<div id="custom-header" class="ms-dialogHidden">
<!—the rest of the header-->
</div>
Hide Element in Dialog - SPD Code
You can add the ms-dialogHidden class to any HTML element in your Master Pages, Page Layouts, or even content referenced by Master Pages in Webparts let’s say that you want hidden in a dialog.
Hide Element in Dialog - Good
Thanks to Eric Overfield

donderdag 25 juli 2013

SharePoint Inventory

People who are busy with SharePoint migrations know that it is useful to first perform an analysis of the content. There are some tools to help you but most of them aren’t free. At this moment I’m busy with creating an inventory of a SharePoint 2007 and I’ve automated it in a console application. The console application can also be used on a SharePoint 2010 version.

My console application “SharePointContentInventory” generates a xml of al the sitecollections, sites, lists and workflows with their properties.

For business users is a xml not readable so I have also written a Windows Forms Application that generates a treeview of the xml. If you click on a treeviewnode the properties are shown in the right pane of the application.

maandag 17 juni 2013

SharePoint 2013: Show title row in searchcenter

I was asked to integrate the top navigation in the search master page of SharePoint 2013. After some searching on the internet I found this great blog post:


http://www.estruyf.be/blog/display-the-title-row-top-navigation-in-the-search-centers-of-sharepoint-2013/

When working with the new search centers in SharePoint 2013, the first thing that you will notice is that the title row is different compared with for example a standard Team Site. Standard SharePoint 2013 Title Row Standard SharePoint 2013 Title Row Search Center Heading - Title Row is Hidden Search Center Heading - Title Row is Hidden

SharePoint 2013 Branding tips

It’s time to take a deep dive into the SharePoint 2013 branding. My research on the internet stopped very quickly on the blog from Eric Overfield. After reading his blog I noticed some important branding tips:

  • s4-notdlg from SharePoint 2010 changed to ms-dialogHidden in SharePoint 2013:

In a custom branding project you add a new container element, such as a new header, navigation block or footer to your System (default) Master Page. This element then appears in dialogs even through we do not want it to.

Solution:

SharePoint 2013 template for Photoshop

Previously I announced the photoshop template for SharePoint 2010. Now I can also give you the photoshop template for SharePoint 2013. There is nothing easier than start with a template if you want to create a new branding for your SharePoint 2013.
You can download it here
Enjoy it! Glimlach

woensdag 24 april 2013

SharePoint 2010 Alerts

How to send daily alerts immediately in SharePoint 2010?
If you create new daily alert and want to see whether it will work or not it is not very convenient to wait 24 day until SharePoint will sent them next time. In this post I will show how to trigger summary alerts and send them when you need.
When you add a new daily alert on a list or something a new row is added to the SchedSubscriptions table into the SharePoint content database. The most important columns in this table are NotifyTime and NotifyTimeUNC. In these columns stores SharePoint the time when next time daily alert for particular list will be send.
Step 1: Get the id of the daily alert that you want to modify
SELECT * FROM SchedSubscriptions
Step 2: Copy the Id and execute the following SQL query:
declare @s datetime
declare @u datetime
set @s = CAST('2013-04-24 10:00:00.000' as datetime)
set @u = CAST('2013-04-24 07:00:00.000' as datetime)

update dbo.SchedSubscriptions
set NotifyTime = @s, NotifyTimeUTC = @u
where Id = '. . .'
Notice that the NotifyTimeUNC = NotifyTime minus 3 hours.
After that wait some time. Exact time of waiting depends on the Recurring Schedule of the Immediate Alert timerjob.

dinsdag 19 maart 2013

SharePoint 2010: Show lync presence in custom webpart

My customer asked for a contact details webpart with the feature if the contact is available on Lync or not. It isn’t difficult to get the contact details from a user profile in contrast to get the lync presence. I spend a few hours to get how it works in SharePoint 2010 and finally I found this blog post of Martin Kearn. With a little bit of fine tuning I rewrote the function to let it work with the UserProfile property instead of a SPFieldUserValueCollection.