Just wondering what the proper ss code is to create a relative download link.
ie: <a href="&BaseHref/&Name">Click Here to Download<a/> or something similar.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
Just wondering what the proper ss code is to create a relative download link.
ie: <a href="&BaseHref/&Name">Click Here to Download<a/> or something similar.
$YourFile.URL
---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com
Awesome, thanks. Let's just pretend I'm really stupid for a second.
<% control Resources %>
<p>
<hr />
<b>"$Name"</b>
<hr />
<% control Attachment %>$Player(640,480)<% end_control %><br />
<i>$Description</i><br>
</p>
<% end_control %>
I want to insert a link into this control set to download the posted mp3's.
How does $YourFile.URL work in this instance?
Where should I look for this kinda info?
$Attachment.URL.. "YourFile" is just a placeholder name of the file relationship you've created.
---------------
Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com