Novell is now a part of Micro Focus

Adding Maps to eGuide

Novell Cool Solutions: Tip
By Paul Coletti

Digg This - Slashdot This

Posted: 17 Jul 2003
 

The Challenge

Is there a way to customize eGuide so we can display a map for each user in eGuide based on the field office they're working in? I'm guessing we could use an extended attribute where I can put a url to a local map?

The Solution

eGuide's /WEB-INF/templates/xsl/default/browser/detail.xsl file contains two commented sample tabs: 'SUBMIT REQUEST' and 'GOOGLE' respectively -- this is a nice alternative to extending the schema with a special-purpose 'mapURL' attribute.

If you uncomment these two sections you can customize them or add in a 'MAP' Label quite easily. AND you can base this URL on attributes of the user currently selected. You do these things by modifying the two parameters 'Label' and 'URL' respectively.

For Example

<xsl:with-param name="Label">
     Click here for a map to this user's department
</xsl:with-param>
<xsl:with-param name="URLl">
     http://a_webserver_somewhere.com/maps/
	 <xsl:value-of select="detail/object/attribute[name='DEPARTMENT']/value"/>
</xsl:with-param>


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© Micro Focus