Related Links Field Saved As String Instead of XML

Hi,

Having a problem getting some fields to work in Umbraco 7.2.8 that used to be uComponents URL Picker fields. I’m almost completely done with an upgrade path all the way from 4.7.2 and this is my final issue! I’ve converted these fields over to the built-in “Related Links” data type, re-entered all the content and republished, but when I am attempting to show the values in XSLT I am getting nothing.

Existing code sample:

<xsl:variable name="homenode" select="$currentPage/ancestor-or-self::Home"/>
<a href="{$homenode/fieldName/url-picker/url}" target="_blank">
     <xsl:value-of select="$homenode/fieldName/url-picker/link-title"/>
</a>

I don’t know what to change the code to say here because when I write out a:

<xsl:copy-of select="$homenode/fieldName"/>

I get:

<fieldName><url-picker mode="URL"><new-window>False</new-window><node-id></node-id><url>http://www.purina.com/general/terms.aspx</url><link-title>Terms and Conditions</link-title>
</url-picker></fieldName>

It’s just a string though – it’s not actual XML – so I can’t parse the elements like I normally would in xPath. Seems to me there shouldn’t even be these tags stored in there in the first place anymore now that it’s not a URL Picker field. If I have to fix this in the database, what format is Related Links supposed to save in?

Ideas?

Thanks,

Garrett


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/71489-related-links-field-saved-as-string-instead-of-xml