Multiple folder widgets different behaviour

Uldis
Uldis Member
edited February 24, 2023 in Smart View #1

Hi

I have a scenario where I'd like to load 2 folder widgets in the same page. Each widget shows different content. And for each widget there should be different configs. Is that possible?

As you can see in the code I tried defining global “configs” and then I tried to change “configs” just before 2nd widget call. Does not work.

What other options are there?

I'm pasting as picture since code block does not work for me, also code.txt inclduded

Tagged:

Comments

  • No comments?

    I see that Ferdinand is gone :(

    Who will save us now? :)

  • Hello @Uldis seems that Ferdinad is gone but we have fortunatelly his replace and the man is called @Jan Velas my colleague :) we do some similar stuff. Displaying one widget with different context. We can have a look till the end of the week :)

    different config would not be possible I would say if you does not extend widget and change config variable.

  • Thanks. Well the goal for us is to optimize the code we need to show 2 widgets in a single page.

    As it is now we load 2 widgets in different iframes, so there are 2 independed parallel calls.

    We'd like to have some common code to load the libraries, configs etc and then call the widget show 2 times basically with different configs