..the feature called Locations, which is part of the template type Layout. It’s a way to match a set of location rules to the global query, to determine which layout template to load.
These rules have the same structure as conditional rules for the If tag, with subject, operator, value. So it might be possible to add a new attribute location that uses this function to evaluate a given location rule. It could look like…
<If location=search>
Search result
<Else if location=archive />
Post archive
</If>
Mentioned in L&L Forum: Global query context.