Skip to content

Conversation

amadeann
Copy link
Contributor

Currently, the only way (I know of) to access "Section Defaults" or values "from field" is to do something like this:

{{ seo_pro:meta_data }}
    {{ title }}
{{ /seo_pro:meta_data }}

The above overrides the context values, which is not something you always want.

With this small change, you'll be able to do something like:

{{ seo_pro:meta_data as="seo_meta" }}
    {{ seo_meta:title }}
{{ /seo_pro:meta_data }}

which leaves the context alone.

I'm referring to these settings:
image

@jesseleite jesseleite changed the title Allow aliasing seo_pro:meta_data Allow aliasing on {{ seo_pro:meta_data }} tag Dec 11, 2024
@jesseleite
Copy link
Collaborator

Thank you for the PR!

Love this idea, just had to fix regression / failing tests around blade 🤘

@jesseleite jesseleite merged commit d1ca00d into statamic:master Dec 11, 2024
15 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.

2 participants