private VueComponentDefinition[] FullPreviewValueForVal(ContentField contentField,
                                                                ContentFieldDefinition contentFieldDefinition)
        {
            var vues = new List <VueComponentDefinition>();
            var fi   = contentField.DirectCastTo <FilePickerField>();
            var idx  = 0;

            if (fi.Val.Length != fi.DownloadPaths.Length)
            {
                fi.UpdateRelatedPaths(_fileMgr.GetHandler());
            }
            foreach (var val in fi.Val)
            {
                vues.Add(new VueHtmlWidget($"<li><a href='{_urlProv.GetBaseWebsiteContentUrl()}{fi.DownloadPaths[idx]}' target='_blank'>{val}</a></li>"));
                idx++;
            }
            return(vues.ToArray());
        }
Пример #2
0
 private string GetFullUrl(FauxUrlSlugField f)
 {
     return($"{_urlProv.GetBaseWebsiteContentUrl()}{f.Slug?.Trim('/')}");
 }