SharePoint 2007 Master Page Inheritance

Problem: When Creating Sites within a Web Applications Site Collection the Master Page can be set to inerhit but new sites do not enherit from the master page as expected. This is due to a bug in Microsoft sharepoint and has been deemed as a low priority. You can read more information below. http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/46ae97fe-0dda-4122-a725-acacb687c74a/#page:2 Reproduce: Defined a new master page and set it as default for the main site. Any…

Add more than two levels to SharePoint navigation control

Problem: Sharepoint out of the box only allows you to create Menus with a single Sub Menu within the navigation bar. Menu – | -Sub Menu Solution: If you are looking for something like this. Menu – | -Sub Menu – | -Sub Menu 1. Open the master page in SharePoint Designer. 2. Locate the SharePoint:ASPMenu within TopNavContainer. Or simply click the nav bar within the page. 3. Locate the…

Publish MySite Master page changes

Assume you have to make changes to a Mysite default.aspx or default.master page. Assume then that you have to publish your changes to all my sites. There is not link within SharePoint to access the mysite structure for all site users. Use the link below to navigate to site pages store. http://mysite/_layouts/sitemanager.aspx

Use webpart settings in all webparts

Problem: When you create or modify a webpart for a page it is only available for that page. Assume you create a list on your site and want to share that list with other sites within the collection. Solution: 1. Select Edit Page 2. Select Edit within the Webpart and then select Export 3. Save the Webpart 4. Go to the top level of your site 5. Under Galleries select…

Customize SharePoint 2007 Search Look

Create a panel and store default Search within that panel Set Visible attribute to False so that the default search is hidden Add new Search Locate Core.css using in the Hive or use SharePoint Designer Controls the light blue border around the search box td.ms-sbcell{ padding:0px; padding-left:2px; white-space:nowrap; border:solid 0px #7f9db9; } Controls the Textbox size and text format within the search box .ms-sbplain{ font-family:Tahoma; font-size:11pt; border:none; } Controls the…

Updating MySite Master Pages and Design

After much head banging!! I have drawn the conclusion that MySites do not work like your typical SharePoint Portal Sites. Normally one would simply check out a page whether its was a master page or an ASPX page and modify it using sharepoint designer.   While this is okay in practice this hardly holds true when dealing with MySites. If you would like to make changes to your mysites post…

MOSS Open Document prompts for credentials

Problem: When attempting to open documents on our sharepoint portal we are being prompted for credentials. cancelling the prompt allows the document to open. Later if the user clicks on “Edit Document” from the menu above the credential prompt reappears. While being prompted for credentials you can either enter them 3 times and the dialog goes away OR the user can click cancel. Regardless of the users actons, after clicking…

Code Sample: VB.NET SMTP Mail function

1. Create a Visual Basic Class for your project by right clicking the project and select add.   2. Change the language to Visual Basic and select Class from the list of Installed Templates.   3. Name the class clsNotify. Add the code below to the class.(You can name it whatever you want really, but you’ll need to change Public Class definition in the code below. Your reference to class will also need to change.)…

Code Sample: TSQL, Size of tables in database

SELECT t.NAME AS TableName, p.rows AS RowCounts, SUM(a.total_pages) * 8 AS TotalSpaceKB, SUM(a.used_pages) * 8 AS UsedSpaceKB, (SUM(a.total_pages) – SUM(a.used_pages)) * 8 AS UnusedSpaceKB FROM sys.tables t INNER JOIN sys.indexes i ON t.OBJECT_ID = i.object_id INNER JOIN sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id INNER JOIN sys.allocation_units a ON p.partition_id = a.container_id WHERE t.NAME NOT LIKE ‘dt%’ AND t.is_ms_shipped = 0 AND i.OBJECT_ID > 255 GROUP BY…