gjh42:
The poster trying to put most of the attributes in one column by using odd numbers for sort order will not be successful, because the mod code does not work on sort order number (1,2,5,7) but on sort order sequence (first, second, third...). So all attributes will be organized into two columns based on their place in the sequence, not the actual number assigned.You are absolutely right, and perhaps I wasn't clear in my instructions when I posted this code change..
The intent of this was to allow me to automatically place attributes in two columns. The use of odd and even sort order numbers allowed us to identify which items should go in which column. (I wish I could figure out why this does not work when the sort order number is 1 or 0 - more out of curiosity than necessity:smile:) This code was NEVER meant to be used any other way. So to re-iterate the way the code in the top post works is as follows.
Attributes normally appear like this:
Attribute 1
Attribute 2
Attribute 3
Attribute 4
Attribute 5
Attribute 6
They appear vertically in the order of the the sort order number assigned to each attribute. (Sort order 1 is before sort order 2)
My down and dirty mod arranges them in the same order but instead of appearing in a vertical stack, they will appear in two columns from left to right. They still appear in the order based on their sort order number, it's just that the WAY they appear that changes. So based on my example above this is how the attributes will appear:
Attribute 1 - Attribute 2
Attribute 3 - Attribute 4
Attribute 5 - Attribute 6
Again Glenn is absolutely right, if you are trying to use this code to do anything OTHER than make your attributes appear in two columns, this may not be the mod you need..
gjh42:
I have recently done a mod to allow individual control of attributes in the layout (essentially assigning each .wrapperAttribsOption an id based on the Option Name id). This does not work automatically on anonymous attributes; you need to style each attribute to get it in the left or right side, but you have total control over what goes where. The code changes were extremely simple. Support thread and temporary download link: Flexible Attributes supportThis sounds awesome, and I am going to check this out..:smile:
gjh42:
Something combining the two might be good, allowing a combination of universal application and individual control.Yes I would have to agree that having both options would be very much desired..