Supplier URL

Post Reply
jkazmi
Posts: 35
Joined: 26 Aug 2014, 15:35

Hello,

I would like to know if it is possible to publish the supplier url in the Application Provider Summary view. My suppliers are showing up correctly in the view but the URL does not show up. It looks like the templates being used for the Application Provider Summary does not expose the URL.

I would like my users to be able to see the URL and click on it to go to the supplier's website.

I would appreciate your help.

Thanks
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

You can add this by extending the Application Provider Summary View, the source for which you'll find in the Viewer web app folder:
application/core_al_app_provider_summary.xsl
In there, you will find a div with the id = sectionSupplier. This is the panel in which the Supplier name is rendered. In here you can add the code to render an additional element, e.g. "Supplier Website" and make this into a link, setting the href attribute to the value of the supplier_url slot.
e.g. after the <p> to render the name, you could do something like:

Code: Select all

<xsl:if test="count($supplier) > 0">
	<p>
		<a>
			<xsl:attribute name="href" select="$supplier/own_slot_value[slot_reference='supplier_url']/value"></xsl:attribute>
			Supplier website
		</a>
	</p>
</xsl:if>
Save the updated view template and it's ready to use.

Jonathan
Essential Project Team
Post Reply