[mapguide-users] URL in Legend

Denis Lalonde denlalonde at YAHOO.COM
Thu Jan 17 08:31:28 EST 2008


As far as I can tell, the only other implication of commenting it out, is
when you "right-click" in the layers window...you'll have difficulty using
the "Refresh/Expand/Collapse" menu that pops up. I disabled that too.



Keith Campbell wrote:
> 
> Works a treat! Thanks Denis.
> 
> I'd actually tried this, using double quotes in the   tag, which caused an
> error. However, I just tried it again with single quotes, prompted by your
> post, and it works.
> 
> Do you know if there are any other implications of commenting out the
> “return false;” in the OnClick() function?
> 
> Keith
> 
> 
> Denis Lalonde wrote:
>> 
>> I needed this functionality too and I've got it to work by modifying the
>> legend display name of the layer in Studio. Wrap the name with an   tag
>> that calls your page or jscript function and you’ll see the name of the
>> layer displayed as a url in the legend.
>>  
>> You’ll have to comment out the “return false;” in the OnClick() function
>> of legendui.templ to enable the hyperlink.
>> 
>> 
>> 
>> 
>> 
>> 
>> ----- Original Message ----
>> From: "Campbell, Keith A" <keith.campbell at atkinsglobal.com>
>> To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
>> Sent: Wednesday, January 16, 2008 5:18:02 AM
>> Subject: [mapguide-users] URL in Legend
>> 
>> 
>> 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?
>> Keith 
>> 
>> 
>> 
>> 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. 
>> 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:
>> http://www.atkinsglobal.com/terms_and_conditions/index.aspx. 
>> P Consider the environment. Please don't print this e-mail unless you
>> really need to.
>> 
>> 
>>      
>> ____________________________________________________________________________________
>> Be a better friend, newshound, and 
>> know-it-all with Yahoo! Mobile.  Try it now. 
>> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>> 
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/URL-in-Legend-tp14877162s16610p14918687.html
Sent from the MapGuide Users mailing list archive at Nabble.com.



More information about the mapguide-users mailing list