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 is it possible to name the pages, i.e. weather, stocks, etc...

    Scheduled Pinned Locked Moved Forum
    4 Posts 2 Posters 6 Views 2 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.
    • J Offline
      JeanMichelC
      last edited by

      Hi, I am grouping modules by pages and wonder if it is possible to name each pages, like a header.
      For example, all the weather modules are under the weather pages, stocks, under stick, etc…

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        sdetweil @JeanMichelC
        last edited by sdetweil

        @JeanMichelC using the classes approach you can name the page groups anything you like

        Page1
        Weather
        Mom
        Dad
        Stocks

        Whatever

        Then in each module config
        Add the

        classes:"Page1 Mom",
        

        List of pages this module should appear on

        The classes keyword goes with the module: property, outside the modules config:{…}. Section
        The string for classes is the space separated list of names

        If you want a module to appear on every page, then the name would be the nice name you use for the fixed: property in pages config. I call that “every_page”, cause it makes sense

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @JeanMichelC
          last edited by sdetweil

          @JeanMichelC it doesn’t matter where the modules are listed in config.js. The classes property will group them

          MagicMirror can only show or hide modules. There is an api used by the pages module to find modules by class name.

          The module name or the page group name are both classes used by that spi

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @sdetweil
            last edited by

            From the pages doc

            IMG_5028.png

            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