processwire / processwire-requests

ProcessWire feature requests.
39 stars 0 forks source link

Support more than one level of depth for dot syntax in $pages->findRaw() #469

Closed Toutouwai closed 1 year ago

Toutouwai commented 1 year ago

Short description of the enhancement

I'm sure there's a limit to how much depth could be supported, but it would be great to be able to use more than one level of dot syntax depth with findRaw().

At the moment it you can do one level of depth, for example to get the title of a page referenced in a Page Reference field:

$data = $pages->findRaw("template=car", ['manufacturer.title']);

But it would be cool to be able to be able to go deeper, e.g.

$data = $pages->findRaw("template=car", ['manufacturer.country.title']);
Toutouwai commented 1 year ago

It already works, I just needed to upgrade to the latest dev!