Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If tag: Add attribute location to match location rules to global query context #120

Open
eliot-akira opened this issue Jun 17, 2024 · 0 comments

Comments

@eliot-akira
Copy link
Contributor

Mentioned in L&L Forum: Global query context.

..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>
@eliot-akira eliot-akira changed the title If tag: Add rule location to match location rules to global query context If tag: Add attribute location to match location rules to global query context Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant