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
General
General Support
Search
getting a documents first child.
60 Posts
ashfinlayson
Reply #1,
17 years, 1 month ago
Hi All
I’m used to using getDocumentChildren() but ive never used it to get everything for just the first child.
Can anyone help me out?
Cheers
Ash Finlayson
697 Posts
jusmeig
Reply #2,
17 years, 1 month ago
Find all the children, just deal with the first
You can look at the documents creation date to determine this.
Is this what you mean?