<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif">
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">I needed this functionality&nbsp;too and I've got it to work by modifying the legend display name of the layer&nbsp;in Studio. Wrap the name with an &lt;a&gt; tag that calls your page or jscript function and you’ll see the name of the layer displayed as a url in the legend.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p>&nbsp;</o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana">You’ll have to comment out the “return false;” in the OnClick() function of legendui.templ to enable the hyperlink.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p></o:p></SPAN>&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-CA style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana"><o:p></o:p></SPAN>&nbsp;</P></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif">&nbsp;</DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: verdana, helvetica, sans-serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: "Campbell, Keith A" &lt;keith.campbell@atkinsglobal.com&gt;<BR>To: MapGuide Users Mail List &lt;mapguide-users@lists.osgeo.org&gt;<BR>Sent: Wednesday, January 16, 2008 5:18:02 AM<BR>Subject: [mapguide-users] URL in Legend<BR><BR>
<P><FONT face=Arial size=2>I'd like to add a link in the legend from each layer / group to some information about the layer (in a new window). Has anybody done this successfully and if so, would you mind sharing how you did it?</FONT></P>
<P><FONT face=Arial size=2>Keith</FONT> </P><BR><BR>
<CENTER><FONT face="Arial, Helvetica, sans-serif" size=2><B>This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.</B></FONT> 
<P><FONT face="Arial, Helvetica, sans-serif" size=2>The ultimate parent company of the Atkins Group is WS Atkins plc. Registered in England No. 1885586. Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at:</FONT><FONT face="Arial, Helvetica, sans-serif" size=2> <FONT color=#0033ff><A href="http://www.atkinsglobal.com/terms_and_conditions/index.aspx" target=_blank rel=nofollow>http://www.atkinsglobal.com/terms_and_conditions/index.aspx.</A></FONT></FONT> 
<P><FONT face=Webdings color=green size=5>P</FONT> <FONT face="Arial, Helvetica, sans-serif" color=green size=2><B>Consider the environment. Please don't print this e-mail unless you really need to.</B></FONT> </CENTER></P></DIV><BR></DIV></div><br>
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>