Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To make it even easier to use the values from the DAM Center in custom property drop down lists - for example in a block to hold a dynamic gallery, the integration also provides SelectionFactories for AssetType, Crops and MediaFormats SelectionFactory for folders in the Digizuite.Episerver.Helpers namespace, ready to use in attributes on properties like this: 

[SelectOneSelectMany(SelectionFactoryType = typeof(CropSelectionFactoryFoldersSelectionFactory))]
public virtual string CropName Folders { get; set; }

See a full example further down!

...

We also ensure that we will only search for images. AssetTypes.Image (from Digizuite. Episerver.Constants) is a constant int, set to the default Image Asset Type ID. The view is basically just about rendering the gallery, with the addition of rendering the images in the selected media format as described here: DFO 4.0.0 - 4 Referencing and Rendering Assets. Here is what the end result could look like:

...