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

Image.filename


Reply


343 Views

Avatar
merrick_sd

Community Member, 97 Posts

2 November 2011 at 6:05am

$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