Hi there! I seem to have run into an issue with updating the content within structure fields on the users in my kirby panel
I used the technique described here, but when i tried to run the yaml() function it caused an error, and if i tried yaml::decode it failed to pass the entire structure, only a portion of it
i have since moved on to MySQL to handle what i needed to accomplish but I figured it was best to also pass this on incase anyone else tries to do the same (probably me in the future!)
also any functions to easily just update individual entries and their child values within the structure would be very nice, not just the ability to add new entries to it. thanks for all your hard work on this fantastic software, a customer for life!
i was getting jumbled output here for each time i was echoing one of the values in the structure
i copied the exact same structure into a page with a template and tried running the same code with success
i believe this following output was returned by print_r( yaml::decode( $site->users()->find('565fd296754fd')->puzzlestats() ) )
(it might’ve been a var_dump, can’t remember)
I think this is a bug, the yaml() and toStructure() methods throw an error when used on a structure field in a user blueprint. I’ll create an issue on GitHub.