I have two questions. Help in any one of the two is greatly appreciated.
-
How can you get the section_id of the section you want to dynamically render using the Section Rendering API. Since the theme app extensions let you create block only you don’t really know the section where the block will be added and you can’t make use of the name of the block eg. on a section my_custom_section.liquid, use my_custom_section as the id in a static section.
-
Is there a way to pass custom query parameters to your section through Section Rendering API without relying on the content_for_header object? for example
// My JavaScript> > const url = new URL(window.location) url.searchParams.append(‘section_id’, ‘my_custom_section’)> > // custom query parameter> > url.searchParams.append(‘my_param’, 'Hi, Welcome Back to Our Store ')> > // My Liquid Section> > > > // get the Query parameter if possible> > {% assign my_param = request.param.my_param %} {{ my_param }}