It doesn't link to the src I defined, the alt text is different, and it adds all kinds of styles that I didn't request. How can I add my own fields to the @hubspot/linked-image module?
Additionally, I tried looking up some sort of documentation on how to assign default values to {% dnd_modules %}, but I found that and this article very uninformative. Some of those images are from 2018 and the design manager looks nothing like that anymore. How can I find out updated documentation on which fields are available for each dnd_module? What syntax can I use for each value type? text='Hello' seems to work, but color={r: 255, g: 255, b: 255, a: 1} doesn't work.
But I don't think it's really going to give you the answer you're looking for.
If you look at how the module works on the edit screen there is no "100%". What you'd do is set size to auto adjust, set max-size to custom and max-width to something really high (assuming your css already sets max-width:100% on images so it's not overflowing the page)
But I don't think it's really going to give you the answer you're looking for.
If you look at how the module works on the edit screen there is no "100%". What you'd do is set size to auto adjust, set max-size to custom and max-width to something really high (assuming your css already sets max-width:100% on images so it's not overflowing the page)
How do I add a specific image to a page template file?
SOLVE
Oh, thank you so much for that video! The "Copy as HubL" button is exactly what I was looking for! I'm not sure why the button is so well hidden... it could've saved me a full week's worth of work if it was always available. Thanks again!
How do I add a specific image to a page template file?
SOLVE
Thank you for your answer! That does solve the img.src attribute. However, is there documentation for all the attributes available per module? Right now I'm stuck on the width being automatically assigned "200px", and I want it at "100%". I don't want to bother you with a new question for every single property, so is there documentation for me to find all the properties available in the module? I'm trying to look at the linked_image module source code, and all I see is width = module.width... where does the resizing actually take place?