CoverFlowWidget demo
Hi!
Hi Daniel,
Please modify GetImages method as shown below
private
List<Hashtable> GetImages()
List<Hashtable> results =
new
List<Hashtable>();
var t =
this
.AlbumTitle;
var manager = LibrariesManager.GetManager(LibrariesManager.GetDefaultProviderName());
if
(!String.IsNullOrEmpty(t))
var al = manager.GetAlbums().Where(a => a.Title == t).SingleOrDefault();
var authority =
this
.GetAuthorityUrl();
if
(al !=
null
)
var useLive = al.Items.Where(im =>im.Status == Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live);
foreach
(Telerik.Sitefinity.Libraries.Model.Image v
in
useLive)
Hashtable table =
new
Hashtable();
table.Add(
"Url"
, authority + v.MediaUrl);
table.Add(
"Title"
, v.Title.ToString());
results.Add(table);
return
results;