Jump to:

23481 Posts in 18965 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Getting Page URL From Image Control

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

Page: 1
Go to End
Author Topic: 1293 Views
  • Liam
    Avatar
    Community Member
    470 Posts

    Getting Page URL From Image Control Link to this post

    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.

    1293 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.