How to embed rich text fields

Hi,
Is it possible to embed rich text fields?

This is our problem.

We need a custom html module in the builder, but the builder does not allow to embed fields from the knowledge graph. How do we manage this? We map the html module to a field in the knowledge graph, and that field contains html + embedded fields.

This workaround works, but we can not embed rich text fields so the frontend of the page is really poor.

Thanks!

Hi @Lolo_Riazzo! It isn’t possible today to embed rich text fields to other fields in KG since other field types don’t support rich text.

Can you please explain more the use case on why you want to embed a rich text field into a non-rich text field? Thanks!

It is because we need a custom html module in the builder in order to get info from KG and then building a H1 header and a rich-text main paragraph . The builder itself does not allow to embed fields from the knowledge graph, isn’t it?

Therefore, we map the html module to a field in the knowledge graph, and that field contains html + embedded fields. This way we can build custom pages with dynamic H1 and main paragraph but we can not show rich text in the main paragraph.

Any other workaround is welcome!

Hi @Lolo_Riazzo! As Sam mentioned, it is not possible to embed rich text fields to non-rich text fields in KG since other field types do not support rich text.

One workaround that you could try here is to input your main paragraph content in a non-rich text field. If you are looking to style the text within your main paragraph, you could add html tags directly around the content that you would like to add custom styling for. (Example below)
image

From there, you could either embed the field into another broader non-rich text field, or you can link that field to your HTML module in page builder. Within Page Builder using the built in CSS editor, you would then be able to style the content using the HTML tags contained in the linked field according to your preferences (example below, with HTML module linked to the “Test Multi Line Field w HTML2” KG field). However, this workaround would not be recommended if you are also using these fields outside of Pages.

Feel free to let me know if you have any additional questions with this workaround.

Thank you @fcfinjap , we will have a look and come back to you.

Regards!