Custom module needs selector to select multiple images
I have custom module I'm wondering if there is anything in the Sitefinity that would let me to easily (or not) associate several images with my module? Maybe MediaFields can help me with this?
This is maybe obvious, but I still didn't find the answer...
Thanks!
Hi Denis,
In order to help you I would need some more information.
Is that a dynamic module made by using Module Builder or is it a custom one, created in some different way?
Kind regards,
Nikolay Dimitrov
the Telerik team
Hi Nikolay,
This is a custom module created based on Products module from SDK.
I know how to create one-to-one relation between my module and image:
type.Fields.Add(ContentLinksExtensions.CreateContentLinkField(
"ItemThumbnail"
,
"OpenAccessDataProvider"
, metaMan, RelationshipType.OneToOne));
Telerik, any ideas about my previous post? Any feed back would be much appreciated. Thanks, Denis.
Hi Denis,
There is a forum thread which discusses the implementation of a multiimagefield ( there is code and steps to register the control in the thread ):
www.sitefinity.com/.../multiimagefieldelement
Kind regards,
Victor Velev
the Telerik team
Hi Victor,
Yeah, I'm aware about this approach in the post you referred. It is two years old and I was hoping that now sitefinity provides something better than storing guids in a text field.
Looks like there is no good way to reuse RelationshipType.OneToMany? In what situations this relation type is used at all? I didn't find too much documentation about it...
Thanks, Denis.