Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Brad 94 posts 151 karma points
    Jun 28, 2013 @ 05:27
    Brad
    0

    Is this possible.. Media list in Contour?

     

    I have Umbraco 6.1.1 and Contour 3.0.12. 

    I'm about to start work on a new form and I'm just not sure how to go about it in Contour of if it is even possible. 

    I need a form that displays a list of thumbnail images from the media library from which the user can select one. 

    Is this sort of thing possible with Contour? How might I go about it?

     

     

     

  • Brad 94 posts 151 karma points
    Jun 28, 2013 @ 10:56
    Brad
    0

    Ok, the way I am going with this, is this.

    I have created a simple form in Contour with the two dropdowns I need. Then I created a macro that displays all media images. 

    My plan is to remove the submit button from the form and add my own button that just calls some jquery that will 

    1. Read the two dropdowns and which image they have selected. 

    2. Do and .ajax call to send the values to a web service to store them against the users profile. 

    Sounds simple enough, assuming I can remove the Contour Submit button. 

  • Comment author was deleted

    Jul 01, 2013 @ 09:54

    Hey Brad,

    You could also look into making a custom fieldtype for this, then you will end up with a reusable component

    Details on how to create fieldtypes can be found here: http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Developer/Extending-Contour/

    For a razor only fieldtype check this example http://our.umbraco.org/forum/umbraco-pro/contour/40417-Creating-custom-FieldType-with-multiple-SingleLine-textboxes

Please Sign in or register to post replies

Write your reply to:

Draft