I have a site that uses 2 template styles for 2 different domain names running on the same Joomla installation. (Both have the same root template.)
I'm creating a custom component and a specific task needs to display a view. I'm using parent::display() to switch the view.
The problem I'm running into is that Template A is the default template. When I run this task from a page on Template B, I get the desired results, but on Template A.
I need to get the desired results on the same template style as the one in use when the task is called.
How can I find out which style is active when the task is called? How can I set the correct style when I display the result?
Thanks in advance for any help. I'm stuck!