Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item extensions do not appear to be registered for an rss2 feed #188

Open
jeromecovington opened this issue Jun 13, 2023 · 0 comments
Open

Comments

@jeromecovington
Copy link

jeromecovington commented Jun 13, 2023

I am attempting to add additional fields to an rss2 feed item outside of the core Item but they do not seem to be exposed in the feed.

In my item setup:

    feed.addItem({
      title,
      id: link,
      link,
      description: excerpt,
      date: new Date(date),
      extensions: [
        {
          name: "item_extension",
          objects: {
            "dc:creator": "foo bar",
          },
        },
      ],
    });

Example item xml with dummy data:

<item>
  <title>
    <![CDATA[ My Page ]]>
  </title>
  <link>https://my-site.com/my-page</link>
  <guid>https://my-site.com/my-page</guid>
  <pubDate>Sat, 10 Jun 2023 01:03:37 GMT</pubDate>
  <description>
    <![CDATA[ My description. ]]>
  </description>
</item>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant