Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

The Vision

To create a deployable page layout which uses a manage metadata field.

Steps taken

  1. Create a term store in central administration
  2. Create a content type (which inherits publishing page)
  3. Create a managed metadata site column using the above term store
  4. Associate the site column with the content type
  5. Create a page layout which uses this content type
  6. Add editing ability to the page layout for the managed metadata field as below.

    <PublishingWebControls:EditModePanel PageDisplayMode="Display" runat="server" CssClass="edit-mode-panel">
                                        <SharePointWebControls:FieldValue FieldName="TeamCategory" runat="server">
                                        </SharePointWebControls:FieldValue>
                                    </PublishingWebControls:EditModePanel>
                                    <PublishingWebControls:EditModePanel runat="server" CssClass="edit-mode-panel">
                                        <Taxonomy:TaxonomyFieldControl DisableInputFieldLabel="true" FieldName="TeamCategory" runat="server">
                                        </Taxonomy:TaxonomyFieldControl>
                                    </PublishingWebControls:EditModePanel>
    

The Page loads and saves the values correctly and works a charm. So now the steps are:

  1. Using the CKS dev tools,Import the site column and content type into a visual studio project.
  2. I have found that the managed metadata field has created an extra note field site column which I can in see in server explorer in visual studio. This has to be imported too.
  3. Create a module to install the page layout and correctly bind the content type to this page layout
  4. Install wsp on new site and test

The Issue

I created a page using the new page layout in the new site and it loads fine. I put in edit mode and save some data in the managed metadata field. On clicking save, the data is saved (I can see it in SharePoint Manager 2010) but when the page loads, the field is still empty. Going into edit mode again shows this field to be blank. Looking at SharePoint logs does not show any issues are happening on save.

Any suggestions on how to fix this?

share|improve this question
    
Did you ever figure out what was the problem? –  Larsi Mar 31 '11 at 11:04
    
@Larsi Because we can't click on @joehodgson's account, that means they don't have a login here and won't receive notifications unfortunately. –  Alex Angas Jun 1 '11 at 3:59
    
There are various articles on how to do this (search for managed metadata page layout) so as @joehodgson no longer has an account I'm closing this. –  Alex Angas Jun 1 '11 at 4:02
add comment

closed as too localized by Alex Angas Jun 1 '11 at 4:02

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.