Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
how can I add new fields to media sections ?
Please see attached picture , I wanted to add second and third picture for example
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).
Can you tell me how to add to the products definition ? I'm tottally rookie with UCommerce :) .
Thanks
Oh sure :)
The setting can be found here
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)
Just a very quick guide. Hope it helps, else i'll take the time to do a proper guide :)
I have added this to my site, but how do i get a hold of these images through razor?
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.
uQuery.GetMedia(id)
UmbracoHelper
Thanks a million
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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).
Can you tell me how to add to the products definition ? I'm tottally rookie with UCommerce :) .
Thanks
Oh sure :)
Just a very quick guide. Hope it helps, else i'll take the time to do a proper guide :)
I have added this to my site, but how do i get a hold of these images through razor?
Hello Elias
You can fetch the property like this:
This will return the mediaId of the picked media. You can then use
uQuery.GetMedia(id)
or theUmbracoHelper
to fetch the imageObject from that id.Thanks a million
is working on a reply...