Template-ID in Alternative Template Scripts.

You will find a general example for the use of gPageitemID here.

Template-ID in Alternative Template Scripts. If the script should return new template ID, the value of *gPageitemID must be changed accordingly.

Template 18 should always be used instead of template 17.

int main ()
{
    if (*gPageitemID == 17) *gPageitemID = 18;
return 0; } Return parameter for the template ID in product.2.html#Ersatztemplate_Skriptvariablen>Alternative Templatte Scripts.

See Also
Script environment
gPageitemName
gPage
gLayer
gPositionX ...
gGridPosX ...
gElementLeft ...
gElement
gElementName
gPageTemplateID
gPageTemplateName
gProducts
gProduct
gProductCounter

Alphabetic index HTML hierarchy of classes or Java