Git Product home page Git Product logo

cms-custom-objects-example's Introduction

CMS Custom Objects Example

This project demonstrates how custom objects can be used inside the HubSpot CMS.

Sign up to the beta (REQUIRED)

To try this custom objects example you'll need access to some beta functionality. Specifically you'll need to participate in our CRM objects in CMS and CMR Object Field betas.

The sign up form requires a password, as this was announced as part of Developer Day our resources page contains the password at the bottom of the page. Sign up for these betas and more

Getting started

Before getting started, you'll need an account that has CMS Hub Enterprise and access to the API Key.

  1. Clone this repo to your machine
  2. Install dependencies via npm install
  3. If you already have a hubspot.config.yml file set up, you will need to run hs auth and generate a new personalaccesskey that includes the "Custom Objects" permission. Otherwise, run hs init to set up your config file. Make sure to include the "Custom Objects" permission. More info on setting up the config file can be found here.

image

  1. Run npm run setup to create the custom schema and custom object
  2. Copy the API key for your portal from HubSpot API key. You will need to create one if you haven't already. More info on API Keys can be found here.
  3. Add your API key by running hs secrets add APIKEY <apikey> using your API key from step 5. This will allow the serverless function used when submitting the form to make authenticated calls.
  4. Create a form that contains the following fields:
  • First Name
  • Last Name
  • Email Address
  1. Upload the hub-homes folder from the repo to your portal by running npm run upload
  2. Create a website page that will display property details by using the "Details page" (details.html) template. The slug for for Details page must be /property; you can change the content slug under the page's settings. Additionally, in the "Property Details Module", you'll need to choose the form that you created in step 7.
  3. Create a website page that will display all property listings by using the "Home page" (property-listings.html) template
  4. View the newly created page from step 10.

cms-custom-objects-example's People

Contributors

anthmatic avatar drewjenkins avatar gcorne avatar jasonnrosa avatar johnsfuller avatar kemmerle avatar miketalley avatar thewebtech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cms-custom-objects-example's Issues

Factor in an associated object

We should factor in an associated object to help illustrate how to utilize the crm_associations HubL function for more complex data relationships.

Suggested updates

  • Add dynamic pages examples.
  • add pagination example with crm_objects
  • module for listing and detail should be useful on non dynamic pages as there's nothing preventing their use on normal pages.
  • change example to be something other than real-estate -"properties.properties" is very confusing, additionally unless we include an API aspect of this where we pull the custom object data from the MLS it's potentially setting a confusing expectation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.