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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Getting Page URL From Image Control


Go to End


1782 Views

Avatar
Liam

Community Member, 470 Posts

3 July 2009 at 3:17pm

Edited: 03/07/2009 3:20pm

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.