Serie
Name #Nr
dksdsl

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

9 warning(s) detected
LayoutLine Nr.Tag TypeTag IDDBContextMessage
pro/includes:navi-products (html)43Script(none)pro402880943a0c6287013a0c87dc81006b.de-de.17TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourReleasedContent in object .
At line 0, column 0
Expression:

this._colItems = [];
this._curGroup = PAGENAME;
// seriesMatrix = ProductX.countArticlesPerSeriesX();
// log.info("site id: " + PAGENAME + " :: " + TITLE);
switch (PAGENAME) {
case "series":
let _naviSeries = _libProduct.getSeries();
/*
for (let i = _naviSeries.length - 1; i >= 0; i -= 1) {
let currentSeries = _naviSeries[i];

if (seriesMatrix[currentSeries.id] == 0) {
_naviSeries.splice(i, 1);
}
}
*/
this._colItems = V.mapArrayToCols(_naviSeries, 3, "vertical");
break;
case "categories":
if (usePremium) {
this._colItems = V.mapArrayToCols(_localeProduct.getCategories(), 3, "vertical");
} else {
this._colItems = V.mapArrayToCols(_libProduct.getCategories(), 3, "vertical");
}
break;
case "shapes":
this._colItems = V.mapArrayToCols(_libProduct.getShapes(), 3, "vertical");
while (this._colItems.length < 3) this._colItems.push([{ name:"", id: 0 }]);
break;
case "sizes":
this._colItems = V.mapArrayToCols(_libProduct.getSizes(), 3, "vertical");
while (this._colItems.length < 3) this._colItems.push([{ name:"", id: 0 }]);
break;
}
//log.info("this._colItems.length: " + this._colItems.length + " @ " + PAGENAME);
pro/includes:navi-products (html)43Script(none)pro402880943a0c6287013a0c88559b007c.de-de.5TypeError executing tmlscript: TypeError: Cannot find function getCategories in object .
At line 0, column 0
Expression:

this._colItems = [];
this._curGroup = PAGENAME;
// seriesMatrix = ProductX.countArticlesPerSeriesX();
// log.info("site id: " + PAGENAME + " :: " + TITLE);
switch (PAGENAME) {
case "series":
let _naviSeries = _libProduct.getSeries();
/*
for (let i = _naviSeries.length - 1; i >= 0; i -= 1) {
let currentSeries = _naviSeries[i];

if (seriesMatrix[currentSeries.id] == 0) {
_naviSeries.splice(i, 1);
}
}
*/
this._colItems = V.mapArrayToCols(_naviSeries, 3, "vertical");
break;
case "categories":
if (usePremium) {
this._colItems = V.mapArrayToCols(_localeProduct.getCategories(), 3, "vertical");
} else {
this._colItems = V.mapArrayToCols(_libProduct.getCategories(), 3, "vertical");
}
break;
case "shapes":
this._colItems = V.mapArrayToCols(_libProduct.getShapes(), 3, "vertical");
while (this._colItems.length < 3) this._colItems.push([{ name:"", id: 0 }]);
break;
case "sizes":
this._colItems = V.mapArrayToCols(_libProduct.getSizes(), 3, "vertical");
while (this._colItems.length < 3) this._colItems.push([{ name:"", id: 0 }]);
break;
}
//log.info("this._colItems.length: " + this._colItems.length + " @ " + PAGENAME);
pro/includes:navi-products (html)43Script(none)pro402880943a0c6287013a0c8bda8b009e.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

this._colItems = [];
this._curGroup = PAGENAME;
// seriesMatrix = ProductX.countArticlesPerSeriesX();
// log.info("site id: " + PAGENAME + " :: " + TITLE);
switch (PAGENAME) {
case "series":
let _naviSeries = _libProduct.getSeries();
/*
for (let i = _naviSeries.length - 1; i >= 0; i -= 1) {
let currentSeries = _naviSeries[i];

if (seriesMatrix[currentSeries.id] == 0) {
_naviSeries.splice(i, 1);
}
}
*/
this._colItems = V.mapArrayToCols(_naviSeries, 3, "vertical");
break;
case "categories":
if (usePremium) {
this._colItems = V.mapArrayToCols(_localeProduct.getCategories(), 3, "vertical");
} else {
this._colItems = V.mapArrayToCols(_libProduct.getCategories(), 3, "vertical");
}
break;
case "shapes":
this._colItems = V.mapArrayToCols(_libProduct.getShapes(), 3, "vertical");
while (this._colItems.length < 3) this._colItems.push([{ name:"", id: 0 }]);
break;
case "sizes":
this._colItems = V.mapArrayToCols(_libProduct.getSizes(), 3, "vertical");
while (this._colItems.length < 3) this._colItems.push([{ name:"", id: 0 }]);
break;
}
//log.info("this._colItems.length: " + this._colItems.length + " @ " + PAGENAME);
pro/includes:navi-duravitgreen (html)116Script(none)pro402880943a0c6287013a0c851b4c0039.de-de.4TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourReleasedContent in object .
At line 0, column 0
Expression:

var struct = context("db:website/name:green", false);

greenPages = [];
if(struct) {
struct = struct.STRUCTKEY;
var cont = Utils.getLanguageBehaviourReleasedContent(struct, "website");
var greenDocs = cont.getChildContents().iterator();
// var greenDocs = context('db:website/name:green').content().getChildContents().iterator();
while (greenDocs.hasNext()) {
var greenDoc =greenDocs.next();
var cntxt = Utils.getLanguageBehaviourContextObject("db:website/docid:"+greenDoc.getStructKey(), primaryLang, "website");
if(!cntxt.meta('ishiddenfrom')){
_imgUrl = "";
try {
_text = cntxt.item("durartf");
if(_text && _text.length >= 150){
var k = 250;
while(k < _text.length-1 && _text.substring(k,k+1) != " "){
k++;
}
_text = _text.substring(0,k+1);
_text = _text.replace(/<(?:.|\n)*?>/gm, '');
_text += " [...]";
}

val = cntxt.item('duravitpicturefullwidth');
val = V.extractMediaLink(val, 'db:website/docid:'+greenDoc.getStructKey());
_imgUrl = val.url;
} catch(e) {};

var g = {
"docid": greenDoc.getStructKey(),
"name" : cntxt.meta("title"),
"text" : _text,
"headline" : cntxt.meta('title'),
"img" : _imgUrl,
"url" : context('name:reference-detail').contentURL()+"?docid="+greenDoc.getStructKey()+"&iscurrent=0&category=green"
};
greenPages.push(g);
}
}
}
pro/includes:searchtool (html)7Script(none)pro402880943a1b6e1b013a1bd1174e0033.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getSeriesCategories in object .
At line 0, column 0
Expression:

let langExists = !db("premium").getLanguage(LANGUAGE).isDummy(),
series,
categories,
productmatrix;

// usePremium = langExists;
if (!this._libProduct) {
this._libProduct = WGA.design("lib-duravit-common").createObject("product:controller:product"); // "Product" global replacement
}

if (usePremium) {
productmatrix = ProductX.getSeriesCategories();
series = ProductX.getSeries();
categories = ProductX.getCategories();
} else {
productmatrix = _libProduct.getSeriesCategories();
series = _libProduct.getSeries();
categories = _libProduct.getCategories();
}

//generate a string that contains the data of series and categorys in form of js-.push()-statements
//this string can be executed on client to get arrays with the data.
this.arrayJsString = '';
this.matrixJsStrings = [];
for( var i = 0; i < series.length; i++){
let tmpSeriesXCategoriesArray;

seriesXCategories = productmatrix[series[i].id];
if (seriesXCategories) {
arrayJsString += 'selectSeries.push( '+ JSON.stringify(series[i]) +');';
}
if (usePremium && seriesXCategories) {
tmpSeriesXCategoriesArray = seriesXCategories.toArray();
seriesXCategories = [];
for (let [idx, val] in tmpSeriesXCategoriesArray) {
seriesXCategories.push(val);
}
}
if (seriesXCategories) {
matrixJsStrings.push('"'+series[i].id+'":"'+seriesXCategories.join(",")+'"');
}
}
matrixJsString = '{'+matrixJsStrings.join(',')+'}';

for( var i = 0; i < categories.length; i++){
let tmpContent = categories[i].name;

if (usePremium) {
// dirty hack to show correct label
categories[i].name = categories[i].label;
categories[i].label = tmpContent;
categories[i].id = tmpContent;
}

arrayJsString += 'selectCategories.push( '+ JSON.stringify(categories[i]) +');';
}

pro/inner:product:product-list-articles-inner (html)1Script(none)pro402880943a1b6e1b013a1bd1174e0033.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:

if (!this._libProduct) this._libProduct = WGA.design("lib-duravit-common").createObject("product:controller:product"); // "Product" global replacement

if (!this._libProductX) this._libProductX = WGA.design("lib-duravit-common").createObject("product:controller:productx");

if(_objectProducts || _searchProducts){
this._alternateBreadcrumb = true;

var allSeries = _libProduct.getSeries();
seriesNames = [];
for(var i = 0; i < allSeries.length; i++){
seriesNames[allSeries[i].id] = allSeries[i].name;
}
}

this._filterItems = [];
this._filterItemsCategories = [];
this._filterItemsSeries = [];
this._extraParams = "";
this._extraNav3Params = "";
//log.info("_productGroupId: " + _productGroupId);
// log.info("_productGroup: " + _productGroup);
//log.info("_singleSeries: " + _singleSeries);

_product = createObject("controller:product");
switch (_productGroup) {
case "series":
this._series = _libProduct.getSeries();
this._categories = _libProduct.getCategories(_productGroupId);
if (usePremium) {
this._matrix = ProductX.getSeriesCategories();
this._categories = [];
if (_matrix[_productGroupId]) {
for (let i = 0; i < _matrix[_productGroupId].toArray().length; i++) {
let currentCategory = _matrix[_productGroupId].toArray()[i];

cat = ProductX.getCategories(currentCategory);
if (cat[0]) {
this._categories.push(cat[0]);
}
}
}
}
this._filterItems = V.mapArrayToCols(this._categories, 5, "horizontal");
this._filterItemsCategories = _categories;
this._navProductGroup = _productGroup;
if (!_singleSeries) {
this._selectedFilterItemName = label("allseries");
} else {
this._selectedFilterItemName = _product.getName(_singleSeries);
this._series.splice(0, 0, { name: label("allseries"), id: "" });
}
break;
case "categories":
this._series = _libProduct.getSeries(_productGroupId);
// log.info("wtf! " + _productGroupId);
this._categories = ProductX.getCategories();
this._filterItems = V.mapArrayToCols(_series, 5, "horizontal");
this._filterItemsSeries = _series;
this._navProductGroup = _productGroup;
if (!_singleCategory) {
this._selectedFilterItemName = label("allcategories");
} else {
if (usePremium) {
this._selectedFilterItemName = ProductX.getCategories(_singleCategory)[0].label;
this._categories.splice(0, 0, { name: "", id: "", label: label("allcategories") });
} else {
this._selectedFilterItemName = _product.getName(_singleCategory);
this._categories.splice(0, 0, { name: label("allcategories"), id: "" });
}
}
break;
case "shapes":
var sl = _libProduct.getShapes();
for (var i = 0; i < sl.length; i++) {
if (sl[i].id == _filterId) this._series = sl[i].series;
}
this._categories = _libProduct.getCategories(_productGroupId);
this._filterItems = V.mapArrayToCols(_categories, 5, "horizontal");
this._filterItemsCategories = _categories;
this._navProductGroup = "series";
if (!_singleSeries) {
//this._selectedFilterItemName = "Alle Serien";
} else {
this._selectedFilterItemName = _product.getName(_singleSeries);
//this._series.splice(0, 0, { name: "Alle Serien", id: "" });

}
break;
case "sizes":
_extraParams = "&nsize=" + _productGroupId;
_extraNav3Params = "&filter=" + _filterId;
//log.info("sizes filter: " + _filterId);
//log.info("--- getSize() start");
//log.info("--- getSize() end");
//log.info("sizes.l: " + _series.length);
this._categories = _libProduct.getSizes(_filterId);
this._filterItems = V.mapArrayToCols(_categories, 5, "horizontal");
this._filterItemsCategories = _categories;
this._navProductGroup = "series";
if (!_singleSeries) {
//this._selectedFilterItemName = "Alle Serien";
this._selectedFilterItemName = _product.getName(_productGroupId);
} else {
this._selectedFilterItemName = _product.getName(_productGroupId);
//this._series.splice(0, 0, { name: "Alle Serien", id: "" });
}
break;
}
pro/inner:product:product-list-articles-inner (html)129Script(none)pro402880943a1b6e1b013a1bd1174e0033.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourReleasedContent in object .
At line 0, column 0
Expression:

_numItemsPerRow = 4;
if(_objectProducts){

var products = _libProductX.getProductsForObject(_objectProducts);
this._colItems = V.mapArrayToCols(products, 4, "horizontal");
var plucked = V._.uniq( V._.pluck(products, 'category_id'));
this._categories = [];
for(var i = 0; i < plucked.length; i++){
let currentCategoryId = WGA.format(plucked[i], "00"),
currentCategory,
currentCategorylabel,
currentCategoryName;

currentCategorylabel = ProductX.translateCategory(currentCategoryId);
currentCategory = ProductX.getCategories(currentCategorylabel);
if (currentCategory[0]) {
currentCategoryName = currentCategory[0].label;
}
_categories.push({
"name": currentCategorylabel,
"id": currentCategoryId,
"label": currentCategoryName
});
}
this._filterItems = V.mapArrayToCols(_categories, 6, "horizontal");
this._filterItemsCategories = _categories;
} else if(_searchProducts){
_numItemsPerRow = 6;
var products;
if (request.getParameter("prosearch") == "false") {
products = _libProduct.search(_searchText, _searchSeries, _searchCategory, _searchColor);
} else {
products = _libProductX.search(_searchText, _searchSeries, _searchCategory, _searchColor);
}

this._colItems = V.mapArrayToCols(products, 6, "horizontal");
// log.error("this._colItems[0].logString: " + this._colItems[0][0].logString);
if (this._colItems.length > 0 && this._colItems[0].length > 0) {
logString += this._colItems[0][0].logString + "\r\n";
}
} else {

if (_productGroup == "sizes") {
var products = _libProductX.getSizes(_filterId, _productGroupId, meta("db", "dbkey"));
this._colItems = V.mapArrayToCols(products, 4, "horizontal");
//log.info("my items: "+JSON.stringify(this._colItems));
var plucked = V._.uniq( V._.pluck(products, 'series'));
this._filterItems = [];
for(var i = 0; i < plucked.length; i++){
_filterItems.push({"name":_product.getName(plucked[i]), "id":plucked[i]});
}
} else {
//console.log("_productGroup: " + _productGroup);
_singleCategory = _libProductX.translateCategoryNames(_singleCategory);
this._colItems = V.mapArrayToCols(_libProductX.getProducts(_singleSeries, _singleCategory, _productGroup), 4, "horizontal");
}
}

this._rowSize = 0;
this._rowTagOpen = false;

pro/inner:product:product-list-articles-inner (html)229Script(none)pro402880943a1b6e1b013a1bd1174e0033.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:
_product.getName(_filterId)
pro/inner:product:product-list-articles-inner (html)236Script(none)pro402880943a1b6e1b013a1bd1174e0033.de-de.1TypeError executing tmlscript: TypeError: Cannot find function getLanguageBehaviourContextObject in object .
At line 0, column 0
Expression:
_product.getName(_productGroupId)