Pass data to reusable element from the parent element

I have an interesting case because I’m nesting reusable elements.

So I have a reusable Header and a reusable Footer

In BOTH of those reusable elements, I have an additional reusable Logo Element.

I’d like the Logo Element to know whether it’s being “called” from the Header or from the Footer because that affects certain aspects of how it’s represented.

How can I do this?

It seems like when I put in the Logo Element reusable element into the Footer, I can add Arbitrary text as a Data source, but I’m not sure how to then reference this when I’m editing the Logo Element reusable element itself.

normally on the logo I’d have a field to select what type of logo to display

therefore in the header I could show full logo, in footer I could show emblem logo etc

if you really want to pass the thing to the logo and then do the logic on the logo reuseable then just a text param on the reuseable would suffice, or even an option set

In the logo reusable “logo”, you can reference it by logo:text, I think.

@mitchbaylis can you provide more info on the text param on the reusable, I really couldn’t figure it out. So when I’m in design mode for the Header element and I drop in the reusable Logo, is this where I’d put the text param? And where would I put it? And then how would I get access to it when I’m in design mode for the Logo element?

@net-tt same question, can you provide an example?

You can’t assign a value to the resuable’s data source in the design mode. You can add a parameter, then you can add a value to the parameter in the design mode.

@net-tt can you show me where to add a parameter to the Reusable logo element from the Reusable Header element? I’m not sure how to do what you’re saying

Sorry, it is called properties.

@net-tt wow - i can’t believe i just discovered that; exactly what i needed thanks!

This topic was automatically closed after 70 days. New replies are no longer allowed.