Roundcrisis

home about talks rss feed  rss

Linking images in Monorail

30 Nov 2008

A quick one

Say you have an image or god knows what and you need to add a link to it, in html you’ll do something like:



	 

In a view you can do this:

1
2
3
4
    
<a href=$UrlHelper.For("%{ controller='product'}")>  
    <img src="$!Image.Path" alt="$!Name" />
</a>
comments powered by Disqus