- module_block is not a seperate thing from modules. It’s a type of syntax for accessing modules and updating the values of the fields. Most of the time you would only be using this if you’re needing to add large amounts of HTML to rich text fields as doing so in a {% module %} value can easily cause errors. The majority of the time you would just use the {% module %} syntax.
- The example provided is for accessing a custom module where the path is the relative path to a module you have built. If accessing a default Hubspot module you would change the path to that of the default HubSpot module.
- rich_text_field_variable is the name of the field you’re updating
- type_of_module is the ‘module’ you see directly after ‘module_block’ in the example. In widget_block this was usually something like rich_text or raw_html as, before going modular, HubSpot had particular types tied to their modules. So, basically, now you would never change that from ‘module’. It might have been left in V2 just for the purpose of not breaking old usage of widget_block??
