You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > Product Class > Product Properties
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Product Properties

The properties of the Product class are listed here.

 
Name 
Description 
 
Sets the amount of time the server control’s data is cached. The default is 0 (zero). This is the amount of time, in seconds, a control’s data is cached. For example, if you want to cache the data for five minutes, you set the CacheInterval property to 300 (three hundred).  
 
Enter a default product’s ID. This is the default item that’s displayed when the template containing this control is viewed by a site visitor and a product ID is not dynamically passed. To make this server control dynamic, enter zero (0) for this property and set the DynamicProductParameter to the QueryString parameter used to pass the product ID.  
 
Specify an external XSLT file to render the control. By default, the control uses product.xsl. This file is located in:  
 
The QueryString parameter name which is used to read the product ID. For example, if your QueryString parameter for products is PID, enter that in this property. Then, when site visitors views an item’s details, the product’s ID is passed to this control.  
 
Provides access to EntryData object.  
 
Select the type of image gallery that’s displayed with a product’s information. Images that appear in the gallery are set in the Workarea’s Media tab when creating or editing a product. The Gallery Display property for each image on the Media tab must be set to Yes. Choices are:
  • List = display gallery images
  • None = hide gallery images
In the Image Gallery, images are displayed at their smallest size. Once a site visitor clicks an image, a larger version of it is displayed in a thick box.  
 
Specifies an XSLT identified in the Edit Product Type Configuration screen. Use this to specify an override for the products smart-form XSLT; 0 (default) uses the XSLT defined in the product type (e.g. PackageDisplayXslt), 1 for Xslt1, 2 for Xslt2, etc.  
 
Set to true if you want to the Add to Cart button to appear. The default is True. Setting this property to false allows you to show details of an item, but not offer it for sale. For example, you have an item that is no longer for sale, but you want to allow people who purchased the item to view its details. Also, by using code behind to dynamically set the property, you could create code that looks at your inventory system and hides the button depending on whether a product is in stock.  
 
Specify the path to a style sheet for use with this sever control. The location can be relative or absolute.  
 
Enter the URL path of the template that contains the Cart server control. This path can be relative or absolute.  
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!