Re: Using ListChild weights to reorder templates
The weight is integer. The higher the number the lower the item is in the list. Template with weight 100 will load before one with weight 200 and after one with weight 50. I suspect templates with same weight will load in the order the module or template is called or alphabetically, not sure. I have not tested but I assume you can have negative weight too.
template with @ListChild (list="body", weight="0") will load first in the list of templates but not necessarily right below the body tag. It depends if cart is loading something else first which does not depend on listchild
__________________
Steve Stoyanov
CFLSystems.com
Web Development
|