I'm building a custom module that sits in one position (the header). I'd like this module to write content to another position on the page (the mainBody). Is this possible?
To expand a little, the mainBody holds a group of tabs, and the header contains the buttons for choosing those tabs. The mainBody sits directly below the header, so to the user they appear as one coherent element, but in the html produced by my template, the header and the mainBody are separated by a floating sideBar.
As a workaround, I'm building two modules, one for the buttons and one for the tabs, assigned to the header and the mainBody respectively. But this feels counterintuitive, since the two modules will always appear together and must both be assigned to the same pages. It's also more cumbersome from a development point of view, since the two modules are sharing variables.
Should I continue down the route of making two modules in two different positions? Or is it possible to write page content to a distinct position directly from within a module? If so, how? Thanks for your help! (Joomla 3.5.1)