Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Getting Page URL From Image Control




3 July 2009 at 3:17pm (Last edited: 3 July 2009 3:20pm), Community Member, 470 Posts

How do I call the current page URL/Link from within an Image control. Top breaks out of both loops.

I have the following:

<% control FeaturedHomePage %>

<% control PageImage %>
<% control CroppedImage(173, 90) %>
    <img src="$URL" />
<% end_control %>
<% end_control %>

<% end_control %>

I'm trying to link the current image to the proper page/article.