Forum

Thread tagged as: Question

How to assign values in an collection item into an array ?

I have a property collection which has a field called sub-location .

is there anyway that i can create an array with all of the sublocation in it ?

Titus Saju

Titus Saju 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, if you use the skip-template option with perch_collection() you can get the content into an array. You'd then loop through that array and get the values for sublocation.