Tuesday, May 6, 2014

ATG RQL Tips

Query any item but limit results to only one.

<query-items item-descriptor="category">ALL RANGE +1</query-items>

Remove an item.

<remove-item item-descriptor="<item-descriptor>" id="<ID>"/>

Query item where property is null/not defined


<query-items item-descriptor="product">seoTags IS NULL</query-items>


Query date ranges


<query-items item-descriptor="project"><![CDATA[checkinDate > date("2016-11-18") and checkinDate < date("2016-11-21")]]></query-items>


Get where a property is set (not null)


<query-items item-descriptor="promotion">(NOT closenessQualifiers IS NULL) RANGE+1</query-items>

No comments:

Post a Comment