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:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

basic upload pdfs and display on resource page problem

Go to End

13 Posts   3096 Views


Forum Moderator, 4102 Posts

4 June 2009 at 2:20am

If you're in an Attachment control, you don't need the $Attachment reference. $URL will suffice.


<% control Attachment %><a href="$URL">Download</a><% end_control %>

and this:

<a href="$Attachment.URL">Download</a>

are the same.

but this:

<% control Attachment %><a href="$Attachment.URL">Download</a><% end_control %>

Is looking for the Attachment property of the Attachment object, which of course, doesn't exist.


Community Member, 68 Posts

4 June 2009 at 8:29am

Hi UncleCheese,
thanks a bunch ! It works.
Now i will start with playing around with formatting.
I would appreciate if you could append the example template with this hint you gave me here - maybe it will help others ?



Community Member, 121 Posts

20 August 2009 at 10:37am

DOM module is great and starting to get a better understanding about the classes and arrays. The thing I don't understand is the $player variable called in the gallery and the resources example. Any pointers on where I can find more about this. It wasn't working for me with the example. Do I need some kind of imagekit to get it working such as FFMPEG?

Also the VideoPage.SS example uses a few variables which made SS crash such as $CroppedImage. I'm pretty sure that is an FFMPEG problem but it is hard to know for sure or where to find out.

Appreciate all the help and what you have done for the community.




Forum Moderator, 4102 Posts

20 August 2009 at 12:19pm

The video features require FFMPEG to be installed on your server. You can test this by adding "FLV::echo_ffmpeg_test()" in your _config.php.


Community Member, 121 Posts

21 August 2009 at 6:18am

Thanks very much. I think I'm going to have upgrade my shared hosting account.

Go to Top