Tuesday, December 16, 2008

Workarounds for bugs on SharePoint (V3) Blog

Hi Friends,
I have come across two problems on a WSS V3 blog site. They are,

  1. You have more than 10 posts on a blog that belong to one category, when you filter the posts for that category, the paging on the category.aspx doesnotwork when you use next and prev buttons, it shows you a message "There are no posts in this category.".

  2. You change the default view of a category that filters the blog posts on a Microsoft Windows SharePoint Services 3.0 blog site. When you visit the SharePoint Services 3.0 blog site, and then you click the link for the category that you changed, the blog posts are not filtered correctly. Instead, all the blog posts are displayed.
Workarounds:
Problem 1.
here goes the little workaround that i scripted for the paging related bug that one can encounter on category.aspx page.
Drag and add a content editor webpart to the category.aspx page on your blog,
open the script editor from the content editor webpart's tool pane,
simply copy the below script on to the script editor save it, Now you will find your paging working as expected.



<script language ="javascript" type = "text/javascript" >


function changeLink(){


JSRequest.EnsureSetup();


var Category = JSRequest.QueryString["Name"];


var parent;


var child;


for (var counter =0; counter < 100; counter++){


var elementId = 'bottomPagingCellWPQ'+ counter;


if (document.getElementById(elementId)){


parent = document.getElementById(elementId);


child = parent.childNodes[0].childNodes[0].childNodes[0];


if (child.childNodes.length > 0){


for (var y = 0; y < child.childNodes.length; y++ ){


if(child.childNodes[y].childNodes){


if(child.childNodes[y].childNodes[0].tagName){


theAnchorTag = child.childNodes[y].childNodes[0];


for( var x = 0; x < theAnchorTag.attributes.length; x++ ){


if( theAnchorTag.attributes[x].nodeName.toLowerCase() == 'onclick' ){


var str = theAnchorTag.attributes[x].nodeValue;


str = str.replace( '?', '?Name=' + Category + '\\u0026');


theAnchorTag.attributes[x].nodeValue = str;


onclk = theAnchorTag.attributes[x].nodeValue;


theAnchorTag.onclick = new Function(onclk);


}


}


}


}


}


}


break;


}


}


 


}


addLoadEvent(changeLink);


function addLoadEvent(func) {


var oldonload = window.onload;


if (typeof window.onload != 'function') {


window.onload = func;


}


else{


window.onload = function(){


if (oldonload) {oldonload();}


func();}


}


}


</script>





Problem 2:
Please find the workaround for this problem on Microsoft's support site @ http://support.microsoft.com/kb/939310

Friday, February 8, 2008

Premachandu Vutla (SharePoint Professional)

Hi,

Let me introduce myself to you, I am Premachandu Vutla. I am working with SharePoint(My bred and butter :) or my love) since 2006. I love SharePoint Technology so much because of its framework and its extensibility.

Let me mention about my tech background, I am not a dotnet expert, I am not a graduate from Computer science.

I did my B-Tech in Chemical Engineering from the prestigious Institution Pondicherry Engineering College, India. Since we have strong IT boom in India by the time i passed out from campus, we had so many companies recruiting us as freshers to the IT industry from our college. Through the same channel i too got into an IT company named PATNI computer systems in a campus recruitment drive conducted in 2004 at our college.

When I was out from college I had no knowledge about IT industry or IT technology. All that I have learnt on programming is through my on the job work Experience since 2005 sep 19, the very first day I joined PATNI. I was initially trained for three long months(Prior to this one month home based training from PATNI for all the candidates hired in the Campus Interviews).

After the four long months of training I was placed in SharePoint team (PATNI internal team) and it’s a big turning point in my carrier (Where I met my bred and butter).

From the day one when I started hunting for the IT materials or blogs to accomplish my daily tasks, I had a thought to publish my thoughts and work. Finally today is the day I feel much comfortable about the Technology I am working with and I wish publishing all my exploration in to it.

Today the technology is huge and its evolving every now and then into enarmous forms due to you and me who always try to do some thing different. This leads every one in the Industry to learn through out their life to stay on par with latest technological developments and innovations.

Let me tell a little about my personal life-
First and foremost, I believe in GOD and I love him.
There is a long list of heart touching persons in my life in all that states where I lived in India and I love all of them. To mention a few of them who are always with me and driving me with good spirits let me start this way ---
I love my Family (Parents, Grand parents and my only elder brother “Ravibabu Vutla”. I miss my grand pa so much.), G. ChandraSekhar Sir(Guru in my life) and my friends (Too good guys who always support me and they are too many. I feel that I am too much blessed by God to get that many good friends).


I like to be identified as a SharePoint Professional. Thats the reason i named the post that way.


Regards,
Premchand.