Skip to content

Where are widgets stored?

Solved Configure
3 2 850 1
  • Im away from home and only have access to mobile devices, and none of those allow me to create a widget. Can’t drag the html element into the (say) header section. Thats not working in mobile or ‘Desktop mode’ mobile, as the touch screen wont grab the item like a mouse click does.
    I was curious if I can create this widget directly as can SSH into my nodebb file system. So question:
    Is Widget code stored in the MongoDB database, or is it just a file in the NodeBB file system?
    In principle can I create a file that would then be picked up as a Widget. I guess if it is stored as a file, somewhere it must say what category and position on screen it applies to.

  • Im away from home and only have access to mobile devices, and none of those allow me to create a widget. Can’t drag the html element into the (say) header section. Thats not working in mobile or ‘Desktop mode’ mobile, as the touch screen wont grab the item like a mouse click does.
    I was curious if I can create this widget directly as can SSH into my nodebb file system. So question:
    Is Widget code stored in the MongoDB database, or is it just a file in the NodeBB file system?
    In principle can I create a file that would then be picked up as a Widget. I guess if it is stored as a file, somewhere it must say what category and position on screen it applies to.

    @Panda widgets are stored in the Mongo database. I can set the widget up for you if you PM me site details etc.

  • @Panda widgets are stored in the Mongo database. I can set the widget up for you if you PM me site details etc.

    @phenomlab Thanks, have DMed you

  • Pandaundefined Panda has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Opening links in nodebb widget

    Solved Configure nodebb
    6
    4 Votes
    6 Posts
    2k Views
    A more efficient way of including this would be to not over complicate it and leverage a standard iframe (providing the CSP headers of the remote site permit this) like below <iframe src="https://www.classmarker.com/online-test/start/?quiz=gag66aea7922f0a5" width="700" height="800"></iframe> This works first time every time on your site as intended.
  • Smart Widgets

    Solved Configure nodebb
    9
    3 Votes
    9 Posts
    1k Views
    @Panda said in Smart Widgets: So why is that, or conversely why would the function to expose username ever be required, as it seems app.user is already an available global object? It is, yes, but not if you are using it outside of a widget. The function I wrote is also historical and comes from the 2.x train
  • Further Widgets question

    Solved Configure nodebb
    4
    1
    1 Votes
    4 Posts
    831 Views
    @Panda category is for a category in its own, so for example, “fruit” whereas categories is the page that contains all categories as a list.
  • build nodebb Warning in entrypoint size limit

    Solved Performance nodebb
    2
    0 Votes
    2 Posts
    735 Views
    @eeeee they are nothing to worry about, and can be ignored.
  • NodeBB: Consent page

    Solved Configure nodebb consent
    16
    4 Votes
    16 Posts
    4k Views
    @DownPW I still do not see any issues.
  • NodeBB: The global Search option

    Solved Configure search nodebb
    5
    0 Votes
    5 Posts
    799 Views
    @mventures Yes, exactly. The other icon will restart NodeBB whilst the first icon I referenced will rebuild (recompile) it. The huge strength of NodeBB over Flarum (for example) is that the code is precompiled, and called once at boot. PHP’s code has to repeatedly reload code from source making it much slower.
  • Bootstrap Version

    Solved Customisation nodebb bootstrap
    8
    5 Votes
    8 Posts
    1k Views
    @phenomlab That will be nice once they have completed that. It will be interesting to see how long that takes. So for now I will use custom css to make it look the way I want. Frameworks just make things a little faster. Thanks @phenomlab
  • [NodeBB] greeting message

    Solved Customisation css nodebb javascript
    2
    1
    3 Votes
    2 Posts
    1k Views
    @pwsincd welcome to sudonix, and thanks for the comments. What your looking for is here https://sudonix.com/topic/195/nodebb-welcome-message/3?_=1648295651358