Adding a file download button

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

Hi.

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

Thanks

KC

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

Thx

KC

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?

Thanks

KC

Developer
Dec 19, 2012 at 3:24 PM

These pages talk about content fields:

http://docs.orchardproject.net/Documentation/Basic-Orchard-Concepts
http://docs.orchardproject.net/Documentation/Creating-a-custom-field-type
http://docs.orchardproject.net/Documentation/Creating-custom-content-types

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.

Thanks

KC

 

 

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

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

KC