Thursday, March 20, 2008

I need to webpart

You may have noticed that you cant have 2 working "i need to webparts" on the same page. In order to solve this problem i edited the xslt and modified the javascript function name that was called to my own custom function name. I then added my own function to the master page to handle multiple webparts. If storing in the masterpage is not an option you could make a new/edit a js file in the 12 hive or add the script inline in the xslt.(however the script will be printed for every webpart that appears on the page. This does not cause an issue as the browser will use the last function defined). In order to make the changes quickly to all the webparts and to have more control in the future i stored the xslt in a top level document library then added the url to the xsl link property in the webparts i wanted to use this new script. i also exported and saved the new "i need to webpart"(with xsl link) to the webpart gallery for reuse later on.

Picture library with thumbnail fails to covert to xslt data view

Today i had an issue hen i tried to convert a picture library view to an xslt view to add some custom actions. As soon as i converted the webpart i received an error: "Invalid XSLT stylesheet Error: invalid character". Once i opened the xslt i found that the thumbnail template had not been exported correctly and had malformed xml. Inorder to resolve the issue i simply replaced the thumbnail template with the following....

Friday, February 15, 2008

Conditional Format Javascript MOSS

I have been able to test the javascript from an earlier post in MOSS and am happy to tell you it still works. I was able to use it to simulate traffic light kpi in a list. depending on the field value I loaded different images from the images folder.