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