How do you take a backup of widgets?


  • GNU/Linux

    @Staff Is there a way to take a backup of widgets (custom html and nodebb plugins based widgets) into a dump or json?

    We have 30+ widgets added on a forum and it is always a such a nerve wracking experience when the forum is upgraded to a new version. Similar to https://community.nodebb.org/topic/11685/update-to-1-7-2-from-1-7-0-removed-all-code-from-custom-header/10 there have been couple of instances where all our widgets moved to draft area. So would love to find a way to backup a working setup and restore if things go haywire.


  • Global Moderator

    We recommend you backup your entire database before upgrade. There's no way to specifically download a json file for your widgets but you could extract it from your database.



  • @fais3000 said in How do you take a backup of widgets?:

    @Staff Is there a way to take a backup of widgets (custom html and nodebb plugins based widgets) into a dump or json?

    We have 30+ widgets added on a forum and it is always a such a nerve wracking experience when the forum is upgraded to a new version. Similar to https://community.nodebb.org/topic/11685/update-to-1-7-2-from-1-7-0-removed-all-code-from-custom-header/10 there have been couple of instances where all our widgets moved to draft area. So would love to find a way to backup a working setup and restore if things go haywire.

    yes, we are having the same experience each time we renew the forum. even changing theme puts all widgets in the draft area... it would be great if nodebb remembers where each widget was...

    but in the meantime, we found this trick to put them faster in places...since most of them do not have a publicly visible titles in containers, we named them according to tpl name and order number besides regular names... such as topic h1 / topic h2 / topic f1/ topic f2 / topic f3 ... so we know the order / tpl name / footer-header area... But I agree it is not practical to move them from the draft list to each area... especially when there are already many draft widgets on the list for occasional use... unfortunately forum moves all the active widgets to the bottom of the list...


  • GNU/Linux Admin

    Yes, this is a known issue... whenever you switch themes, all of the widgets are moved to the draft area for safekeeping.

    The reason is because not all themes contain all of the widget areas, and some themes can define their own extra widget areas.

    If we kept the widgets in place, they might end up disappearing (because the widget area does not exist), but also disappeared from the ACP!

    So we move them all to draft so the admin can see them all and reorder them as necessary 🙂


  • GNU/Linux

    @crazycells Yea for now we do the same too. I'll look into specific query to backup widgets only as a safe measure.


Log in to reply
 

Suggested Topics

| |