bernhard Posted April 14, 2023 Share Posted April 14, 2023 Just a quick question to make sure I'm not missing something obvious. If I had some page meta data, like $page->meta('foo', 'my foo value') and $page->meta('bar', 'my bar value') I'd expected that $page->meta() without any arguments gave me an array like this: [ 'foo' => 'my foo value', 'bar' => 'my bar value', ] But it returns an emtpy WireData WireDataDB object. Is there an easy way to get the data that I want or do I need to build my own SQL query? Thx! Link to comment Share on other sites More sharing options...
WillyC Posted April 14, 2023 Share Posted April 14, 2023 bern hard,https://processwire.com/api/ref/page/meta/ $bern_hards_datas = $page->meta()->getArray(); love $willy 7 2 Link to comment Share on other sites More sharing options...
bernhard Posted April 15, 2023 Author Share Posted April 15, 2023 Awesome, thx! I've been reading that page, but not carefully enough ? Link to comment Share on other sites More sharing options...
Jonathan Lahijani Posted August 29 Share Posted August 29 Wasn't there a module that surfaced this information in the admin? Anyone remember what it was called? I can't find it. Edit: TracyDebugger can do it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now