Thursday 26 February 2009

Adding Metadata to a MOSS 2007 Publishing Portal

I found a way of adding MetaData to each page within a public facing website. There are still discussions on whether it is of any value, as some search engines don't always read it, to change the description and keywords.

In the Content Type(s) that the pages use add three fields - one for page title that will appear in the browser and will not affect the title used for the .aspx and in menus, one for the description as for some reason the description added when the page is created is not used (though I don't know it is crawled and returned in search results) and keywords.

I didn't add these fields to the page layout as there are lots of pages for our Marketing department, who own the content, to redo.

I'll post up the rest of the code tomorrow as I don't have the code at home.

Friday 13 February 2009

Create custom 404 in MOSS 2007

http://support.microsoft.com/kb/941329/en-us

We had an issue where our new site had the same Url as the old one and Google search results were returning the old one which was no longer visible (Url pointing to new IP address) the above link is to the Microsoft Knowledge Base article for a solution. It worked for us.

Tuesday 10 February 2009

Entity Framework

Finally got the EF to install!! It appears that VS2008 did not have SP1 and non of this was picked up on the updates. Once installed the DataModeller appered

Monday 9 February 2009

Entity Framework Tests

Just a quick one – guess I was being an idiot (no change there then). I was creating a couple of tests for my entity model and got an error

"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid."

A little bit of searching revealed that I needed an app.config for the test project with the connection settings for the model – makes sense but was confusing at first.

Entity Framework

Had some problems, and still do, installing the Entity Framework on my home laptop. At one point after un-installing 3.5 SP1 and the updates VS2008 decided that it would also delete all my templates.