In this tutorial, Today we will explain how to get CMS Page configuration value of Magento 2 Store using GraphQL. Here you know about fetch all CMS page configuration data using storeConfig query.
Query a store’s CMS configuration
The following query returns all details of the store’s cms configuration.
Request:
1 2 3 4 5 6 7 8 9 10 11 12 |
Request: { storeConfig { front cms_home_page no_route cms_no_route cms_no_cookies show_cms_breadcrumbs } } |
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{ "data": { "storeConfig": { "front": "cms", "cms_home_page": "home", "no_route": "cms/noroute/index", "cms_no_route": "no-route", "cms_no_cookies": "enable-cookies", "show_cms_breadcrumbs": 1 } } } |
We hope this blog helps you to get the values of cms page configurations.
Thank You!
Hit 5 Stars if you find this post helpful
0 (based on 0 Reviews)