You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2021. It is now read-only.
Unlike in the exemple RssWriteItemWithCustomElementExample.cs,
AtomEntry and SindicationItem inherit from ISyndicationItem.
when i want to add a custom element like a balise <enclosure> in my element <entry>,
after passing the formatter , my new elemnt is not displayed in the result :
var item = new AtomEntry
{
Title = post.Title,
Description = post.Content,
Id = $"{host}/posts/{post.Slug}",
Published = post.Published,
LastUpdated = post.Published,
ContentType = "html",
};
item.AddContributor(new SyndicationPerson(post.Author.DisplayName, post.Author.Email));
item.AddLink(new SyndicationLink(new Uri(item.Id)));
var content = new SyndicationContent(_formatter.Format(item));
content.AddField(new SyndicationContent("enclosure", "linkToMyMp3.mp3"));
In the displayed result , the element enclosure created earlier is missing