Background
Hi dear Community. I want to add rich content to my reflection article for the #CNC2022 write more challenge as suggested, but I always get an error that my code is invalid.
I tried to work with the recommended URL of my Welcome post and other comments.
Do I misunderstand how to use the embed implementation?
I would use {% comment https://community.codenewbie.org/yuridevat/comment/a9d %}
(but without the backsticks)
The error I get is
Whoops, something went wrong:
base: Invalid Comment ID or URL
My settings are: Setting - Customization - Writing "Rich + Markdown"
Top comments (11)
Heyo! Thanks for pointing this issue out. 🙂
The new syntax for embedding content is simplified to just include the keyword
embed
instead of specifying the embed type. So, embedding the comment you mentioned would be written as{% embed https://community.codenewbie.org/yuridevat/comment/a9d %}
That said, I tested this out on CodeNewbie just now and hit an error. I think we may be having a few issues with embedding content on CodeNewbie right now and so have tagged in a teammate to look at things. I'll get back in touch when we figure out what's happening here!
Thank you so much for your answer, Michael. To use "embed" was what I thought first, but it did not work. Then I found out, people are using "link", "comment", etc and it worked with using "link" for an article of mine, but not with "comment".
I am glad you helped clarify how to (normally) use it :)
Alrighty! Just wanted to point out that a fix is in for this issue and should be live in just a few after 3 PM UTC. 🙌
Big thanks for asking this question and making us aware of this issue!! 😀
Yep, it's working. Thank you so much!!
Woot! Happy to hear it. 😀
You're very welcome! 🙌
And yep, this is a bit confusing. We actually recently changed out syntax for embeds, simplifying things so that folks can just use "embed" without having to remember what type of embed it is (i.e. "link", "comment", etc.) That said, I believe it was built in such a way that the older methods still work.
I'm getting the same error when trying to use the new embed tag for CodeNewbie content (and when posting on forem.dev also)
If you mean by content a blog article, instead of embed you should use link. This one was working for me. But not for comments, though :-/
I'm getting the error for everything that uses a CodeNewbie URL, even on other Forem instances.
Even on other Forem instances, I get the problem for any URL that has a CodeNewbie.
basketball stars
Ensure that the platform you're using supports the fnf embedding feature and that you have the correct permissions to embed content.