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

[4.x] Add get_site tag #9580

Open
wants to merge 6 commits into
base: 4.x
Choose a base branch
from
Open

[4.x] Add get_site tag #9580

wants to merge 6 commits into from

Conversation

aerni
Copy link
Contributor

@aerni aerni commented Feb 23, 2024

This PR takes another stab at #9567 by introducing a new get_site tag.

Use as tag pair:

{{ get_site:english }}
    {{ permalink }}
{{ /get_site:english }}

You can also get the site dynamically:

{{ get_site handle="{handle}" }}
    {{ permalink }}
{{ /get_site }}

Or use as single tag:

{{ get_site:english:permalink }}

@aerni aerni changed the title [4.x] Add site tag [4.x] Add get_site tag Feb 24, 2024
Ensure that we can’t access a variable of a site through the handle parameter like `{{ get_site handle="german:permalink" }}`
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

Successfully merging this pull request may close these issues.

None yet

1 participant