Jump to:

23007 Posts in 11866 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Image.filename

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: 276 Views
  • merrick_sd
    Avatar
    Community Member
    89 Posts

    Image.filename Link to this post

    $Image.filename is returning the path as well?

    how can i just get the file name

    in my case $SplitScreenAtt

    <% control SplitScreenAtt %>
    $filename

    <% end_control %>

    gives me
    assets/SplitScreen/ashtonintro03.jpg

    and if i just do $SplitScreenAtt.Filename

    any ideas.. im using

    silverstripe 2.4.6

    276 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.