Select to view content in your preferred language

Moving Widgets In or Out of the Header or Footer

942
0
10-24-2023 01:59 PM
JeffreyThompson2
MVP Regular Contributor
11 0 942

Have you ever dropped in a widget into your page, got all the options and interactions set up just the way you want it and then realized it should really be in a Widget Controller in your header. So you drag your widget up to put it in the header, only to find there is an impenetrable force field keeping your widget from where you want it to be. So, you sigh and delete your widget and configure it all again in the header?

I've done it. Multiple times.

But don't, there is an easier way. You can't just move a widget in or out of a header, but you can copy it in.

  1. Click the widget you want to move.
  2. Use ctrl-C on your keyboard.
  3. Click on the Edit Header button.
  4. Use Ctrl-V on your keyboard. A copy of your widget with all of your configuration should now be in your header. 
  5. Drag the widget into the Widget Controller and fix the title. (It will be Widget 2 now.)
  6. Delete the old widget.

Bonus Tip: Headers and Footers are only useful if you are planning to reuse items in a multi-page Experience. If you are making a single page application, save yourself the hassle and use one of the Layout widgets.

About the Author
A frequently confused rock-hound that writes ugly, but usually functional code.