HOME ABOUT
I AM HERE
Bookmark and Share

Naughty SharePoint Designer

November 26, 2007 12:59 by aidan

SharePoint Designer keeps adding spaces ( ) to my HTML in page layouts. This is particularly annoying as I am working to a web design that has been produced at great expense and the customer quite rightly expects that the developed website will match this exactly.

 Unfortunately when I want:

<li>
        <h4><PublishingWebControls:RichLinkField ID="RichLinkField1" FieldName="ByProductType1" runat="server"></PublishingWebControls:RichLinkField></h4>
        <p><SharePointWebControls:TextField ID="TextField4" FieldName="ByProductTypeDesc1"
runat="server"></SharePointWebControls:TextField></p>
</li>

What I get is:

<li>
 <h4>&nbsp;<PublishingWebControls:RichLinkField ID="RichLinkField1" FieldName="ByProductType1" runat="server"></PublishingWebControls:RichLinkField></h4>
 <p>&nbsp;<SharePointWebControls:TextField ID="TextField4" FieldName="ByProductTypeDesc1" runat="server"></SharePointWebControls:TextField></p>
</li>

Hopefully this will be fixed in a service pack but for now I am having to edit my page layouts in Visual Studio and then drag and drop the aspx file into the masterpage library within SharePoint designer. The HTML editor in Visual Studio is much better behaved and does not add in the unwanted spaces.

theKid has found another issue, which I have not experienced, with closing tags being lost by SharePoint designer. Read more about that here...

 


Comments

November 28. 2007 01:54

Pingback from stevepietrekweblog.wordpress.com

Links (11/27/2007) « Steve Pietrek’s SharePoint Stuff

stevepietrekweblog.wordpress.com

December 1. 2007 23:39

Pingback from virtual-generations.com

SharePoint 2007 Link love: 12-02-2007 part four at  Virtual Generations

virtual-generations.com

January 9. 2008 16:07

Sharepoint Designer

J'ai le même problème avec les espaces insécable (&amp;nbsp;) généré automatiquement. Quelqu'un sait comment supprimer ces espaces. Il ne sont pas visible dans mon fichier .aspx ils sont générés dans ma ligne de code.
<SharePointWebControls:UrlField ... >

Mel

July 21. 2009 18:27

Love this!

Jm-Experts!

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading