We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Using MODX Add-ons
Search
Get the URL of the first Child: How?
<
1
2
>
370 Posts
Ralph Zelf
Reply #11,
6 years, 4 months ago
@bobray I get an error on line 25
Call to a member function get() on array
RDG
5,888 Posts
Bruno17
Reply #12,
6 years, 4 months ago
I think, it should be
$childObj = $modx->getObject('modResource', $c);
-------------------------------
you can buy me a beer, if you like MIGX
http://webcmsolutions.de/migx.html
Thanks!
370 Posts
Ralph Zelf
Reply #13,
6 years, 4 months ago
had to change getCollection into getObject so line 27 :
$childObj = $modx->getObject('modResource', $c);
<
1
2
>