Skip to content

Instantly share code, notes, and snippets.

@esitefinity
Created April 11, 2012 22:33
Show Gist options
  • Save esitefinity/2363216 to your computer and use it in GitHub Desktop.
Save esitefinity/2363216 to your computer and use it in GitHub Desktop.
<%@ Control Language="C#" %>
<%@ Import Namespace="Telerik.Sitefinity.Model" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.UI.Fields" TagPrefix="sfCatalog" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.ContentUI" Assembly="Telerik.Sitefinity" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.Comments" Assembly="Telerik.Sitefinity" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI.PublicControls.BrowseAndEdit" Assembly="Telerik.Sitefinity" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.UI" Assembly="Telerik.Sitefinity" %>
<%@ Register Namespace="Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.UI.Views" Assembly="Telerik.Sitefinity" TagPrefix="sf" %>
<div id="widgetStatus" runat="server" visible="false" class="sfErrorSummary sfTopMsg">
<asp:Label ID="widgetStatusMessage" runat="server" />
</div>
<asp:Placeholder id="widgetBody" runat="server">
<sf:ItemsPerPageSelector ID="itemsPerPageSelectorTop" runat="server" GroupingKey="Products" CssClass="sfitemsPerPageWrp" />
<telerik:RadListView ID="productsListView"
runat="server"
ItemPlaceholderID="ProductContainer"
EnableEmbeddedSkins="false"
EnableEmbeddedBaseStylesheet="false">
<LayoutTemplate>
<ul class="sfproductsList">
<asp:PlaceHolder ID="ProductContainer" runat="server" />
</ul>
</LayoutTemplate>
<ItemTemplate>
<li class="sfproductListItem">
<div class="sfproductTmbWrp">
<sf:DetailsViewHyperLink ID="thumbnailLink" runat="server" ImageUrl='<%# Eval("ThumbnailUrl") %>' Text='<%# Eval("ThumbnailAlternativeText") %>' ToolTip='<%# Eval("Title") %>' />
</div>
<h2 class="sfproductTitle">
<sf:DetailsViewHyperLink Text='<%# (Eval("Title").ToString()).TruncateString(56, SitefinityExtensions.TruncateOptions.IncludeEllipsis) %>' runat="server" CssClass="sfproductTitleLnk" />
</h2>
<div class="sfproductPrice">
<sfCatalog:DisplayPriceField id="displayPriceField" ObjectType="Product" ObjectId='<%# Eval("Id") %>' runat="server" />
</div>
<sf:BuyNowView ID="usrBuyNowView" runat="server" ProductId= '<%# Eval("Id") %>' ProductsListPageId ="B23147EE-D087-4147-8C13-147902562DA4" CheckoutPageId="6C588951-BBFA-4C70-A983-46A41DA3B022" LayoutTemplatePath="~/CustomBuyNowView.ascx" />
</li>
</ItemTemplate>
</telerik:RadListView>
<sf:ItemsPerPageSelector ID="itemsPerPageSelectorBottom" runat="server" GroupingKey="Products" CssClass="sfitemsPerPageWrp" />
<sf:Pager id="pager" runat="server" DisplayCount="3" />
</asp:Placeholder>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment