Hi guys...
when using Extenders it is a good procedure to check if that tag is in the current template so we do not put the server doing our "stuff" for a tag that it is not used.
my question is... how?
public class ExtraImages : Dynamicweb.eCommerce.Products.ProductTemplateExtender
{
PageView pv = PageView.Current();
String productID = this.Product.ID;
String productName = this.Product.Name;
// ...
if ( pv.get_value("myNewTag") != null )
{
// do this if the tag exists
}
}
this does not work. Can anyone share his code on this part?
and by the way, other newbie question:
pv.SetMasterTemplateValues(); and pv.SetPageTemplatesValues();
what do they do, and do I need them?
how about
base.ExtendTemplate(Template);
do I still need this at the end?