Jump to content

Organize Features.


Recommended Posts

// my bad, copied the wrong code.. I'll look further

==============

Okay, the foreach for attributes looks like this:

{foreach from=$group.attributes key=id_attribute item=group_attribute}



While the foreach for features looks like this:

{foreach from=$features item=feature}



The main thing that's different, is that there's no key=xxx in the foreach loop for the features.
What happens if you add a key=xxx (where xxx is the key it should be ordered by) in the foreach?

Link to comment
Share on other sites

×
×
  • Create New...