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

[5.x] Add get_site tag #9580

Merged
merged 10 commits into from
May 20, 2024
Merged

[5.x] Add get_site tag #9580

merged 10 commits into from
May 20, 2024

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" }}`
@duncanmcclean duncanmcclean changed the base branch from 4.x to 5.x May 14, 2024 14:13
@duncanmcclean duncanmcclean changed the title [4.x] Add get_site tag [5.x] Add get_site tag May 14, 2024
@jasonvarga jasonvarga merged commit 9d87784 into statamic:5.x May 20, 2024
16 checks passed
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

3 participants