Adding Maps to eGuide
Novell Cool Solutions: Tip
By Paul Coletti
Digg This -
Posted: 17 Jul 2003
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?
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.
<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