London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Navigation [hide] [expand]
Area: Optimizely CMS
ARCHIVED This content is retired and no longer maintained. See the latest version here.

A content instance that implements EPiServer.Core.IResourcable can have related assets stored in an instance of EPiServer.Core.ContentAssetFolder. Resources stored as content assets are to be seen as exclusive assets for that content instance and hence the resources are not selectable from other content instances.

Example

The following example shows how to get an existing assets folder or create one automatically:

     contentAssetHelper = ServiceLocator.Current.GetInstance<ContentAssetHelper>();
     var contentAssetFolder = contentAssetHelper.GetOrCreateAssetFolder(myContentLink);

Last updated: Mar 31, 2014