Component: Can't get child parameters to pass right in shortcode

Hi, I am able to get parameters passing correctly for single components when I use shortcode. But I have a component that is a div with a text element inside it. The text element is the one with the parameter. (This is so the div can have a background image and the text element can pull in an article’s “featured text” based on what we include in the shortcode’s parameters.

I have selected “Enable Prefab” for the div element and call its ID in my shortcode. I then also include in my shortcode the parameter set in the child text element.

I have added dynamic content to the text element’s content area to pull the parameter content in once it is included in the shortcode.

Yet the output on the page when shortcode is used: the div image and text element load correctly, but the default parameter text gets pulled in instead of the dynamic parameter set with the shortcode.

I will add protected login info to this thread. The shortcode was added to the ‘Test Post’ post - this issue is happening in the Featured Text Component (not the article quoteblock component - that one works fine).

Thank you!

Hello @mattmintun,

Thanks for writing in! I am not following what you are trying to achieve here. When I test the component shortcode, I get this:

Please clarify further. Thanks.

Not that component. That’s the Article Quoteblock. That works fine.

I’m having trouble with the FEATURED TEXT block underneath that.

Hello @mattmintun,

The parameter should be placed in the “Featured Text Block” element so that in can be inherited the the child element.

Best Regards.

Perfect! Thank you for the easy fix. It wasn’t clear where to put the parameter JSON code when dealing with parent / child elements.

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.