Skip to Main Content

Stock Number: SM 749545

2025 Peterbilt 536

  • Call For Pricing
New

Stock Number: SD 739747

2025 Peterbilt 589

  • Call For Pricing
New

Stock Number: SD 762887

2025 Peterbilt 589

  • Call For Pricing
New

Stock Number: SD 755635

2025 Peterbilt 589

  • Call For Pricing
New

Stock Number: SD 759795

2025 Peterbilt 579

  • Call For Pricing
New

Stock Number: SD 712079

2025 Peterbilt 567

  • Call For Pricing
New

Stock Number: SM 698027

2025 Peterbilt 537

  • Call For Pricing
New

Stock Number: SM 728657

2025 Peterbilt 536

  • Call For Pricing
New

Stock Number: SM 728676

2025 Peterbilt 537

  • Call For Pricing
New

Stock Number: SM 761022

2025 Peterbilt 548

  • Call For Pricing
New

Stock Number: SM 698177

2025 Peterbilt 548

  • Call For Pricing
New

Stock Number: SD 755761

2025 Peterbilt 589

  • $195,000.00
New

Stock Number: SD 755637

2025 Peterbilt 589

  • Call For Pricing
New

Stock Number: SM 761021

2025 Peterbilt 548

  • Call For Pricing
New

Stock Number: SM 698033

2025 Peterbilt 537

  • Call For Pricing
New
An error occurred while processing the template.
The following has evaluated to null or missing:
==> webContent.totalCount  [in template "37794063322763#20119#220604" at line 13, column 38]

----
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: totalCount = webContent.totalCount  [in template "37794063322763#20119#220604" at line 13, column 25]
----
1<#-- 
2Widget templates can be used to modify the look of a 
3specific application. 
4 
5Please use the right panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8<#if assetCategory?has_content> 
9		<#assign 
10			link = "/headless-delivery/v1.0/content-structures/1404290/structured-contents?filter=taxonomyCategoryIds/any(t:t eq " + assetCategory.getCategoryId() + ")" 
11		  webContent = restClient.get("/headless-delivery/v1.0/content-structures/1404290/structured-contents?filter=taxonomyCategoryIds/any(t:t eq " + assetCategory.getCategoryId() + ")") 
12      categoryContentJson = jsonFactoryUtil.createJSONObject(webContent) 
13			totalCount = webContent.totalCount 
14		/> 
15	 
16	<#if totalCount = 1> 
17	<#list webContent.items as item> 
18		<#list item.contentFields as contentField> 
19			<#assign categoryDesc = jsonFactoryUtil.createJSONObject(contentField.contentFieldValue) /> 
20			<p> 
21				${categoryDesc.data} 
22			</p> 
23		</#list> 
24	</#list> 
25		<#else> 
26			<#if assetCategory.name?? && assetCategory.name != "" && assetCategory.name == "Used"> 
27			<h1>Used Trucks</h1> 
28			${assetCategory.getDescription(.locale)} 
29			<hr/> 
30			 
31		<#elseif assetCategory.name?? && assetCategory.name != "" && assetCategory.name == "New"> 
32			<h1>New Trucks</h1> 
33			${assetCategory.getDescription(.locale)} 
34			<hr/> 
35			 
36		<#elseif assetCategory.name?? && assetCategory.name != "" && assetCategory.name == "Blacklist"> 
37			<h1>Sales Specials</h1> 
38			${assetCategory.getDescription(.locale)} 
39			<hr/> 
40			 
41		<#else> 
42			<h1 class="sr-only">All Products</h1> 
43			${assetCategory.getDescription(.locale)} 
44		</#if> 
45	</#if> 
46</#if>