Module Snippet Help A lost soul :)

I’m using modules. I have a snippet. It won’t let me use $module-> because it’s not a defined variable. I need to use the snippet in 6 modules. I can use $page-> but it returns the wrong information. Any idea how I can get $module-> in there. Do I have to use an array?

Thanks

Brandon

You can pass the variable to the snippet like described in the docs: https://getkirby.com/docs/templates/snippets/#passing-variables-to-snippets

Yeah, I just did that. But now I’m trying figure out why it’s putting a space in my id. I’ll post my success or failure, hopefully success :slight_smile:

I was missing " it worked to pass it in an array.