public IEnumerable <ToolbarOption> GetAll() { return(languages.GetAvailableLanguages() .Where(l => l is ContentItem) .Select((l, i) => new ToolbarOption { Title = l.LanguageTitle, Target = Targets.Preview, SortOrder = i, Name = l.LanguageCode, Url = editUrlManager.GetPreviewUrl((ContentItem)l) })); }
public string GetPreviewUrl(INode selectedItem) { return(urls.GetPreviewUrl(selectedItem)); }