CMS Development

MKottise
Contributor

Code line to display when the page was updated

SOLVE

My client requested a solution that is technically out of my reach, so I need your help.

 

Basically, my client has a hub page, it lists a bunch of landing pages, each of them features an article.

 

Now client wants that in this hub page, there is a date displayed that auto-updates every time that any of those landing pages are updated in Hubspot.

 

I hope I am explaining this correctly. Does any one of you know, if this is remotely possible? I know it's possible with blogs, but is it also possible in case of landing pages?

 

Also if this is not the right place to ask, please let me know where to go or with whom should I talk to.

 

Thanks in advance!

0 Upvotes
1 Accepted solution
JMair
Solution
Participant | Diamond Partner
Participant | Diamond Partner

Code line to display when the page was updated

SOLVE

You can use the "content.updated" HUBL variable to show the UNIX Timestamp of the last of an asset (Landingpage, Webpage etc.)

 

For HUBL this could look like: 

 

{{ to_local_time(content.updated) }}

 

 

For reference:

https://developers.hubspot.com/docs/cms/hubl/variables

https://developers.hubspot.com/docs/cms/hubl/filters

View solution in original post

2 Replies 2
JMair
Solution
Participant | Diamond Partner
Participant | Diamond Partner

Code line to display when the page was updated

SOLVE

You can use the "content.updated" HUBL variable to show the UNIX Timestamp of the last of an asset (Landingpage, Webpage etc.)

 

For HUBL this could look like: 

 

{{ to_local_time(content.updated) }}

 

 

For reference:

https://developers.hubspot.com/docs/cms/hubl/variables

https://developers.hubspot.com/docs/cms/hubl/filters

MKottise
Contributor

Code line to display when the page was updated

SOLVE

Thank you, this helped me towards the right direction!

0 Upvotes