I have a module that produce a page with a tpl.php containing a script. This script depends on socket.io.js, and this file is declared at the beginning of the page.
I'd like to change the organisation of the module to have the script executed from a js file.
I am adding a back to top button using back to top module of druple 8. I want to customize this button according to my site. Can anyone tell me in which file should I customize it according to what I need. It will be really helpful.
My customer has an entity called 'doctor' that has many fields and has several views depending on which audience. Display Suites would seem to be able to create a custom view mode where she can move the fields around as needed for each view mode. The problem is how to programmatically change the view_mode.