I have what is for me a complicated project in which I have two different templates on the same joomla installation. I want people who come to the site via a redirect from subdomain1.mysite.org to always see one template and people who come from subdomain2.mysite.org to always see the other template.
I've done pretty well, but I have some places where I could not figure out how to get the right template because there was not a fixed menu link. In particular, I am using the great/torturous lmtg_myhomepage which creates a separate link for each user using $my. Usually, you either access the page through the myhomepage menu module (which isn't really a joomla menu, it is just an ordered list of the users pages) or through a link in content using moslate. That is to say, no real menu link. So then my problem is: how can I assign the template to these pages?
i realized that the problem (or at least one problem) is no itemid. So, after struggling with it for a while, I came up with making the link (a url link and/or a link in a content page) and putting an itemid from a page with the right template at the end. It works--but this can't possibly be a good idea, can it?

