• 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] Different "newsfeeds" on serveral pages

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 3 Posters 846 Views 3 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.
  • C Offline
    c.keen
    last edited by Feb 17, 2021, 8:21 PM

    Hello,
    I am using MMM-Pages on rotation and want to add different newsfeeds on several pages. For example: The New York Times newsfeed should be on page 1, the Spiegel Online newsfeed should be on page 2.
    I copied the module in my config.js and created two newsfeeds. So far, this works without any problems when displayed on the same page.

    But using MMM-Pages I have to decide on which page the newsfeed module appears.

    Can you please help me to seperate the newsfeeds?

    I tried something like [“newsfeed” {name: “Spiegel Online”}], [“newsfeed” {name:“New York Times”}] but this didn’t work for me.

    Thank you very much in advance.
    Regards,
    C. Keen

    S 1 Reply Last reply Feb 17, 2021, 11:44 PM Reply Quote 0
    • S Offline
      sdetweil @c.keen
      last edited by sdetweil Feb 18, 2021, 12:29 AM Feb 17, 2021, 11:44 PM

      @c-keen note that the name of the module is NOT its module: name
      but its class name

      module:name,
      classes:“abc name foo”,

      so you can give each instance a unique class name and use that

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • J Offline
        J2FK
        last edited by Feb 28, 2024, 5:32 PM

        Hello,
        coming back to this topic. I have the same problem. I use MMM-Pages with 6 pages and i would like to have different calendars on different pages.

        For example:
        page 1: our home calendar, my work calendar and a birthday calendar.
        page 2: Formula 1 calendar and MotoGP calendar, all google calendars.

        On page 1, the 3 calendars are lined up as they should be.

        When I, of course, enter “calendar”, on a different page in the string of MMM-pages, it displays all calendars, which of course I don’t want.
        How can I distinguish between the different calendars?
        I hope this is somewhat clear.
        Can anyone give an example?
        Thanks in advance.

        S 1 Reply Last reply Feb 28, 2024, 7:44 PM Reply Quote 0
        • S Offline
          sdetweil @J2FK
          last edited by sdetweil Feb 28, 2024, 7:44 PM Feb 28, 2024, 7:44 PM

          @J2FK see the doc on my fork, there is no code change

          https://github.com/sdetweil/MMM-pages#using-the-module

          see the ‘alternative approach’

          makes all these issues go away

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          J 1 Reply Last reply Feb 29, 2024, 12:38 PM Reply Quote 1
          • J Offline
            J2FK @sdetweil
            last edited by Feb 29, 2024, 12:38 PM

            @sdetweil Thanks a lot!!
            This was the trick I was looking for…
            I’ve read so many posts and topics, but I hadn’t come across this yet… or I didn’t read properly :astonished_face:

            Thumbs up and keep up the good work!!!

            S 1 Reply Last reply Feb 29, 2024, 1:49 PM Reply Quote 0
            • S Offline
              sdetweil @J2FK
              last edited by Feb 29, 2024, 1:49 PM

              @J2FK awesome! glad it helped

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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