Catalogues
An error occurred while processing the template.
Java method "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl.getLRUrl(com.liferay.document.library.kernel.model.DLFileEntry)" threw an exception when invoked on com.mecalux.util.service.impl.MlxUrlUtilServiceImpl object "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl@43669969"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign downloadLink = mlxUrlUtilServ... [in template "20101#20128#3282463" at line 69, column 9] ----
1<#-- Prueba version -->
2<#-- De momento estos valores se ponen los correspondientes al entorno -->
3<#assign cataloguesVocId = 396088 />
4
5<#assign destacadosCatId = 396091 />
6<#assign standardRackCatId = 396096 />
7
8<#-- Valores por defecto (para que no falle en catalogos licitacion) -->
9<#assign catalogCatId = destacadosCatId />
10<#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(destacadosCatId) />
11
12<#assign globalGroupId = mlxConstants.getLongConstant("GroupIds","GLOBAL")/>
13<#if portletPreferences.queryValues0?has_content>
14 <#list portletPreferences.queryValues0 as catId>
15 <#assign catalogCatId = catId?trim?number />
16 <#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(catalogCatId) />
17 <#if catalogCategory?has_content && (catalogCategory.getVocabularyId() == cataloguesVocId) >
18 <#break>
19 </#if>
20 </#list>
21</#if>
22
23<#-- PINTAMOS EL TEXTO INICIAL -->
24<#if (catalogCatId==destacadosCatId) >
25 <div class="corporate--catalogues--thumbnails--container">
26 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
27<#else>
28 <#-- Solo ocurre con la category Standard Rack en US -->
29 <#if (catalogCatId==standardRackCatId) >
30 <div class="corporate--catalogues--thumbnails--container">
31 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
32 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getTitle(locale)}</h2>
33 <#else>
34 <div class="corporate--catalogues--thumbnails--container">
35 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getDescription(locale)}</h2>
36 </#if>
37</#if>
38
39<#if entries?has_content >
40
41 <#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
42
43 <#assign trackView="data-track-download-view='true'" />
44
45 <div class="corporate--catalogues--thumbnails">
46 <#-- PINTAMOS LOS CATALOGOS -->
47 <#list entries as curEntry >
48 <#assign fileEntry = mlxDLFileEntryHelperService.getDLFileEntry(curEntry.getClassUuid(),globalGroupId) />
49
50 <#assign catalogueTitle = (mlxExpandoService.getExpandoValueForClass("com.liferay.document.library.kernel.model.DLFileEntry","mlxDocumentTitle",fileEntry.getFileVersion().getFileVersionId()).getString(locale))!"" />
51 <#if (catalogueTitle=="") >
52 <#assign catalogueTitle=curEntry.getTitle() />
53 </#if>
54
55 <#assign thumbnailUuid = "" />
56 <#assign thumbnail = "" />
57 <#assign thumbnailField = (mlxDLFileEntryHelperService.getDLFileEntryMlxFieldValuePersisted("thumbnail", fileEntry.getFileEntryId())) />
58 <#if thumbnailField?has_content >
59 <#assign thumbnailField = thumbnailField?eval />
60 <#assign thumbnailUuid = thumbnailField.uuid />
61 <#if ("${thumbnailUuid!}"!="") >
62 <#assign thumbnailFileEntry = (mlxDLFileEntryHelperService.getDLFileEntry(thumbnailUuid, globalGroupId))!{} />
63 <#if thumbnailFileEntry?has_content >
64 <#assign thumbnail = (mlxUrlUtilService.getLRUrl(thumbnailFileEntry))!"" />
65 </#if>
66 </#if>
67 </#if>
68
69 <#assign downloadLink = mlxUrlUtilService.getLRUrl(fileEntry) />
70
71 <article class="corporate--catalogues--thumbnails--item">
72 <a ${trackView} href="${cdn}${downloadLink}" title="${catalogueTitle}" class="corporate--catalogues--thumbnails--item--link" data-track-download-name="${catalogueTitle}" data-track-download-type="Catalogue" target="_blank" rel="nofollow" data-gtm-event="download" data-gtm-event-label="Catalogue/${catalogueTitle}">
73 <figure class="corporate--catalogues--thumbnails--item--figure">
74 ${corporate.img(cdn+thumbnail, true, 'alt="' + catalogueTitle + '"', 'title="' + catalogueTitle + '"', 'class="corporate--catalogues--thumbnails--item--image"')}
75 </figure>
76 <h2 class="corporate--catalogues--thumbnails--item--link-wrapper">
77 ${catalogueTitle}
78 </h2>
79 </a>
80 </article>
81 </#list>
82 </div>
83</#if>
84</div>
An error occurred while processing the template.
Java method "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl.getLRUrl(com.liferay.document.library.kernel.model.DLFileEntry)" threw an exception when invoked on com.mecalux.util.service.impl.MlxUrlUtilServiceImpl object "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl@43669969"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign thumbnail = (mlxUrlUtilServic... [in template "20101#20128#3282463" at line 64, column 37] ----
1<#-- Prueba version -->
2<#-- De momento estos valores se ponen los correspondientes al entorno -->
3<#assign cataloguesVocId = 396088 />
4
5<#assign destacadosCatId = 396091 />
6<#assign standardRackCatId = 396096 />
7
8<#-- Valores por defecto (para que no falle en catalogos licitacion) -->
9<#assign catalogCatId = destacadosCatId />
10<#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(destacadosCatId) />
11
12<#assign globalGroupId = mlxConstants.getLongConstant("GroupIds","GLOBAL")/>
13<#if portletPreferences.queryValues0?has_content>
14 <#list portletPreferences.queryValues0 as catId>
15 <#assign catalogCatId = catId?trim?number />
16 <#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(catalogCatId) />
17 <#if catalogCategory?has_content && (catalogCategory.getVocabularyId() == cataloguesVocId) >
18 <#break>
19 </#if>
20 </#list>
21</#if>
22
23<#-- PINTAMOS EL TEXTO INICIAL -->
24<#if (catalogCatId==destacadosCatId) >
25 <div class="corporate--catalogues--thumbnails--container">
26 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
27<#else>
28 <#-- Solo ocurre con la category Standard Rack en US -->
29 <#if (catalogCatId==standardRackCatId) >
30 <div class="corporate--catalogues--thumbnails--container">
31 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
32 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getTitle(locale)}</h2>
33 <#else>
34 <div class="corporate--catalogues--thumbnails--container">
35 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getDescription(locale)}</h2>
36 </#if>
37</#if>
38
39<#if entries?has_content >
40
41 <#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
42
43 <#assign trackView="data-track-download-view='true'" />
44
45 <div class="corporate--catalogues--thumbnails">
46 <#-- PINTAMOS LOS CATALOGOS -->
47 <#list entries as curEntry >
48 <#assign fileEntry = mlxDLFileEntryHelperService.getDLFileEntry(curEntry.getClassUuid(),globalGroupId) />
49
50 <#assign catalogueTitle = (mlxExpandoService.getExpandoValueForClass("com.liferay.document.library.kernel.model.DLFileEntry","mlxDocumentTitle",fileEntry.getFileVersion().getFileVersionId()).getString(locale))!"" />
51 <#if (catalogueTitle=="") >
52 <#assign catalogueTitle=curEntry.getTitle() />
53 </#if>
54
55 <#assign thumbnailUuid = "" />
56 <#assign thumbnail = "" />
57 <#assign thumbnailField = (mlxDLFileEntryHelperService.getDLFileEntryMlxFieldValuePersisted("thumbnail", fileEntry.getFileEntryId())) />
58 <#if thumbnailField?has_content >
59 <#assign thumbnailField = thumbnailField?eval />
60 <#assign thumbnailUuid = thumbnailField.uuid />
61 <#if ("${thumbnailUuid!}"!="") >
62 <#assign thumbnailFileEntry = (mlxDLFileEntryHelperService.getDLFileEntry(thumbnailUuid, globalGroupId))!{} />
63 <#if thumbnailFileEntry?has_content >
64 <#assign thumbnail = (mlxUrlUtilService.getLRUrl(thumbnailFileEntry))!"" />
65 </#if>
66 </#if>
67 </#if>
68
69 <#assign downloadLink = mlxUrlUtilService.getLRUrl(fileEntry) />
70
71 <article class="corporate--catalogues--thumbnails--item">
72 <a ${trackView} href="${cdn}${downloadLink}" title="${catalogueTitle}" class="corporate--catalogues--thumbnails--item--link" data-track-download-name="${catalogueTitle}" data-track-download-type="Catalogue" target="_blank" rel="nofollow" data-gtm-event="download" data-gtm-event-label="Catalogue/${catalogueTitle}">
73 <figure class="corporate--catalogues--thumbnails--item--figure">
74 ${corporate.img(cdn+thumbnail, true, 'alt="' + catalogueTitle + '"', 'title="' + catalogueTitle + '"', 'class="corporate--catalogues--thumbnails--item--image"')}
75 </figure>
76 <h2 class="corporate--catalogues--thumbnails--item--link-wrapper">
77 ${catalogueTitle}
78 </h2>
79 </a>
80 </article>
81 </#list>
82 </div>
83</#if>
84</div>
An error occurred while processing the template.
Java method "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl.getLRUrl(com.liferay.document.library.kernel.model.DLFileEntry)" threw an exception when invoked on com.mecalux.util.service.impl.MlxUrlUtilServiceImpl object "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl@43669969"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign thumbnail = (mlxUrlUtilServic... [in template "20101#20128#3282463" at line 64, column 37] ----
1<#-- Prueba version -->
2<#-- De momento estos valores se ponen los correspondientes al entorno -->
3<#assign cataloguesVocId = 396088 />
4
5<#assign destacadosCatId = 396091 />
6<#assign standardRackCatId = 396096 />
7
8<#-- Valores por defecto (para que no falle en catalogos licitacion) -->
9<#assign catalogCatId = destacadosCatId />
10<#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(destacadosCatId) />
11
12<#assign globalGroupId = mlxConstants.getLongConstant("GroupIds","GLOBAL")/>
13<#if portletPreferences.queryValues0?has_content>
14 <#list portletPreferences.queryValues0 as catId>
15 <#assign catalogCatId = catId?trim?number />
16 <#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(catalogCatId) />
17 <#if catalogCategory?has_content && (catalogCategory.getVocabularyId() == cataloguesVocId) >
18 <#break>
19 </#if>
20 </#list>
21</#if>
22
23<#-- PINTAMOS EL TEXTO INICIAL -->
24<#if (catalogCatId==destacadosCatId) >
25 <div class="corporate--catalogues--thumbnails--container">
26 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
27<#else>
28 <#-- Solo ocurre con la category Standard Rack en US -->
29 <#if (catalogCatId==standardRackCatId) >
30 <div class="corporate--catalogues--thumbnails--container">
31 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
32 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getTitle(locale)}</h2>
33 <#else>
34 <div class="corporate--catalogues--thumbnails--container">
35 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getDescription(locale)}</h2>
36 </#if>
37</#if>
38
39<#if entries?has_content >
40
41 <#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
42
43 <#assign trackView="data-track-download-view='true'" />
44
45 <div class="corporate--catalogues--thumbnails">
46 <#-- PINTAMOS LOS CATALOGOS -->
47 <#list entries as curEntry >
48 <#assign fileEntry = mlxDLFileEntryHelperService.getDLFileEntry(curEntry.getClassUuid(),globalGroupId) />
49
50 <#assign catalogueTitle = (mlxExpandoService.getExpandoValueForClass("com.liferay.document.library.kernel.model.DLFileEntry","mlxDocumentTitle",fileEntry.getFileVersion().getFileVersionId()).getString(locale))!"" />
51 <#if (catalogueTitle=="") >
52 <#assign catalogueTitle=curEntry.getTitle() />
53 </#if>
54
55 <#assign thumbnailUuid = "" />
56 <#assign thumbnail = "" />
57 <#assign thumbnailField = (mlxDLFileEntryHelperService.getDLFileEntryMlxFieldValuePersisted("thumbnail", fileEntry.getFileEntryId())) />
58 <#if thumbnailField?has_content >
59 <#assign thumbnailField = thumbnailField?eval />
60 <#assign thumbnailUuid = thumbnailField.uuid />
61 <#if ("${thumbnailUuid!}"!="") >
62 <#assign thumbnailFileEntry = (mlxDLFileEntryHelperService.getDLFileEntry(thumbnailUuid, globalGroupId))!{} />
63 <#if thumbnailFileEntry?has_content >
64 <#assign thumbnail = (mlxUrlUtilService.getLRUrl(thumbnailFileEntry))!"" />
65 </#if>
66 </#if>
67 </#if>
68
69 <#assign downloadLink = mlxUrlUtilService.getLRUrl(fileEntry) />
70
71 <article class="corporate--catalogues--thumbnails--item">
72 <a ${trackView} href="${cdn}${downloadLink}" title="${catalogueTitle}" class="corporate--catalogues--thumbnails--item--link" data-track-download-name="${catalogueTitle}" data-track-download-type="Catalogue" target="_blank" rel="nofollow" data-gtm-event="download" data-gtm-event-label="Catalogue/${catalogueTitle}">
73 <figure class="corporate--catalogues--thumbnails--item--figure">
74 ${corporate.img(cdn+thumbnail, true, 'alt="' + catalogueTitle + '"', 'title="' + catalogueTitle + '"', 'class="corporate--catalogues--thumbnails--item--image"')}
75 </figure>
76 <h2 class="corporate--catalogues--thumbnails--item--link-wrapper">
77 ${catalogueTitle}
78 </h2>
79 </a>
80 </article>
81 </#list>
82 </div>
83</#if>
84</div>
An error occurred while processing the template.
Java method "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl.getLRUrl(com.liferay.document.library.kernel.model.DLFileEntry)" threw an exception when invoked on com.mecalux.util.service.impl.MlxUrlUtilServiceImpl object "com.mecalux.util.service.impl.MlxUrlUtilServiceImpl@43669969"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign downloadLink = mlxUrlUtilServ... [in template "20101#20128#3282463" at line 69, column 9] ----
1<#-- Prueba version -->
2<#-- De momento estos valores se ponen los correspondientes al entorno -->
3<#assign cataloguesVocId = 396088 />
4
5<#assign destacadosCatId = 396091 />
6<#assign standardRackCatId = 396096 />
7
8<#-- Valores por defecto (para que no falle en catalogos licitacion) -->
9<#assign catalogCatId = destacadosCatId />
10<#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(destacadosCatId) />
11
12<#assign globalGroupId = mlxConstants.getLongConstant("GroupIds","GLOBAL")/>
13<#if portletPreferences.queryValues0?has_content>
14 <#list portletPreferences.queryValues0 as catId>
15 <#assign catalogCatId = catId?trim?number />
16 <#assign catalogCategory = mlxAssetHelperService.fetchAssetCategory(catalogCatId) />
17 <#if catalogCategory?has_content && (catalogCategory.getVocabularyId() == cataloguesVocId) >
18 <#break>
19 </#if>
20 </#list>
21</#if>
22
23<#-- PINTAMOS EL TEXTO INICIAL -->
24<#if (catalogCatId==destacadosCatId) >
25 <div class="corporate--catalogues--thumbnails--container">
26 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
27<#else>
28 <#-- Solo ocurre con la category Standard Rack en US -->
29 <#if (catalogCatId==standardRackCatId) >
30 <div class="corporate--catalogues--thumbnails--container">
31 <p class="corporate--catalogues--thumbnails--subtitle">${catalogCategory.getDescription(locale)}</p>
32 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getTitle(locale)}</h2>
33 <#else>
34 <div class="corporate--catalogues--thumbnails--container">
35 <h2 class="corporate--catalogues--thumbnails--title">${catalogCategory.getDescription(locale)}</h2>
36 </#if>
37</#if>
38
39<#if entries?has_content >
40
41 <#assign cdn = (mlxUrlUtilService.getCdn(groupId))!"" />
42
43 <#assign trackView="data-track-download-view='true'" />
44
45 <div class="corporate--catalogues--thumbnails">
46 <#-- PINTAMOS LOS CATALOGOS -->
47 <#list entries as curEntry >
48 <#assign fileEntry = mlxDLFileEntryHelperService.getDLFileEntry(curEntry.getClassUuid(),globalGroupId) />
49
50 <#assign catalogueTitle = (mlxExpandoService.getExpandoValueForClass("com.liferay.document.library.kernel.model.DLFileEntry","mlxDocumentTitle",fileEntry.getFileVersion().getFileVersionId()).getString(locale))!"" />
51 <#if (catalogueTitle=="") >
52 <#assign catalogueTitle=curEntry.getTitle() />
53 </#if>
54
55 <#assign thumbnailUuid = "" />
56 <#assign thumbnail = "" />
57 <#assign thumbnailField = (mlxDLFileEntryHelperService.getDLFileEntryMlxFieldValuePersisted("thumbnail", fileEntry.getFileEntryId())) />
58 <#if thumbnailField?has_content >
59 <#assign thumbnailField = thumbnailField?eval />
60 <#assign thumbnailUuid = thumbnailField.uuid />
61 <#if ("${thumbnailUuid!}"!="") >
62 <#assign thumbnailFileEntry = (mlxDLFileEntryHelperService.getDLFileEntry(thumbnailUuid, globalGroupId))!{} />
63 <#if thumbnailFileEntry?has_content >
64 <#assign thumbnail = (mlxUrlUtilService.getLRUrl(thumbnailFileEntry))!"" />
65 </#if>
66 </#if>
67 </#if>
68
69 <#assign downloadLink = mlxUrlUtilService.getLRUrl(fileEntry) />
70
71 <article class="corporate--catalogues--thumbnails--item">
72 <a ${trackView} href="${cdn}${downloadLink}" title="${catalogueTitle}" class="corporate--catalogues--thumbnails--item--link" data-track-download-name="${catalogueTitle}" data-track-download-type="Catalogue" target="_blank" rel="nofollow" data-gtm-event="download" data-gtm-event-label="Catalogue/${catalogueTitle}">
73 <figure class="corporate--catalogues--thumbnails--item--figure">
74 ${corporate.img(cdn+thumbnail, true, 'alt="' + catalogueTitle + '"', 'title="' + catalogueTitle + '"', 'class="corporate--catalogues--thumbnails--item--image"')}
75 </figure>
76 <h2 class="corporate--catalogues--thumbnails--item--link-wrapper">
77 ${catalogueTitle}
78 </h2>
79 </a>
80 </article>
81 </#list>
82 </div>
83</#if>
84</div>