Anyone can give me some idea and how can we add a link on each deal item being display from the code above that redirect to a new page and see more details like. (dealname, amount, etc.). Thanks
I crare a test environment for you: https://codesandbox.io/s/strange-dhawan-ni1h6e . You need to change dealUrl and url paramenters for the pages you want to redirect. It might be impossible to fetch your website data from the outside, so I just put all content to the data.json file.
Hello Cereno,
Is it possible to fetch this page with json result like you have done on data.json
I did fetch the code from https://transforminator.com/_hcms/api/demo with inside code:
That data.json is fixed for demo purpose. I think you can use your original code and just change something like this to make each deal items can be linked to deal pages.
Hello sir. thanks for the reply.
I tried to paste the code you gave and tweak the url see the image below. The item are all clickable now and the domain did /deal/dealID but page is “Not Found”
by this code sir:
You need to use crm_object() of HubL on the “deal_local” page to get deal information. Remember to set that page is password protected.
If your HubSpot plan includes HubDB, it’s better to add a workflow to create/update HubDB deal table while any deals are changed. Then you can use HubL to get deal information from HubDB on public web pages.
Hello Cereno,
Is the data on JSON file will be dynamic if we add deals on hubspot does it will automatically be added to the json or still need to update the “data.json” ?