コード例 #1
0
 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)
     }));
 }
コード例 #2
0
 public string GetPreviewUrl(INode selectedItem)
 {
     return(urls.GetPreviewUrl(selectedItem));
 }