CMS Development

bluejaye
Member

How to read Page Developer Info by using HubL?

Hi guys

 

I have a requirement which ask me to fetch information from an existing page. so I use HubL function page_by_id to get the page. 

 

I use page developer info tool to view all available information in the page. There're so many properies in the json. But I find out that some properties can be used but most of other cannot be used.

 

some common properties like name, title, absolute_url can be fetched by {{my_page.name}}. Some other properties like buffer_mode, site_settings etc will not working.

 

Anyone know the reason please?

 

 

Thank you a lot

0 Upvotes
1 Reply 1
TRooInbound
Key Advisor

How to read Page Developer Info by using HubL?

Hi @bluejaye,

 

You can read page developer info by using hubl as below syntax.

 

To read buffer_mode values e.g. is_content_buffer require below code

{{ buffer_mode.is_content_buffer }}

To read site_settings values e.g. logo_src require below code

{{ domain_settings.site_settings.logo_src }}

Hope it works for you

 

Did our post help answer your query? Help the Community by marking it as a solution.

 

Team TRooInbound | hello@trooinbound.com | https://www.trooinbound.com

0 Upvotes