CodeNewbie Community 🌱

𝕁𝕦𝕝𝕚𝕒 👩🏻‍💻
𝕁𝕦𝕝𝕚𝕒 👩🏻‍💻

Posted on

How to embed rich content ?

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"

How to embed rich content?

Top comments (11)

Collapse
 
michaeltharrington profile image
Michael Tharrington

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!

Collapse
 
yuridevat profile image
𝕁𝕦𝕝𝕚𝕒 👩🏻‍💻

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 :)

Collapse
 
michaeltharrington profile image
Michael Tharrington

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!! 😀

Thread Thread
 
yuridevat profile image
𝕁𝕦𝕝𝕚𝕒 👩🏻‍💻

Yep, it's working. Thank you so much!!

Thread Thread
 
michaeltharrington profile image
Michael Tharrington

Woot! Happy to hear it. 😀

Collapse
 
michaeltharrington profile image
Michael Tharrington • Edited

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.

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

I'm getting the same error when trying to use the new embed tag for CodeNewbie content (and when posting on forem.dev also)

Collapse
 
yuridevat profile image
𝕁𝕦𝕝𝕚𝕒 👩🏻‍💻

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 :-/

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

I'm getting the error for everything that uses a CodeNewbie URL, even on other Forem instances.

Collapse
 
quitzonsandy profile image
quitzonsandy

Even on other Forem instances, I get the problem for any URL that has a CodeNewbie.
basketball stars

Collapse
 
andree234 profile image
andree234

Ensure that the platform you're using supports the fnf embedding feature and that you have the correct permissions to embed content.