# Html/module as Object property

**URL:** <https://community.hubspot.com/t/html-module-as-object-property/87481>\
**Category:** CMS Development\
**Tags:** html\
**Created:** [August 15, 2023, 7:02am UTC](https://community.hubspot.com/t/html-module-as-object-property/87481 "2023-08-15T07:02:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MNorrelokke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnorrelokke/32/47020_2.png) [@MNorrelokke](https://community.hubspot.com/u/MNorrelokke)\
**Post date:** [August 15, 2023, 7:02am UTC](https://community.hubspot.com/t/html-module-as-object-property/87481/1 "2023-08-15T07:02:23Z")

</div>

Hi!  
Im creating a new webpage, and my goal is to show products in a grid (image with link to product page onclick) and on the product page I want to show all information about the products.  
But all the products are different, and therefore I would want the content to be editable for each product.  
I have decided to use the Objects “products” and adding properties to the objects works fine for displaying texts and images. But one portion of the productspage I would like to be able to use HTML to edit the content. Is this posible somehow? I tried adding a property “File” and noticed that I could write html into that text box. But Im guessing its not seposed to work like that. Adding css styling in the html will not work, so I think theres maybe a better way I dont know about. Any Ideas?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 16, 2023, 5:00pm UTC](https://community.hubspot.com/t/html-module-as-object-property/87481/2 "2023-08-16T17:00:37Z")

</div>

Hey, @MNorrelokke 👋 Thank you for the interesting question.

As you’ve found, your approach is creative and has limitations. When I hear what you are describing, it sounds like a strong candidate for leveraging [HubDB](https://developers.hubspot.com/docs/cms/data/hubdb). Does your HubSpot portal have access to this feature? Thinking broadly, it might look like this:

- HubDB — gives you columns for your product image, name, description, price, and even a **rich text column** for detailed descriptions or any other content that might need HTML formatting
- HubDB — you can use HubL to loop through your rows and dynamically render them
- HubDB — in-app interface so non-developers can update info
- Create a custom module and populate it from your HubDB based on the products being viewed
- Create a ‘class’ or ‘id’ property for each product. This can be used to keep your styling in a stylesheet and not mixed in with the content

If you don’t have access to HubDB, you could still consider using a Custom Module.

Create a module to hold

- Image Field: For the product image.  
Rich Text Field: For detailed product descriptions or any content that might require HTML formatting.  
Link Field: To link to the product detail page.  
Text Fields: For any other static information like product name, SKU, price, etc.  
Choice Field

Add the module multiple times to your template. Fill in the details for each product manually.

These are general suggestions. I hope they help get you pointed in the right direction. Or at lease help rule out some other available options.

Have fun building! — Jaycee

---

<div class="post-metadata">

**Author:** ![MNorrelokke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mnorrelokke/32/47020_2.png) [@MNorrelokke](https://community.hubspot.com/u/MNorrelokke)\
**Post date:** [September 12, 2023, 2:45pm UTC](https://community.hubspot.com/t/html-module-as-object-property/87481/3 "2023-09-12T14:45:57Z")

</div>

Hi Jaycee,

Thank you for your input! Yes I have access to HubDB, I tried using that instead  
but I get the same problem. Both HubDB and Custom modules has the Rich text column  
as far as my understanding goes. But the rich text editor does not allow me to write html code, or css. From my perspective it looks like its just generating text. Here are an example from the rich text editor in HubDB,  
Am I using it wrong?

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/2/c23f142a59410b6527c0ac02503b9d5c06853ef8.png)  
Output of this:

 ![Skärmbild 2023-09-12 164101.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/0/90f9a88c9109b0baaadcd4d84360983a112bf93f.png)

Thank you in advance!
