Update pages with theme definitions

Update pages with theme definitions

  

Is there a way to automatically update pages when i select a different menu for the theme?

Solution

Hi Mário,

  • You can right-click on the Menu Webblock.
  • Select "Find Usages"
  • Click on "Replace all usages with" (on the bottom)
  • Select the other Menu Webblock.

This will replace all instances of the Menu by your other Menu.

See if it works for you.

Cheers,

José

Solution

Hi Mário,

You can do this with the help of expression,

1. Add new menu in menu bar, 

2. also add one expression there below the menu bar, 

3. Add new text local variable to the menu web block,

4. set value property of expression to newly created variable

5. Set escape content property of expression to no

6. Add new action on menu click

7. assign your new css to that veriable into that action like

<script>
body{
background-color:red;
}
</script>

this will override your existing css

José Costa wrote:

Hi Mário,

  • You can right-click on the Menu Webblock.
  • Select "Find Usages"
  • Click on "Replace all usages with" (on the bottom)
  • Select the other Menu Webblock.

This will replace all instances of the Menu by your other Menu.

See if it works for you.

Cheers,

José


How i didn't thought on that! Thanks