The HubSpot CMS is an extension of the HubSpot CRM. Use CRM objects like custom objects to build dynamically generated pages.
"hasUniqueValue": true
. Existing properties cannot be updated with this configuration, so you will need to create a new property for this field. For custom objects, create a new property by updating the object schema. For standard objects, create a new property by using the properties API.
Dynamic page property | Property type | Description |
---|---|---|
Dynamic page slug | text | The slug that will be appended to the CMS page URL for each details page. The property needs to be configured with "hasUniqueValue": true .The property value needs to be URL friendly, and must contain:
|
Page Title | text | The page’s title. |
Meta description | text | The page’s meta description. |
Featured image | text | The page’s featured image, which will appear when the page is shared. |
dynamic_page_crm_object
variable to access the data stored to the current dynamic page’s object instance.
To set up the details module:
module.html
field, add the following code:dynamic_page_crm_object
to retrieve the object record data. Object record data will be retrieved based on the object type set in the page editor.This makes the module useful outside of the context of a dynamic page as well, as you can use it to feature object records on dynamic pages by having multiple instances of the module./cars
."hasUniqueValue":true
will be available for selection. In our example, the page URL will use the VIN property, which will generate detail pages with the URL slug of: /cars/[VIN value]