Read the statement by Michael Teeuw here.
MMM-pages - modules with same name on different pages
-
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 -
-
@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 -
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 -
@chassain…checked it without any reaction. I also added it as MMM-newsfeed in modules-folder and in config.js…but nothing happened.
-
@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 mmyou do not need to (and should not) edit the defaultmodules.js file
just use
{
module: “default/newsfeed2”
etc
} -
@sdetweil sorry…i did’nt remember :) thanks
-
@chassain-0 no big deal, I am just adding info.
-
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 -
don’t forget to change the name inside the file newsfeed2.js
-
I already did - no success.
Am I the only one with this requirement? -
@thgmirror i m going to work again with this. give me one minute
-
@thgmirror it works for me…
duplicate newsfeed’ folder to newfeed2…change the file inside to newsfeed2.js…change Module.register(“newsfeed”,{ to Module.register(“newsfeed2”,{
add module default/newsfeed2 in config.js… -
SUCCESS!!!
as a summery, I didcopy default/newsfeed to default/newsfeed2
changed the name of newsfeed.js in default/newsfeed2 to newsfeed2.js
changed Module.register(“newsfeed”,{ to Module.register(“newsfeed2”,{ in newsfeed2.js
entered module: “default/newsfeed2”, in config.jsThanks to Fozi, chassain and sdetweil for all your help.
Thomas -
perfect…thanks to sdetweill…i had the same problem before
-
Hi again,
now I need help for the same kind of duplication but now of the MMM-iFrame-modul. I did all he necessary steps analoge to my changes regarding the newsfeed-module. I added two entries to the config.js and both websides appear on the mirror, but only one responds to the updateInterval given in the parameter-section. The other one shows the websid without any refresh.
Any help is welcome;-)
Thomas -
As the news feed is the default module, so it would be difficult to get it on different pages along with different sources,
Alternatively you could copy some 3rd Party module and rename it as you have done earlier.However i did all my news feeds arranged on a single page just like this :
link text -
@pandeyprakhar00 any module can be duplicated… see the post a few back by @chassain-0 which describes the steps.
-
pandeyprakhar00, it is possible to duplicate the newsfeed-module, see the posts of @chassain-0 or my post some lines above. The issue here is, that I duplicated MMM-iFrame, but one of them did not refresh as respond to the updateInterval in the config.js.
-
@thgmirror have you tried your luck with MMM-SmartWebDisplay module ?
https://github.com/AgP42/MMM-SmartWebDisplay
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login