Forum
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 ?
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 ?
Yes, if you use the
skip-template
option withperch_collection()
you can get the content into an array. You'd then loop through that array and get the values for sublocation.