#Frontmatter
23 messages · Page 1 of 1 (latest)
tried it and it doesn't seem to work. here are the picture of what I did
I assigned the frontmatter to Astro.props That's why there is no fronmatter before it
You didn’t define Status. Where do you try to assign Status?
I do not want to assign anything to Status. I'm using it as object with statusone ,two... as it's properties.
You need to assign the object to status.
It was first used be like
Status: {
StatusOne:""
StatusTwo: ""}
I could use it like Status.StatusOne. But I do not know how to get frontmatter within curly brackets using yml of netlify cms.
You use the variable Status. Where do you set it’s value?
I gave no value to Status before and didn't cause any problems. And I think I dont have to give Status: { Status:one
Status:two}
I've seen people use this in markdown frontmatter
Image: {
src:../
alt:"string"}
Here i do not think i have to assign value to Image. But the same problem arise how to get it in brackets from yml
Your original YML annotation here is fine.
I want to know how you get the Statis object here
Because according to this error the Status object is undefined
it's statusone not status
You’re trying to read “StatusOne” from an undefined object names “Status”
So I want to know how you assign the “Status” object in your Astro file
I got no idea, but i'm thinking of some other way to do my thing. Thanks for the help tho. Appreciate it. 💛