This project is read-only.

Adding a file download button

Topics: General
Dec 18, 2012 at 10:56 PM


Is there any support for easily adding buttons to a web page that can be clicked to allow a user to download a file from the server?

Will this require me diving into some C#?



Dec 19, 2012 at 1:17 AM

You can use a media picker field.

Dec 19, 2012 at 1:17 PM

OK that's interesting - I will explore this today.

Another question - I'd like to have a way for visitors to fill in a simple text box and press a button to provide "Join our mailing list" feature - again any tips for the besty way to add this?



Dec 19, 2012 at 1:33 PM
Edited Dec 19, 2012 at 1:33 PM
bertrandleroy wrote:

You can use a media picker field.

I'm looking at the docs and can't find anything that describes/explain what a media picker field is or what the general concept of a field is in Orchard.

I don't see "Fields" listed in the Orchard Dashboard as an entry in the menu - I'm sure there are good reasons for that - but I can't really get any idea about what these "fields" are and how they are used with respect to the other Orchard abstractions.

Any examples or docs that yiou can point me at?



Dec 19, 2012 at 3:24 PM

These pages talk about content fields:

I don't know of any docs on the MediaPickerField, but it's easy to try out and see how it works. Provided of course that you know how to attach content fields to content parts, but that's handled in the mentioned links.

Dec 19, 2012 at 5:19 PM
Edited Dec 19, 2012 at 5:24 PM

Much appreciated - just started reading these docs.

One question - the docs say "Orchard currently comes with only one type of field, text fields" but I suspect this is out of date because I can see several field types defined, including the media picker you mentioned.





Dec 19, 2012 at 5:56 PM

You're right, that's out of date. There are good people working on updating the docs, but thanks for pointing this out.

Dec 19, 2012 at 6:17 PM

I fixed that error in the docs.

Dec 19, 2012 at 9:43 PM

Impressive response - thanks for that.