Beispiel #1
0
        public string GetFolderPath(Data.ID newItemId, Data.ID parentItemId, DateTime creationDateOfNewItem)
        {
            var bucket = new Types.BucketItem(Sitecore.Context.ContentDatabase.GetItem(parentItemId));

            var dynamicFolderPathResolver = switcher.GetFolderPathResolver(bucket);

            return(dynamicFolderPathResolver.GetFolderPath(BucketItem.Create(newItemId), bucket, creationDateOfNewItem));
        }
        public string GetFolderPath(Data.ID newItemId, Data.ID parentItemId, DateTime creationDateOfNewItem)
        {
            var bucket = new Types.BucketItem(Sitecore.Context.ContentDatabase.GetItem(parentItemId));

            var dynamicFolderPathResolver = switcher.GetFolderPathResolver(bucket);

            return dynamicFolderPathResolver.GetFolderPath(BucketItem.Create(newItemId), bucket, creationDateOfNewItem);
        }