Skip to main content
added 13 characters in body
Source Link
public class Artikel : EntityModel
{
   [SemanticProperty("item")]
   public List<Paragraaf> Items { get; set; }
   ...
   public string Title { get; set; }
   public Afbeelding Afbeelding { get; set; }
}

public class Paragraaf : EntityModel
{
    // field below contains hyperlink(s) of type component (type ExterneLink)
    public RichText Text { get; set; }
    ...
}

public class ExterneLink : EntityModel, ISyndicationFeedItemProvider
{
    [SemanticProperty("externalLink")]
    public string Url { get; set; }
}`enter code here`
public class Artikel : EntityModel
{
   [SemanticProperty("item")]
   public List<Paragraaf> Items { get; set; }
   ...
   public string Title { get; set; }
   public Afbeelding Afbeelding { get; set; }
}

public class Paragraaf : EntityModel
{
    // field below contains hyperlink(s) of type component (type ExterneLink)
    public RichText Text { get; set; }
    ...
}

public class ExterneLink : EntityModel
{
    [SemanticProperty("externalLink")]
    public string Url { get; set; }
}`enter code here`
public class Artikel : EntityModel
{
   [SemanticProperty("item")]
   public List<Paragraaf> Items { get; set; }
   ...
   public string Title { get; set; }
   public Afbeelding Afbeelding { get; set; }
}

public class Paragraaf : EntityModel
{
    // field below contains hyperlink(s) of type component (type ExterneLink)
    public RichText Text { get; set; }
    ...
}

public class ExterneLink : EntityModel, ISyndicationFeedItemProvider
{
    [SemanticProperty("externalLink")]
    public string Url { get; set; }
}
added 7 characters in body
Source Link

Step-1: when publishing, add embedded component in rich-text field to (jsonJSON) output.

public class Artikel : EntityModel
{
   [SemanticProperty("item")]
   public List<Paragraaf> Items { get; set; }
   ...
   public string Title { get; set; }
   public Afbeelding Afbeelding { get; set; }
}

public class Paragraaf : EntityModel
{
    // field below contains hyperlink(s) of type component (type ExterneLink)
    public RichText Text { get; set; }
    ...
}

public class ExterneLink : EntityModel
{
    [SemanticProperty("externalLink")]
    public string Url { get; set; }
}`enter code here`

Step-1: when publishing, add embedded component in rich-text field to (json) output.

public class Artikel : EntityModel
{
   [SemanticProperty("item")]
   public List<Paragraaf> Items { get; set; }
   ...
   public string Title { get; set; }
   public Afbeelding Afbeelding { get; set; }
}

public class Paragraaf : EntityModel
{
    public RichText Text { get; set; }
    ...
}

public class ExterneLink : EntityModel
{
    [SemanticProperty("externalLink")]
    public string Url { get; set; }
}`enter code here`

Step-1: when publishing, add embedded component in rich-text field to (JSON) output.

public class Artikel : EntityModel
{
   [SemanticProperty("item")]
   public List<Paragraaf> Items { get; set; }
   ...
   public string Title { get; set; }
   public Afbeelding Afbeelding { get; set; }
}

public class Paragraaf : EntityModel
{
    // field below contains hyperlink(s) of type component (type ExterneLink)
    public RichText Text { get; set; }
    ...
}

public class ExterneLink : EntityModel
{
    [SemanticProperty("externalLink")]
    public string Url { get; set; }
}`enter code here`
added 7 characters in body
Source Link

Below json isshows the JSON after step-1 (with content explorer preview/source). The embed component is present, mapping for this must be set.

Below json is after step-1 (with content explorer preview/source). The embed component is present, mapping for this must be set.

Below shows the JSON after step-1 (with content explorer preview/source). The embed component is present, mapping for this must be set.

added 93 characters in body; edited title
Source Link
Loading
Source Link
Loading