Create MODX Resources with a Loop