HubSpot Ideas

LPM

Include a "status" variable for pages

I've noticed that there's no way to determine a page's published status when getting the page data via hubl. This is an issue with multilingual pages, as there's no way to tell if the translated counterpart has been published or not. 

 

For example:

  • I have translated page in Chinese (HK)
  • I don't want to use the language switcher provided due to the labeling of the language being weird
  • Created my own one
  • Now I can't tell if the translated page is published or not. I can tell if one exists using publish_date, but if the page was created, published then unpublished, it's indistinguishable from a published page

I have looked at the content.translated_content['zh-hk'] data, as well as getting the page data using:

content_by_id(content.translated_content['zh-hk'].id)

 Would be very useful if this variable was added to the page object (or as data in content.translated_content['zh-hk'] )

0 Upvotes