Skip to main content

Posts

Showing posts from September, 2010

How to create a MOSS 2007 web part that has an image and a link by using picture library

Every team needs to track news and events. Basically news and events are presented in a portal by a small image and a short description. If a user likes to read a whole article she or he can click on a description and she or he will be redirected to an original source. Administrator or a certain user has rights to update news and events information. In MOSS 2007, administrator or user can create a Link list and add an Image column to the list. Image URL is presented in this Image column. Using this list, administrator or user can create a web part with an image and a link to the original source. We have an image somewhere, for example in a picture library, and a link in the Link list. Every time when a link is created it must be mapped to a picture in the picture library. In this scenario we work with two libraries. It is obvious, that it is more productive to work with just one library and without finding a URL for every image Using the code This article gives step-by-step i

Reusable Content & HTML Snippets

So your client wants to be able to insert more than just formatted text and images in his Publishing HTML field control? So he wants to insert those fancy looking boxes that your graphics designer made? Ah, but they are variable height and require several background images so we are talking about inserting a bit of “complex” html. How can we provide a user friendly interface with as little customisation as possible? I personally like the out-of-the-box Reusable Content functionality provided by MOSS 2007. I will demonstrate how it can be used to solve our problem. Let’s take the following box for example: Because of the vertical scaling requirements, the box needs to be split into three logical sections: header, content, footer. The html for the box shown is as follows: < div class ="box" > < div class ="box-header" > This is the header </ div > < div class ="box-content" > Lorem ipsum ... </ div >

sharepoint reusable content

I can pretty much say I know my way around SharePoint… But every once in a while you learn about a feature that you never knew was there… Most of the time its those annoying bugs that we call “features” but are true head against the wall things that make you go hmmmm… But this time its a good thing… I was tasked with finding a way to create a header and footer for a publishing site. This header and footer would be consistent across all pages within the content area of the site. My First thought was ok I need a custom page layout, but this would not work since it needs to be easily updated via the SharePoint Interface. So after some investigation I found out that SharePoint has a built in feature called “Reusable Content” Basically all you need to do is simply edit the page of your publishing site and click on a content editor control. If you look at the image below there is a icon next to the image icon. The icon is not very obvious hence the reason why I never noticed

sharepoint 2010 customization

In share point 2010 the main master page for any web application is v4.master. and the other two master pages (night & day.master, minimal.master will work same as the out of box edit page option). but before make some changes in v4.master we have to make a copy of it and then make changes so that if any thing goes wrong we have a back up. But the main question is about the CSS file. actually the CSS file from 14 hive(14/templates/layouts/1033/styles/theamable/corev4.css) is the only file for css changes. what is we have more than one web application and if we want to make some changes in all the web applications??????????????? I have to do some research on this and post it back.

To see the full error messages on a SharePoint site

If you cannot debug problems on the site as you can't see the full error messages. Go to web.config file for the Sitecollection and replace the following entries: under <system.web>: <customErrors mode='On' /> set it to <customErrors mode='Off' /> and add the following line: <trace enabled='true' pageOutput='true'/> under <SharePoint>: <SafeMode ... CallStack='false' ... > set to <SafeMode ... CallStack='true' ... > and changes in : <compilation batch='false' debug='false'> change it to <compilation batch='true' debug='true'> Finally iisreset.   Now you can see all the errors on a sharepoint site.

Saving InfoPath Form to SQL Server

Microsoft SQL Server 2005 introduced a new data type, the XML data type. Now you can associate an XML schema with XML table columns to force them to adhere to constraints defined within the specified schema. Such XML table columns are ideal to save InfoPath forms in, since InfoPath forms are based on XML schemas and have XML data as output. In this article we will set up a database table that has an XML column associated with the XML schema of an InfoPath form. We will then use an ASP.NET page to submit and save InfoPath forms to the database table. We will also discuss common challenges you may encounter when trying to set up such a solution. This article assumes that you have experience developing InfoPath forms, working with SQL Server and Internet Information Server, and that you are familiar with C# and ASP.NET. Software requirements • Microsoft Office InfoPath 2003 SP2 • Microsoft SQL Server 2005 • Microsoft Visual Studio .NET 2005 • Microsoft Visual C# • Internet

WSS 3.0 Best practices

Methods for Managing Site Templates • Share templates across Site Collections as an .stp file (custom template). • Import the .stp file into other site collection by adding the .stp file to the site template gallery. • You can get additional templates from the Microsoft web site or other third parties. • SharePoint Designer imports and exports packages (.cab files) that contain site templates. • Exporting copies web parts, lists, and documents. The Process of Installing Web Parts • Custom Web part packages exported to other sites as cabinet, or .cab, files. • Use the command line tool stsadm.exe to install Web parts from a Web part package on one or more virtual servers. • stsadm.exe keeps a copy of the Web part package in the configuration database. • Install web parts in \BIN. The assembly is available only to the web app. When you install Web parts on the BIN directory, an assembly is available only to the Web application. • To use stsadm.exe to install a Web p

SharePoint Interview Qustions & Answers

What is Microsoft Windows SharePoint Services? How is it related to Microsoft Office SharePoint Server 2007? Windows SharePoint Services is the solution that enables you to create Web sites for information sharing and document collaboration. Windows SharePoint Services -- a key piece of the information worker infrastructure delivered in Microsoft Windows Server 2003ice system and other desktop applications, and it serves as a platform for application development. Office SharePoint Server 2007 builds on top of Windows SharePoint Services 3.0 to provide additional capabilities including collaboration, portal, search, enterprise content management, business process and forms, and business intelligence. [ edit ] What is Microsoft SharePoint Portal Server? SharePoint Portal Server is a portal server that connects people, teams, and knowledge across business processes. SharePoint Portal Server integrates information from various systems into one secure solution through single