I have a template that needs to include a section in the header on some pages. I could use a module for this. But in only shows up on some pages, and that needs to be determined at article level. So "article a" would have the extra content and "article b" would not. I don't like the idea of a hidden menu because there could potentially be thousands of these articles and it requires an extra step for the authors. It seems like the best solution might be an alternate layout, which could be selected while creating or editing the article. So the question is, how can I turn the module on and off based on the alternate layout? Can I get the value of the alternate layout and do something with that (call a file with the same name for instance)?
EDIT: At this point I am simply trying to determine if an alternate layout is in use and if it is, what it is named. I am trying to access this in a template override (templates/mytemplate/index.php)