• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-Modal

Scheduled Pinned Locked Moved System
modaldialogtouch controlvoice control
14 Posts 5 Posters 3.9k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    A Former User @sdetweil
    last edited by Oct 15, 2021, 4:44 PM

    This post is deleted!
    S 1 Reply Last reply Oct 15, 2021, 6:19 PM Reply Quote 0
    • ? Offline
      A Former User
      last edited by Oct 15, 2021, 6:15 PM

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @Guest
        last edited by Oct 15, 2021, 6:19 PM

        @hango is a bug, doesn’t use the template name

        edit the MMM-Modal.js , add the one line below after line 236

                    if (!sender) {
                        modal = {
                            identifier: this.identifier,
                            senderName: this.name,
                            template: 'templates/HelpModal.njk',
                            data: this.voice,
                            options: {}
                        }
                    } else {
                        modal.senderName = sender.name;
                        modal.identifier = sender.identifier;
                        modal.options = modal.options || {};
                        modal.data = modal.data || {};
                        modal.template:  modal.template || 'templates/HelpModal.njk',  // add this line
                    }
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          strawberry 3.141 Project Sponsor Module Developer @Guest
          last edited by Oct 18, 2021, 4:11 PM

          @hango I responded with an MVP of a custom module using the modal in the related Github issue https://github.com/fewieden/MMM-Modal/issues/17

          Please create a github issue if you need help, so I can keep track

          1 Reply Last reply Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer
            last edited by Jan 30, 2022, 9:44 AM

            With MMM-NFL another module has now integrated the modals.

            Statistic modal

            See the full list at https://github.com/fewieden/MMM-Modal/wiki/Depending-Modules

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • 1
            • 2
            • 2 / 2
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy