Thanks to http://blogs.msdn.com/sharepoint/archive/2007/03/02/be-wary-when-removing-or-replacing-the-my-site-link.aspx and http://suguk.org/forums/thread/6898.aspx.
I needed a way of adding a link back to the portal site, when in my MySite. I went to “Personalization site links”. Added a link but every time it would add the http://%yoururl%/default.aspx?MySiteView=1 . Made me crazy. Anyway thanks to the folks that bloged about it first.
Here are the commands I used:
stsadm -o addcontentdb -url http://moss:1000 -databasename SharePoint_AdminContent_moss
stsadm -o enumsites -url http://moss:1000 > output.txt
stsadm -o mergecontentdbs -url http://moss:1000 -operation 2 -sourcedatabasename SharePoint_AdminContent_f58aa288-57e9-49ff-b953-9b4d53d50bfc -destinationdatabasename SharePoint_AdminContent_moss -filename output.txt
iisreset
stsadm -o deletecontentdb -url http://moss -databasename SharePoint_AdminContent_f58aa288-57e9-49ff-b953-9b4d53d50bfc
check with stsadm -o enumcontentdbs -url http://moss:1000
Out of the box neither WSS 3 nor MOSS 2007 will index content located in Acrobat PDF files, so you need to set up the IFilter. I’ve also found that that PDF files loaded prior to the installation of the filter won’t be re-crawled automatically, so to be on the safe side you might want to kick off a full crawl.
Here is what I’ve found works for WSS 3.0:
- First, you need to download the Adobe PDF IFilter 6.0, which you can find at this URL. You should also get hold of a suitable Icon to use with PDFs, so that when they are listed in a document library they are easily recognisable. There is a 17 x 17 one available on the Adobe web site here.
- Once you’ve downloaded the IFilter, install it on your WSS 3.0 server, and then follow the instructions on registry settings in Microsoft KB Article 927675. I’ve always found that providing the Adobe IFilter installed properly, the only setting I need to add is the Search Extensions one listed in step 2. Also note step 5 re stopping and re-starting the search service.
- Now you need to set up the Icon file. If you downloaded the icon file in step 1 above, you will have a file called pdficon_small.gif. You need to copy this onto your WSS 3.0 server, into drive:\Program Files\Common FIles\Microsoft Shared\Web Server extensions\12\TEMPLATE\IMAGES.
- Next you need to edit the XML file which WSS uses to link file extensions to icons. This file is called DOCICON.XML and is located at drive:\Program Files\Common FIles\Microsoft Shared\Web Server extensions\12\TEMPLATE\XML. Navigate to that folder and locate the file. I would suggest making a backup copy first, then opening the file in NotePad. You need to add a mapping key for PDFs at the bottom of the file, above the </ByExtension> closing tag. The new key will be <Mapping Key=”pdf” Value=”pdficon_small.gif” OpenControl=”"/> (note that XML is case sensitive so make sure you use same case as previous entries). Then save the file.
- That’s pretty much it, but if you already have PDFs uploaded to your WSS server I would recommend starting a full crawl. You can do the with STSAdm, the command syntax is Stsadm -o spsearch -action fullcrawlstart . More on this on TechNet here.