Allow links on my MyHouse or MyNearest pages to open in new browser tab

The following example shows you how you can add a target attribute to the feature's field which has an associated URL.

Step-by-step guide

What you need to do is to locate the *Fields.xsl file that is being used to drive the My House and My Nearest pages. Check your MyHouse Options and under Paths and Watermarking you will see the XSL Path entry e.g. xml/myHouse_Fields.xsl.

The following extract from the *Fields.xsl shows the added "target" attribute.

*Fields.xsl - Code Extract
<a>
	<xsl:attribute name="href">
		<xsl:call-template name="vertical-bar">
			<xsl:with-param name="text" select="substring-before($str,'|')"/>
		</xsl:call-template>
	</xsl:attribute>
	<xsl:attribute name="target">_blank</xsl:attribute>
	<xsl:call-template name="vertical-bar">
		<xsl:with-param name="text" select="substring-after($str,'|')"/>
	</xsl:call-template>
</a>