• 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-pages - modules with same name on different pages

Scheduled Pinned Locked Moved Troubleshooting
22 Posts 5 Posters 6.3k Views 5 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.
  • T Offline
    thgmirror
    last edited by Apr 24, 2020, 1:06 PM

    Hi colleagues,
    I’m trying to have several modules with the same name on different pages, for example on page 1 newsfeed with news from Spiegel.de and on page 2 newsfeed with a different content…and may be more newsfeeds on following pages.
    Weeks ago I saw a way to duplicate a module and give it a new name…but I can’t remember where.
    Any help is welcome.
    Greetings
    Thomas

    1 Reply Last reply Reply Quote 0
    • F Offline
      Fozi Project Sponsor
      last edited by Apr 24, 2020, 2:10 PM

      See here:
      https://forum.magicmirror.builders/topic/12333/adding-duplicate-modules/2
      or
      https://forum.magicmirror.builders/topic/10982/how-to-run-two-instances-of-one-module/4
      or
      https://forum.magicmirror.builders/topic/10982/how-to-run-two-instances-of-one-module

      HowTo: Replace PIR Sensor with a RCWL-0516 Microwave Sensor

      T 1 Reply Last reply Apr 24, 2020, 2:33 PM Reply Quote 0
      • T Offline
        thgmirror @Fozi
        last edited by Apr 24, 2020, 2:33 PM

        @Fozi Thank you for your answer…these links I had in mind…and the idea behind Ialso tried in the past, but without success, any other suggestion?
        Thomas

        1 Reply Last reply Reply Quote 0
        • C Offline
          chassain 0
          last edited by Apr 24, 2020, 3:35 PM

          If i remember, for newsfeed it’s different because it’s a default module

          duplicate newsfeed as default/newsfeed2
          and add default/newsfeed2 in defaultmodules.js
          add the module in config.js and restart mm

          S 1 Reply Last reply Apr 24, 2020, 7:26 PM Reply Quote 0
          • T Offline
            thgmirror
            last edited by Apr 24, 2020, 7:13 PM

            @chassain…checked it without any reaction. I also added it as MMM-newsfeed in modules-folder and in config.js…but nothing happened.

            1 Reply Last reply Reply Quote 0
            • S Away
              sdetweil @chassain 0
              last edited by sdetweil Apr 24, 2020, 7:31 PM Apr 24, 2020, 7:26 PM

              @chassain-0 said in MMM-pages - modules with same name on different pages:

              and add default/newsfeed2 in defaultmodules.js
              add the module in config.js and restart mm

              you do not need to (and should not) edit the defaultmodules.js file

              just use
              {
              module: “default/newsfeed2”
              etc
              }

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              C 1 Reply Last reply Apr 24, 2020, 7:30 PM Reply Quote 0
              • C Offline
                chassain 0 @sdetweil
                last edited by Apr 24, 2020, 7:30 PM

                @sdetweil sorry…i did’nt remember :) thanks

                S 1 Reply Last reply Apr 24, 2020, 7:31 PM Reply Quote 0
                • S Away
                  sdetweil @chassain 0
                  last edited by Apr 24, 2020, 7:31 PM

                  @chassain-0 no big deal, I am just adding info.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 1
                  • T Offline
                    thgmirror
                    last edited by Apr 24, 2020, 8:28 PM

                    Hi again,

                    Non of these proposals work for me…or I’m too dump to understand it. I made different attemps: copied newsfeed2 parallel to newsfeed in the default-folder and added “default/newsfeed2” to config.js - no success. Then I made a default-folder under default - no success. I also tried “newsfeed2” in config.js - no success.
                    In any combination I change newsfeed.js to newsfeed2.js without success. Can someone with a running newsfeed-doublette enter a screenshot of the folder-structure and the config.js?
                    Thank you in advance
                    Thomas

                    C 1 Reply Last reply Apr 24, 2020, 8:36 PM Reply Quote 0
                    • C Offline
                      chassain 0 @thgmirror
                      last edited by Apr 24, 2020, 8:36 PM

                      don’t forget to change the name inside the file newsfeed2.js

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      1 / 3
                      • First post
                        1/22
                        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