<%HEADER "Content-Type", "text/xml" %> <% QUERY Newsitem_Dated(ordernbr='all') DO DISPLAY IF $item_picture_id THEN%> $Shop.Root_URL;newsitem.html/<%IF $Shop.opt_nice_url AND $seo_url THEN%>$seo_url<%ELSE PRINT CALL TITLEtoURL($title)%>?item_id=$item_id<%ENDIF%> $*title <%PICTURE_URL('RS_LARGE',$Newsitem_Dated.item_picture_id)%> <% ENDIF NEXTROW ENDQUERY FETCH Brand DISPLAY IF $Brand.picture_id THEN%> $Shop.Root_URL;brand.html<%IF $Shop.opt_nice_url AND $seo_url THEN%>/$seo_url<%ELSE%>?brand_id=$brand_id<%ENDIF%> $*name <%PICTURE_URL('RS_LARGE',$CATEGORY_TREE.picture_id)%> <%ENDIF NEXTROW ENDFETCH FETCH CATEGORY_TREE DISPLAY IF $CATEGORY_TREE.picture_id THEN%> $Shop.Root_URL;category.html<%IF $Shop.opt_nice_url AND $seo_url THEN%>/$seo_url<%ELSE%>?category_id=$category_id<%ENDIF%> $*GroupName <%PICTURE_URL('RS_LARGE',$CATEGORY_TREE.picture_id)%> <%ENDIF NEXTROW ENDFETCH QUERY Product(category_id=$category_id,ignore_multi_category=1,state='ACTIVE') DO DISPLAY IF $Product.product_id THEN QUERY MyProductPicture(product_id=$Product.product_id, xView='DEFAULT', xTransform='RS_LARGE') DO DISPLAY IF $MyProductPicture.Numrows>0 THEN%> $Shop.Root_URL;product.html<%IF $Shop.opt_nice_url AND $seo_url THEN%>/$seo_url<%ELSE%>?product_id=$product_id<%ENDIF%><% ENDIF%> <%IF $caption THEN%>$*caption<%ELSE%>$*Name<%ENDIF%> <%PICTURE_URL('RS_LARGE',$CATEGORY_TREE.picture_id)%> <% NEXTROW IF $MyProductPicture.Numrows>0 THEN%> <%ENDIF ENDQUERY ENDIF NEXTROW ENDQUERY%>