Mein Pro.Duravit

Anmelden



Neues Konto erstellen

Registrieren Sie sich jetzt, um alle Funktionen und Vorteile von pro.duravit nutzen zu können.

Registrieren

Planungsordner

Bitte warten...

TML Warnings

2 warning(s) detected
LayoutLine Nr.Tag TypeTag IDDBContextMessage
pro/inner:product:product-detail (html)1Script(none)pro402880943a1b6e1b013a1bd2b8e3005b.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

var pcon = V.require("product:controller:premium", "lib-duravit-common");

if (this.request.getParameter("engine") == "product") {
if (!this._libProduct) this._libProduct = WGA.design("lib-duravit-common").createObject("product:controller:product"); // "Product" global replacement
} else {
if (!this._libProductX) this._libProductX = WGA.design("lib-duravit-common").createObject("product:controller:productx"); // "ProductX" global replacement
}
archivedProduct = request.getParameter("archived");

this._headLink1 = "";
this._headTitle1 = "";
this._headLink2 = "";
this._headTitle2 = "";
this._lev3Id = "";

var ctx = context("parent");
_product = createObject("controller:product");
switch (_productGroup) {
case "series":
this._headLink1 = ctx.contentURL() + "?series=" + _navSeries;

if (usePremium) {
let series = pcon.getContentSeries(_navSeries),
categories = pcon.getContentCategories(_navCategory);

if (series && series.size() > 0) {
this._headTitle1 = series.get(0).TITLE;
}
if (categories && categories.size() > 0) {
this._headTitle2 = categories.get(0).TITLE;
}
} else {
this._headTitle1 = Product.getName(_navSeries);
this._headTitle2 = _product.getName(_navCategory);
}
this._headLink2 = _headLink1 + "&filter=" + _navCategory;
this._lev3Id = _navSeries;
break;
case "categories":
this._headLink1 = ctx.contentURL() + "?categories=" + _navCategory;
// this._headTitle1 = _product.getName(_navCategory);
this._headLink2 = _headLink1 + "&filter=" + _navSeries;
// this._headTitle2 = _product.getName(_navSeries);
this._lev3Id = _navCategory;
if (usePremium) {
let series = pcon.getContentSeries(_navSeries),
categories = pcon.getContentCategories(_navCategory);

if (categories && categories.size() > 0) {
this._headTitle1 = categories.get(0).TITLE;
}
if (series && series.size() > 0) {
this._headTitle2 = series.get(0).TITLE;
}
} else {
this._headTitle1 = _product.getName(_navCategory);
this._headTitle2 = Product.getName(_navSeries);
}
break;
case "shapes":
//this._headLink1 = _headLink1 + "#" + _navCategory;
this._headTitle1 = _product.getName(_navCategory);
this._headLink2 = ctx.contentURL() + "?series=" + _navSeries + "&filter=" + _navCategory;
this._headTitle2 = _product.getName(_navSeries);
this._lev3Id = _navSeries;
break;
case "sizes":
this._headLink1 = ctx.contentURL();
this._headTitle1 = _product.getName(_navCategory);
this._headLink2 = "#";
this._headTitle2 = _product.getName(_navSeries);
this._lev3Id = _navSeries;
break;
}

function printObject(obj, title) {
s = "Object values - " + title + ":\n";
for (p in obj) s += "\t\t\t\t" + p + " = " + String(obj[p]).replace(/\n/g, ' ') + " (" + typeof(obj[p]) + ")\n";
log.info(s);
}

sparePart = null;
if ( this.request.getParameter("sp") == 1 ) {
sparePart = true;
}

try {
// console.log("_productNodeId " + _productNodeId + " // " + sparePart)
if (this.request.getParameter("engine") == "product") {
this._product = _libProduct.getProduct(_productNodeId, sparePart);
} else {
this._product = _libProductX.getProduct(_productNodeId, {sparePart: sparePart, isPro: true, showSpareParts: showSpareParts, isArchived: archivedProduct});
}
// log.info("%%% product: "+JSON.stringify(_product));
//_product.nodeId = null;
_product.series = _navSeries;
_product.category = _navCategory;
_product.ctx = this; // for accessing webgate context functions inside _-templates
_product.V = V;

if (_product) {
// Insert currently selected size at first-position to linkedSizes-array
if (_product.linkedSizes) {
// Add non-breakable-space before size-separator-char
for (var [idx, linkedSize] in Iterator(_product.linkedSizes)) {
try {
var size = linkedSize.size;
var sizeParts = size.split(" x ");

if (sizeParts.length > 1) {
_product.linkedSizes[idx].size = sizeParts.join(" x ");
}
} catch(e) {};
}
}

// Add series-name to linked-products
if (_product.linkedProducts) {
var pcon = WGA.createObject("controller:product");
for (var [idx, lProduct] in Iterator(_product.linkedProducts)) {
lProduct.dataHead = pcon.getName(lProduct.serId);
}
}

// Dummy top-downloads-content
_product.topDownloads = [];
if (_product.downloadTypeMap) {
for (var [key, val] in Iterator(_product.downloadTypeMap)) {
if (val && val.length) {
var rndIdx = Math.floor(Math.random() * val.length);
var rndObj = val[rndIdx],
rndLabel = rndObj.label;

if (!rndLabel || rndLabel == "") {
rndLabel = ProductX.getDlTypesLabelExternal(rndObj.type);
if (rndLabel && rndLabel != "") {
rndLabel = label(rndLabel);
}
}

_product.topDownloads.push({
name: rndLabel,
type: rndObj.type
});
}
}
}
}

// printObject(_product, "_product");
} catch(e) {
log.error('Error getting product with nodeId['+_productNodeId+']: ' + e);
this._product = null;
}
//V._.templateSettings.variable = "WGA";
pro/inner:product:product-detail (html)1008Script(none)pro402880943a1b6e1b013a1bd2b8e3005b.de-de.1TypeError executing tmlscript: TypeError: Cannot read property "0" from null (<eval'ed string>#1(Function)#1)
At line 1, column 0
Expression:
V._.template(_tplDetail)(_product)
at <eval'ed string>#1(Function):1 (anonymous)