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

Image.filename


Go to End


631 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