Welcome Guest, you are in: Namespace

Using the Sueetie Marketplace Featured Product View Control

Featured Product View Control Design

Below is a screenshot of a Featured Product View Control. You can customize the view to contain any product properties you wish using Sueetie's standard View templating architecture, just as you would customize any Sueetie List View Control like recent forum topics or blog posts.

The intention of the Sueetie Marketplace Featured Product View Control was to give Marketplace owners the ability to designate a single product as their Featured Product. The View Control does, however, give you the ability to display any product you wish.

Image

Dropping the Control on a Page

Below is an image of the HTML when dropping the Featured Product View Control on a web page. You'll notice you have full intellisense to select any properties. To display your Marketplace Featured Product, you need no additional properties.

Image

Featured Product View Control Properties

The properties you can use to determine the control's display are:

  • ProductID - Used to display a product other than your marketplace designated Featured Product
  • DefaultProductID - This is a "fall-back" product which displays if you have not designated a Featured Product
  • ViewName - The ASCX template containing the control's HTML if wishing to use another template than the default FeaturedProductView
  • NoFeaturedProductViewName - ASCX template used in displaying a message stating that no product is currently featured. Default is NoFeaturedProductView.

The View Control Template File

Like all Sueetie List and Item View Controls, display is determined by a template .ASCX in your theme VIEWS folder consisting of pure HTML and the control data object, in this case the SueetieProduct object. All SueetieProduct properties are available via intellisense.

Image

Designating a Featured Product

A new "IsFeatured" property has been added to SueetieProduct and is set in all Product Add and Edit administration forms.

Image

The "No Product Featured" View

The "NoFeaturedProductView" template in your theme's VIEW folder is used to display your "no product featured" message. Like the View Control, it is easily customizable.

Image

Top

ScrewTurn Wiki version 3.0.4.560.

Copyright © 2008-2012 Sueetie LLC. All rights reserved.
Sueetie