Hello,
I probably have the simplest of problems and have just overlooked something, but somehow my blocks don’t show up on my one-pager. Pretty much everything I have so far is copied from somewhere in the guide so I don’t really know where I went wrong.
Problem ist that in the context of your snippet you have to replace $page with $data, which is the variable which holds your page object, ie section passed to the snippet as data variable
Just to clarify: No, blocks is not a page method (in which case you could still use $page->content()->get('blocks')), so using blocks` as field name is not the problem here.
Right, that is one way of doing it, so you could always name your fields gb_myFieldName, for example, that will never clash with any Kirby methods. Another option is to skip the shortcut via $page->myFieldName() (which works because there is a magic __call method which resolved the field name internally) and always use $page->content()->myFieldName() or $page->content()->get('myFieldName').