Roundcrisis

About Contact me Presentations 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>

Categories:   monorail   NVelocity   urlHelper

Want to discuss this post? the best place right now for me is mastodon, please message me @roundcrisis@types.pl with your comment or question.