Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » basic upload pdfs and display on resource page problem

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 2280 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: basic upload pdfs and display on resource page problem Link to this post

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

    This:

    <% 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.

  • qlex
    Avatar
    Community Member
    68 Posts

    Re: basic upload pdfs and display on resource page problem Link to this post

    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 ?

    Qlex

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: basic upload pdfs and display on resource page problem Link to this post

    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 resouces.ss 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.

    Cheers

    Will

  • UncleCheese
    Avatar
    4085 Posts

    Re: basic upload pdfs and display on resource page problem Link to this post

    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.

  • vancouverWill
    Avatar
    Community Member
    121 Posts

    Re: basic upload pdfs and display on resource page problem Link to this post

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

    2280 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.