Sharepoint 2010 Character problem in Category Titles in Blog Site for different languages

Hello Everyone,

If you faced a character problem in Category Titles in Blog Site Template for different language , may be this article helps you. In my envoriment i am using Turkish Language Pack (1055) .
the repro is not tested on other languages but it  should be occurs for other languages which is contains specific characters .

I think this  problem is a minor bug .You can reproduce it easily .

Here the Repro steps.
1) Install or find SPS2010 + SP1Dec2011 CU + TR(1055) language pack installed machine.
2) Create a site collection in Turkish
3) Create a “Web Günlüğü”  (Blog Site Instance)
4) Add some categories that contains Turkish Characters.
5) Click one of this category titles in left navigation  and open category page

I have created a category named : “Yağlı Boya Seçmeleri”  You can see the problem bellowed screenshot.

The problem is when rendering left panel Categories web part (XSTLListView) not encode url of Link object correctly. I have tested with changing the link in browser’s address bar with correct encoding the titiles shown correctly on category page.

So There  is a workaround for fixing this issue with using Sharepoint Designer 2010 .

1) Open defauılt aspx and (any needed page) in Sharepoint Designer.

2) Select one of the link  in Categories  XsltListViewWebpart


3) Click the HyperLinkOptions button.

4) Change the default value of
{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogcategories_Folder}/Category.aspx?CategoryId={$thisNode/@ID}&Name={$CategoryTitle} as
{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogcategories_Folder}/Category.aspx?CategoryId={$thisNode/@ID}&Name={$thisNode/@Title}

5) Repeat same options for all needed pages.

And Open and Check  again your blog page :

(For who know Turkish the word of “Şeçme” have a little typo correct word is “Seçme” . Dont worry about it . i am not get all screenshot again for fixing this 🙂

See you next article.

MOSS 2007 – Welcome name is not updated problem.

This is a very well know problem.  Even if you run full profile import on sharepoint 2007 the user’s which is name property has changed in AD , not updated on your site welcome name.
First of all you have to detect that the problem has encounter between Sharepoint and AD connection issues. If you see the updates in Profile Store in SSP correctly but not affecting welcome name this article may help you. If it is not updated correctly in Profile Store , it is another problem that out of scope for this article.

So what you can do :

Here is the command for force the sync operations.

stsadm -o sync -ignoreisactive 1
stsadm -o sync -deleteolddatabases 0
stsadm -o sync -synctiming m:5
stsadm -o sync -sweeptiming m:5
stsadm -o sync

Wait min 5 minutes. and check.

You can get more information about stsadm -o sync operations.
http://technet.microsoft.com/en-us/library/cc263196(office.12).aspx
If this is not solve your problem you can use fallowing tool for a workaround;
http://blog.bugrapostaci.com/2012/01/22/sharepoint-tools-wsscontentdbsync-v1-0-command-line-tool/

 

c# FileLock – If you need to lock a file for temporary purpose.

Hi Everyone ,

FileLock is vey simple tool that locking defined file in given path. This tool can be used acting as AV programs , troublesoothing or reproduce error when a file is locked scenarios .
You can download binaries or source from :

http://spstools.codeplex.com/releases/view/80978

FileLock.cs
  1. class Program
  2.  {
  3.      static void Main(string[] args)
  4.      {
  5.          if (args.Length != 1)
  6.          {
  7.              Console.WriteLine(“FileLock v1.0”);
  8.              Console.WriteLine(“Usage: FileLock <path>”);
  9.          }
  10.          else
  11.          {
  12.              Console.WriteLine(args[0] + ” is Locked” + Environment.NewLine + “Press any key to relase!”);
  13.              using (FileStream fs = new FileStream(args[0], FileMode.Open, FileAccess.Write, FileShare.Write))
  14.              {
  15.                  fs.Lock(0, fs.Length);
  16.                  Console.ReadKey();
  17.                  fs.Unlock(0, fs.Length);
  18.              }
  19.          }
  20.      }
  21.  }

Sharepoint Tools – WssDownload v1.0 (Command Line Tool)

Hi Everyone,

WssDownload  tool has been relasead. You can use this tool for download all documents in a Document Library as preventing folder structure to your server harddrive.
If you wonder why have i developed this tool , consider a scenario that publishing feature is been corrupted or not activated and windows explorer view not running and you have hundreds of files in your library, how could you download them manuelly ? so i think it is clear that you can use it .

For Download.
http://spstools.codeplex.com/releases/view/80908

WssDownload x86 can be used 32 bit Sharepoint 2007 systems.
WssDownload x64 can be used both Moss2007 x64 and Sharepoint 2010 systems.

* This is a command tool that using sharepoint object model and should be run in sharepoint installed server

Usage:
WssDownload <site url> <library name> <download path>

Example:
WssDownload http://blog.bugrapostaci.com Presentations c:\\downloads

🙂

Sharepoint Top 10 Codeplex project for Developers

Hi Everyone,

Here is my top 10 sharepoint codeplex project for Developers :

1)  Sharepoint 2010 Fluent Ribbon Api:
Fluent API for Ribbon creation in SharePoint 2010. Create and manage your ribbon without unpredictable xml or typo-prone “magic strings”
http://spribbon.codeplex.com/

2)  jQuery Library for SharePoint Web Services
This is a jQuery library which abstracts SharePoint’s Web Services and makes them easier to use. It also includes functions which use the various Web Service operations to provide more useful (and cool) capabilities. It works entirely client side and requires no server install.
http://spservices.codeplex.com/

3) SharePoint Developer Tools for Visual Studio 2010
this project extends the Visual Studio 2010 SharePoint Project system with advanced templates and tools. Using these extensions you will be able to find relevant information easily without leaving Visual Studio. You will have an easier time developing SharePoint components and you will have broader capabilities to deploy them on your test environment.
http://sharepointdevtools.codeplex.com/

4) SP List Kit for SharePoint 2010
SP List Kit for SharePoint 2010 is rich feature set to enhance usability of all SharePoint Lists. It supports SharePoint 2010. All of SP List Kit support Sandboxed Solutions and SharePoint Online for Office 365
http://splistkit.codeplex.com/

5) Sharepoint Form Generator for (2007)
The SharePoint Form Generator
allow all users to add entries to the list, and can be used to generate rich UI forms with field validation to be embed in your pages. The Web Part supports all types of columns used in SharePoint lists.
http://sfg.codeplex.com/

6)  Sharepoint Search Service Tool
The SharePoint Search Service Tool is a rich web service client that allows a developer to explore the scopes and managed properties of a given SharePoint Search SSP, build queries in either Keyword or SQL Syntax, submit those queries and examine the raw web service results. This tool can be useful in troubleshooting and verifying the behavior and configuration of a SharePoint environment.
http://sharepointsearchserv.codeplex.com/

7) Show or Hide SharePoint 2010 ribbon based on SharePoint Groups
This SharePoint 2010 solution allow site administrator to define who can or cannot see the SharePoint ribbon.
http://spribbonvisibility.codeplex.com/

8) Useful Sharepoint Designer Custom Workflow Activities
This project takes aim at making it easier to create advanced workflows using Sharepoint Designer by providing a set of custom workflow activities
Send Email with HTTP File attachment ,Send Email with List Item attachments ,Start Another Workflow ,Grant Permission on Item ,Delete List Item Permission Assigment ,Reset List Permissions Inheritance,Is User a member of a SharePoint group ,Is Role assigned to User ,Lookup user info
http://spdactivities.codeplex.com/ 

9) My Masters Sample Project for Sharepoint 2010
The feature stapling example project which is provide to deploy custom master page to personel sites on Sharepoint 2010
The solution is anwering fallowing questions :
* How to deploy a custom master page ?
* How to customize a masterpage ?
* How to attach custom master page to personal sites using stapling feature ?
* How to set wellcome page programmatically ?
* How to add document library as a web part to a page ?
http://mymasters.codeplex.com/

10) SharePoint 2010 Search Results Customization 
By using this XSLT code, You can customize the SharePoint 2010 Search results from regular format to Tabular format.
http://sharepoint2010search.codeplex.com/

MOSS2007 + SP2 (Turkish) Calculated Column not accepting METİN formula

Hi Everyone,

if you try suggested formula  for Sharepoint Calculated Column (MOSS2007 with Turkish Language Pack)  on fallowing official article http://office.microsoft.com/tr-tr/sharepoint-foundation-help/HA010379915.aspx and the help document of wss like
=”Ekstre tarihi: “&METİN([Sütun2], “gg-aa-yyyy”)

is not working  and getting error of “Söz dizimi hatası”

Cause :Should be a documentation error .

The formula should be “METNEÇEVİR” instead of “METİN” and the splitter should be “;” instead of “,”

Here is the correct version of formula:
=”Ekstre tarihi: “&METNEÇEVİR([Sütun2];”gg-aa-yyyy”)

You may getting some errors for other formulas please read fallowing warning and always keep in mind:

“All example formulas in this topic use commas “,” as the parameter delimiter character. In some countries, the comma is reserved for use as the decimal mark. In such countries, users creating a calculated field must use semi-colons “;” as the delimiter character. Regardless of which character is used when the field is created, the formula works on lists in SharePoint websites anywhere in the world. SharePoint automatically changes the delimiter character to the one that is appropriate for the language/culture of the current page. For example, suppose the following formula is created on a website whose culture setting is fr-fr (France): =IF(Number1>Number2;5;10). If the website’s culture is then changed to en-us (United States), the formula changes automatically to: =IF(Number1>Number2,5,10).”
http://msdn.microsoft.com/en-us/library/bb862071.aspx