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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

basic upload pdfs and display on resource page problem


Go to End
Reply


13 Posts   2377 Views

Avatar
UncleCheese

Forum Moderator, 4094 Posts

4 June 2009 at 2:20am

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.

Avatar
qlex

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 ?

Qlex

Avatar
vancouverWill

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

Avatar
UncleCheese

Forum Moderator, 4094 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.

Avatar
vancouverWill

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