Read the statement by Michael Teeuw here.
Dynamically Moving Modules
-
I’m trying to dynamically move the modules on the screen, but I’m don’t know where to start. I’m able to identify all the modules loaded and hide and show them, but I’m not sure how to move them. I tried updating the module.config.position and the module.data.position but it did nothing. Can anyone shed some light on this for me.
-
@reporter500 this isn’t a supported feature
-
I knew it wasn’t supported, but I wanted to see if anyone was doing any custom development that might have solve this.
-
It needs some trick.
- Get node of region container.
- Draw your dom and insert into region container node in
getDom(). Your dom’s root node should have classname ‘module’. - Set region container display style to
block.
Good luck!
Ps. I use this trick in currently developing module. It works well.
-
@Sean said in Dynamically Moving Modules:
Ps. I use this trick in currently developing module. It works well.
OH do tell LOL
-
@Sean Perfect! Thank you.
-
This version of MMM-Carousel will allow you to set different locations for a module for different slides:
[card:shbatm/MMM-Carousel]
See the very bottom of the README for more information
If you’re interested in incorporating this into your own module, the relevant parts of the code are here and here
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