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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

Image.filename


Go to End


576 Views

Avatar
merrick_sd

Community Member, 99 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