Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • vladzebu 59 posts 346 karma points
    Oct 24, 2013 @ 10:28
    vladzebu
    0

    Adding new fields to product (media section)

    Hello,

    how can I add new fields to media sections ?  

    Please see attached picture , I wanted to add second and third picture for example 

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Oct 24, 2013 @ 11:24
    Nickolaj Lundgreen
    0

    Hello

    Custom media pickers can't be added (to my knowledge) to the Media tab. However they can be added via the products definiton and will show up in the common tab (or the multilingual if you choose so).

  • vladzebu 59 posts 346 karma points
    Oct 24, 2013 @ 11:28
    vladzebu
    0

    Can you tell me how to add to the products definition ? I'm tottally rookie with UCommerce :) .

    Thanks 

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Oct 24, 2013 @ 11:39
    Nickolaj Lundgreen
    0

    Oh sure :)

    The setting can be found here

    The setting can be found here

    Pick the Image type (this type can be used for all media types - files etc.)

    Pick the Image type (this type can be used for all media types - files etc.)

    The marked text is the property alias. When you fetch the property from the alias, it will return the mediaId (like umbraco's media pickers)

    The marked text is the property alias. When you fetch the property from the alias, it will return the mediaId (like umbraco's media pickers)

    Just a very quick guide. Hope it helps, else i'll take the time to do a proper guide :)

  • Elias 3 posts 50 karma points
    Nov 18, 2013 @ 15:31
    Elias
    0

    I have added this to my site, but how do i get a hold of these images through razor?

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Nov 18, 2013 @ 15:39
    Nickolaj Lundgreen
    0

    Hello Elias

    You can fetch the property like this:

    var id = product["AwesomeImage"].Value
    

    This will return the mediaId of the picked media. You can then use uQuery.GetMedia(id) or the UmbracoHelper to fetch the imageObject from that id.

  • Elias 3 posts 50 karma points
    Nov 18, 2013 @ 15:40
    Elias
    0

    Thanks a million

Please Sign in or register to post replies

Write your reply to:

Draft