I am passing a URL parameter called “suppress_title” and giving it a 1.
This drives a Render condition on the included page (which works fine when I load the page directly in the browser), but refuses to work through the page include!! What am I doing wrong?
Here is the relevant bit of XML for the included page. Incidentally, the {{}} parameter passes and works fine, it’s on the static (hardcoded) one that doesn’t work.
Unfortuantely the answer is not a good one. The client side code that processes parameters in a page currently only looks at page parameters. For example if you put a template on your include page and use the merge syntax {{$Param. suppress_title}} it will return blank. This means that conditional rendering will not work in the way you are describing.
You will have to come up with some other way to control the contents of your page include. Sorry.
when i inspect element on some item in the included page and then filter the network tab for my URL param, i get no matches… yet the include is rendering, but just not with parameter passed…
UPDATE: I found it… just needed to keep the network tab open as I clicked through my wizard…
thanks Rob. But I’m not understanding your explanation of why this doesn’t work… I can create a new page, so no big deal, really, but I’d like to properly understand why this won’t work as desired… I’m not quite following your description… Cheers Brad
thanks Rob. But I’m not understanding your explanation of why this doesn’t work… I can create a new page, so no big deal, really, but I’d like to properly understand why this won’t work as desired… I’m not quite following your description… Cheers Brad
Ok here is more volume. I"m not sure it will be more clarity.
When you activate a page include, the query string parameter is passed to Skuid’s server side processing for use in retrieving the correct data and passing it back to the window.
However, the parameter is not then exposed for use in the page. If you open the browser console and type “skuid.page.params” You will not see the parameters that were passed in the page include.
On the client the only parameters that are recognized are the ones that came in the initial page load. This means that the client side code that looks to parameters cannot see or use the ones you passed into your page include. This includes Conditional Rendering.