Undefined variable

Hello,

I have a bit lame question, but I don’t know what’s wrong.

I have created a structure field in blueprint, like this:

slider:
    label: Slides
    type: structure
    fields:
      text:
        label: Text
        type: textarea
      image:
        label: Image
        type: image

But for some reason, when I use something like $page->$slider() it returns Undefined variable: slider. Other variables seems to work fine.

Can you please help me to solve this?

I think there’s a typo. Try $page->slider() (without the second $)

Oh god, thank you very much.