0

Ok, see if anyone has a better idea here…

In my page library I have a custom field called MetaTitle

In my .master page, I’ve got the following placeholder in the <head> tag:

<asp:ContentPlaceHolder id=”ieMetaTitle” runat=”server” />

In my Page I have the following in the <asp:Content ContentPlaceHolderID=”ieMetaTitle” runat=”server”>

<asp:Literal  runat=”server” Text=”&lt;meta name=’title’ content='”/><SharePoint:ListItemProperty Property=”MetaTitle”  id=”MetaTitle” runat=”server”/><asp:Literal runat=”server” Text=”‘ &gt;”/>

So, every time I put the three lines together on the same line and save the first time  the meta tag renders fine all on one line, but then SPD puts each element on a seperate line.  So, first time it’s saved it looks like this in the source code:

<meta name=’title’ content=’MetaTitle Data’ >

Then I make some changes, and save it again and it looks like this in the rendered page:

<meta name=’title’ content=’

MetaTitle Data

>

Is there any way I can tell SPD to keep these three lines together?

 

(Visited 26 times, 1 visits today)
Add a Comment