Replies: 1 comment 5 replies
-
Hmm. What it currently does is take the first item in the page builder and then see if there's an article in it or a field called I think in the end it's a fallback and probably impossible to get right in all use cases. What do you think? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Rob
In https://github.com/studio1902/statamic-peak/blob/main/dev/resources/views/snippets/_fallback_description.antlers.html#L14
I added a
where="type:article"
to only target articles.Because of the
limit="1"
if an article is not the first item of a page builder it will never be reached.Also there is a check:
There doens't seem to be a type
text
, so i think this is redundant.New code:
Now we only get the article types.
Beta Was this translation helpful? Give feedback.
All reactions