Eureka, the missing link!
I am pretty sure this question has been around for quite some time (even by myself), however I have never gotten a correct answer or seen a working example before. Until now!
How do you pass a variable from a Page Template, or Component Template, to another Component Template (using compound templating).
This post by Will Price seems to be the solution! I have yet to try it, but why would it not work, right? Thanks for posting!
A very useful functionality where it is needed to have a central content and structure publication, but does not have a site behind it. I have seen a few instances where this was solved via an elaborate Event system (bad!) or even a fake site (bad!).
So, this is a good one to remember!
OK, so be warned up front that impersonation in the Template code is actually a bod practice. If done improperly it will look worse than this Elvis Presley impersonator!
So, that was the warning, if you would still like to continue and read about how it can be done take a look at Mihai Cadariu’s example code.