An error occurred while processing the template.
The following has evaluated to null or missing:
==> restClient.get("/c/learningpaths/${ObjectEntry_objectEntryId.getData()}").name  [in template "57868206215768#32483061#null" at line 20, column 37]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign learningPathStepContentId = r...  [in template "57868206215768#32483061#null" at line 19, column 9]
----
1<script type="module"> 
2import "lms"; 
3 
4document.addEventListener("DOMContentLoaded", function() { 
5 var h1Text = document.querySelector("h1").innerText; 
6 console.log("Texto do H1: " + h1Text); 
7	 
8	const title = document.querySelector(".title"); 
9	 
10	title.innerHTML = h1Text; 
11 
12}); 
13	 
14</script> 
15 
16 
17<#if (ObjectEntry_objectEntryId.getData())??> 
18	 
19	<#assign  
20	learningPathStepContentId = restClient.get("/c/learningpaths/${ObjectEntry_objectEntryId.getData()}").name 
21/> 
22	<div class="breadcrumb breadcrumb-lp"> 
23		<a class="breadcrumb-home" href="/education-lms/index">Education&nbsp/</a>&nbsp 
24		<a href="/education-lms/learning-paths">Learning Path&nbsp/</a>&nbsp 
25		<a href="/l/${ObjectEntry_objectEntryId.getData()}"> ${learningPathStepContentId}&nbsp/</a>&nbsp 
26		<span class="title breadcrumb-text-truncate">  </span> 
27	</div> 
28 
29</#if> 
30 
31<style> 
32	.breadcrumb-lp { 
33		color: #6C6C75 !important; 
34		font-family: Source Sans 3 !important; 
35		span { 
36			font-weight: 600; 
37
38
39	 
40	.breadcrumb-home::before { 
41		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='lexicon-icon lexicon-icon-home-full' role='presentation' viewBox='0 0 512 512' fill='%23999AA3'%3E%3Cpath class='lexicon-icon-outline' d='M233.6,22.4c12.5-12.5,32.3-12.5,44.8,0l182.9,182.8c12,12,18.7,28.3,18.7,45.3V512H320V384c0-35.3-28.7-64-64-64s-64,28.7-64,64v128H32V250.5c0-17,6.7-33.3,18.7-45.3L233.6,22.4z'%3E%3C/path%3E%3C/svg%3E"); 
42		background-size: cover; 
43    color: #6C6C75; 
44    content: ''; 
45    display: inline-block; 
46    height: 16px; 
47    margin-bottom: 4px; 
48    margin-right: 4px; 
49    vertical-align: middle; 
50    width: 16px; 
51
52</style> 

Building Enterprise Websites with Liferay - Introduction

https://youtu.be/WHJzcAPgNI4

Capabilities

Product

Contact Us

Connect

Powered by Liferay
© 2024 Liferay Inc. All Rights Reserved • Privacy Policy