November Happy Hour will be moved to Thursday December 5th.

Block of Images

Vote:
 

One requirement on a Project I'm doing at the moment is that I need to be have a list of images I can administer globally and add to pages where needed. One added to a Page I should be able to add or remove images from the list to customize the list to that page. My thinking to create a block but not sure how to achieve my requirements. Is there a ImageList property I can use? [Newbie working in Episerver 7.5]

#112966
Nov 10, 2014 4:46
Vote:
 

If I understand you problem correctly, perhaps a solution like this would help ?

Site level block, lets say "SiteImagesBlock" containing a contentarea of images. This is the control block.

Create a new page level block with a content area for holding images.

In the SetDefaultValues override for the page level block, get hold of the control block through the IContentRepository and add its image references to itself.

The page level block is then free to be customised.

regards,

Danny

#113105
Nov 13, 2014 10:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.