Member:
Markus ⋅
Date: February 2, 2010, 05:27 PM
⋅ Subject: "Re: How do I use the "
The column/row mix option has actually been there since 1.11. 
Unit and Layout parameters can be filled in up to 65K characters, defined and separated with the following syntax:
unit_sql_limit=24; unit_order=name_desc; unit_format=post_huge;
A colon ; is used for separating names and values, equal sign = is used as the defining operator.
There are at least two key things you can use it for. Application one is for supplying per-unit parameters to your custom functions. In this case, the ongoing unit's data is available in global scope under $cache['current']['unit'] as an associative array corresponding to the unit's database fields plus the supplied parameters.
As a case example, there may be a situation where want to check the current unit's SQL limit or template base in your post_preprocessor() function when you parse the data into dynamic templates, to modify the raw data. (This is used for example in producing "System Header" for units from posts with SQL limit 1.) This is more of a developer goodie to help connect other areas of code with the templating system.
Application two is for overriding the default fields that are available in the dropdowns. For example, if you wanted have 16 members displayed on your front page instead of one of the preset options (1, 5, 10 etc.), you could add unit_sql_limit=16 to your parameters.
Below is a screenshot of the fields in the w_units table. You can look it up in your MySQL database to understand better the correlation of what's in the builder with what's in your raw data. You can override all but the ID field using the parameters field of Wiccle Builder.
