CSS contents showing in settings page for site based on custom template

0 comments

At a customer we created a few custom site templates by configuring them and then saving them as template. When creating new sites based on this template, we had the strange issue that the contents of the Alternate CSS (AlternateCSSUrl) were included and showing in the header on layouts pages in the sites.
It appears that the AlternateCSSUrl is also set on the AlternateHeader property of the SPWeb object.

This post on the SharePoint 2010 forums also mentions this issue.

You can off course use powershell to get rid of this problem:

$site = Get-SPSite "http://sitecollectionurl"

$web = $site.OpenWeb("/weburl")

$web.AlternateHeader = ""

$web.Update()

Update:
The post on the forums got answered and according to that it has to do with the publishing feature that was activated before saving the site as a template. However in my case that feature wasn’t activated, because we’re aware that such a scenario isn’t officially supported by Microsoft.

Tagged , | Leave a comment

SharePoint 2010 Search: Property Restriction in Keyword Queries

0 comments

The new version of SharePoint offers more capabilities in the keyword syntax to enhance the search experience.
While in the previous version you had to resort to FullText SQL queries, a lot of things can now be accomplished with keyword syntax.

For instance if you would like to filter on a date, you could use the following query:

LastModifiedTime>=01/06/2010

The actual format of the date depends on your regional settings (I’m using Dutch (nl-NL) in this case).

To search within a range of dates you can use the following query syntax:

LastModifiedTime:28/06/2010..30/06/2010

To exclude items you could use the following syntax:

LastModifiedTime<>28/06/2010

More info from MSDN about keyword syntax kan be found here: http://msdn.microsoft.com/en-us/library/ee558911.aspx

Tagged , , , | Leave a comment

Issues with SharePoint Designer 64 bit

0 comments

When you’ve got Office 2010 64-bit installed you can only install the 64-bit version of SharePoint Designer.

Sadly this version has some integration issues. Main ones I’ve noticed is not being able to use the “Edit in SharePoint designer” link in the context menu and not being able to edit page layouts in SharePoint Designer.

64-bit Office also has some integration issues. So unless you need 64 bit for working with really large Excel Sheets, I would stick with 32-bit for now.

Tagged , , | Leave a comment

New languages available for Soccerino

0 comments

Soccerino is now available in more languages besides English:

-Dutch
-German
-Portugues
-Serbian
-Polish

If you would like to translate it into your own language, you’re very welcome to. You can download the language source file from: http://www.babelzilla.org/forum/index.php?showtopic=6237

Tagged | Leave a comment

Tam Tam Lauches Soccerino – World Cup 2010 Pool for SharePoint AND Facebook

7 comments

At previous footbal tournaments we had a lot of success with our SharePoint football pool webparts.

This year we launch Soccerino, available on SharePoint (2007 / 2010) AND Facebook. More information on soccerino.com

UPDATE:
We have a resource file available if you want to the application in you own language. Just download the zip-file below with the javascript file with translations, update the text and send the file to us (peterge _at_ tamtam _dot_ nl). At the moment we have the following languages already covered:

  • English (duh)
  • Dutch
  • German
  • Portugese

en.zip

Tagged | 7 Comments

New sample project for SP2010 Word Automation: UI

2 comments

I’ve just published a second sample solution for the SP2010 Word Automation project on CodePlex. This solution will add a button to the Ribbon when browsing document libraries:

Ribbon button

When the button is clicked a modal Dialog is shown that will allow the user to specify the options used for conversion:

Modal Dialog

When the Ok button is clicked the selected files will be added to a conversion job and the job will be started.

The dialog is launched by some javascript that is specified in the CommandUIHandler section of the ribbon button definition.

<commandUIHandler
Command="SP2010WA_Convert_Button"
CommandAction="javascript:function convertDocument() {
Sys.loadScripts(['/_layouts/SP2010WordAutomation.UI/SP2010WordAutomation.UI.js'], function() {
SP2010WordAutomation.UI.ConvertDocument();
});
}
convertDocument();"
EnabledScript="javascript:function oneOrMoreEnable() {
var items = SP.ListOperation.Selection.getSelectedItems();
var ci = CountDictionary(items);
return (ci > 0);
}
oneOrMoreEnable();" />

I’ve decided to use the beta version of the ASP.Net 4.0 AJAX client library to load the required scriptfile when it is actually needed. While this is not completely necessary in this case, because the amount of script in there is quite little, it could provide a speedboost because the browser won’t load and interpret the script when the page loads.

The definition also contains some script to enable the button only when one or more files are selected.

The following lists the script that is loaded and called when the button is clicked:

Type.registerNamespace("SP2010WordAutomation.UI");

SP2010WordAutomation.UI.ConvertDocument = function () {
var items = SP.ListOperation.Selection.getSelectedItems();
var selectedItems = '';
var k;

for (k in items) {
selectedItems += '|' + items[k].id;
}

var options = {
url: '/_layouts/SP2010WordAutomation.UI/ConvertDocument.aspx?items=' + selectedItems + '&source=' + SP.ListOperation.Selection.getSelectedList(),
title: 'Convert Documents',
allowMaximize: false,
showClose: true,
width: 600,
height: 480,
dialogReturnValueCallback: SP2010WordAutomation.UI.ConvertCallback
};

SP.UI.ModalDialog.showModalDialog(options);
}

SP2010WordAutomation.UI.ConvertCallback = function(result, target) {
SP.UI.Notify.addNotification(target, false);

SP.UI.ModalDialog.RefreshPage(result);
}

First I use the Type.registerNamespace method that is provided by the standard SharePoint scriptlibrary to make sure I don’t override other methods with the same names.

In the ConvertDocument function we then launch a SharePoint dialog that will load an ApplicationPage which provides the user with the options they can choose. The ConvertCallback function which is called when the dialog passes a result will add a notification message to the main screen.

To see how this mechanism can be used, please refer to this post by Vesa Juvonen

Tagged , , , | 2 Comments

2 new worflow activities added to SP2010 Word Automation

2 comments

I’ve added two new worfklow activities, Convert Folder and Convert Library, to the SP2010 Word Automation project on CodePlex.

Because you can’t associate workflows created with SharePoint designer to libraries or folders, these actions won’t use the current item from the context, so you need to specify the input and output library or folder by url. To use the activities you can run the workflow on a other item or document. The activities locate the libraries or folders relative to the current web, so you don’t have to specify a full url:

Convert Library Activity

Convert Folder Activity

You can download the latest release and source code from the CodePlex project site

Tagged , , , | 2 Comments

SP2010 Installation – Error creating configuration database

0 comments

When I tried to install the new RC of SharePoint 2010 on my machine, I got an “Error creating configuration database” message. When I went to the installation log I found a “User cannot be found” error. The cause was that the configuration wizard could not find the AD controller, which was easily solved by opening a VPN connection as I was working from home.

Tagged , | Leave a comment