Hello,
I have working example how to do it. I have default repeater with the transformation
<h3><%#GetNotEmpty("CategoryDisplayName;Tytul")%></h3>
<div class="wiersz-rownych">
<cms:QueryRepeater runat="server" ID="produkty"></cms:QueryRepeater>
<a href="<%#ValidationHelper.GetString(Eval("Sciezka"),"/Lista").Replace("/%","")%>/Kategoria/<%#Eval("CategoryName")%>" class="wiecej">Więcej z tej kategorii <span class="icon-right-1"></span></a>
</div>
<script type="text/c#" runat="server">
protected override void OnDataBinding(EventArgs e)
{
base.OnDataBinding(e);
produkty.QueryName = "sitename.produkt_ksiazka.ZapytanieOgolne";
produkty.Columns = "ClassName,NodeAliasPath,SKUImagePath,SKUname,StatusPubliczny,SKUPrice,Autor,NodeID,DocumentNamePath,FormatElibri,SKUID,SKUGUID,NodeLevel,NodeOrder,SKURetailPrice";
produkty.TransformationName = "sitename.transformacjeProduktow.Default";
produkty.SelectTopN = ValidationHelper.GetInteger(DataBinder.Eval(this.DataItem, "TopN"), 20);
produkty.OrderBy = ValidationHelper.GetString(DataBinder.Eval(this.DataItem, "Sort"), "SKUName");
string aliasPath = ValidationHelper.GetString(DataBinder.Eval(this.DataItem, "NodeAliasPath"), "");
string where = "";
where = CMS.DataEngine.SqlHelper.AddWhereCondition(where, "(NodeAliasPath like '" + aliasPath.Trim() + "/%' and (SKUTrackInventory='Disabled' or (SKUAvailableItems>0 and SKUSellOnlyAvailable=1) or SKUSellOnlyAvailable=0) and Published=1 and DocumentCulture='" + CMS.DocumentEngine.DocumentContext.CurrentDocumentCulture.CultureCode + "')");
produkty.WhereCondition = where;
}
</script>
And it's working for me :)