Document how to display content outside component (e.g., RSS)
See original GitHub issueUsers will want to display their content outside of components, such as in an RSS feed. Currently, the displaying content page only discusses using a component to render content. The document object does not include HTML or a plaintext summary that could be used for this.
Describe the solution you’d like
On the Displaying content
page, document how to include content programmatically, such as in an RSS feed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Add RSS feeds from external sites to your site
Under Categories, select Content Rollup. Under Web Parts, select the RSS Viewer web part, and then select Add (Find the button over to...
Read more >Display element outside of iframe - javascript - Stack Overflow
This is not possible. An iFrame is in essence a separate browser window inside document that references other pages.
Read more >Working With Web Feeds: It's More Than RSS | CSS-Tricks
With Atom and RSS, you do this by declaring the namespace on the root element. One example of this is on podcast feeds...
Read more >Create an RSS Feed from Nuxt Content with Full Body HTML
This article will present a way to add the whole document to the RSS feed by adding a simple drop-in module. The problem...
Read more >Creating An Outside Focus And Click Handler React Component
In this article, we'll look at how to create an outside focus and click handler with React. We will recreate an open source...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s me building integration with
nuxtjs/feed
and you merge a PR showing how to do it 😄Bu, #93 still uses summary, without a good way to take the JSON AST and turn it into a string of HTML.
Besides storing
text
against the object and running it through a parser, any suggestions on how to achieve this?@philipithomas Yes that’s right, this is common practice so that potential readers are still coming back to your site (so you can obtain some more meaningful analytics metrics if you’re into this stuff). And using
@nuxt/content
you do not have access to a textual version of the body directly, only the JSON AST.However you have access to the
text
field containing the raw body during the hookfile:beforeInsert
according to: https://content.nuxtjs.org/advanced#contentfilebeforeinsert You could copy it and/or process it in some way to extract a plain-text body to be injected afterwards in feedscontent
section.