We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new 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

  • 1 year 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.