an ASP.NET Open Source CMS & eCommerce platform
Search:
Last Post 3/23/2009 9:15:07 AM By lukezy. 1 replies.
3/23/2009 1:30:17 AM
MarkDay
Posts: 8
Joined: 10/2/2008
Conditions
I am looking to make the html blocks context sensitive, so as you view different products or product categories different html blocks are displayed in the right master block. I think this might be possible using conditions. Can you explain how to create Properties to use with conditions? Do you have any examples?
3/23/2009 9:15:07 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Conditions
You can check web\controls\blocks\blockcontainer.ascx.cx. Added your properties to the following list.
 
List<ConditionProperty> properties = new List<ConditionProperty>() {
                    new ConditionProperty() { Name = "DiscountGroup", Type = ConditionValueType.List, Data = values },
                    new ConditionProperty() { Name = "HTTPS", Type = ConditionValueType.List, Data = values },
                };
 
and then update CheckCondition as well.
DotShoppingCart Staff