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

In SharePoint Designer 2010, when I drag a field from the toolbox onto a page layout the generated field control uses the field ID for the FieldName attribute.

<PublishingWebControls:RichHtmlField FieldName="f55c4d88-1f2e-4ad9-aaa8-819af4ee7ee8" 
    runat="server">
</PublishingWebControls:RichHtmlField>

Is there some way to get SharePoint Designer to use the field's internal name instead?

share|improve this question
1  
I'm not sure if this is possible (unless someone else corrects me, hence a comment and not an answer), and this is another one of the reasons why I never use the visual designer in SharePoint Designer. –  James Love Jul 25 '11 at 15:35
    
Rob, What happens when you replace the FieldName="[Guid]" with FieldName="[InternalFieldName]" - I don't see why it wouldn't work. –  Simon Doy Aug 11 '11 at 15:38
    
Simon: Using the internal field name is not the issue. I was asking if I could configure SPD to include the internal field name instead of the GUID when it generates the markup for the field control. –  Rob Windsor Aug 12 '11 at 21:16
add comment

1 Answer

Hi Rob: I don't know why Microsoft changed this from 2007 functionality, but it does seem to be the case in 2010 that it uses the GUID, which, IMHO, adds some extra work to creating page layouts, especially if you're porting changes from one site to another where columns potentially have different GUIDs. Who knows why, but I haven't figured out how to change SPD to use Field Names and is something I've got used to now. I can see problems with using GUIDs, so I always change to the internal name. Sorry it's not much of an answer.

share|improve this answer
    
It might not be much of an answer, but sometimes it might be the only answer. –  PirateEric Sep 12 '11 at 16:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.