A logger’s
best friend

ponsse-frontpage-banner-1440-900

Dedicated to Cut-To-Length logging Ponsse specialises in cut-to-length forest machines and their information systems. We also offer high-quality maintenance, spare parts and trade-in machines – safely and reliably. Contact us! Read the whole story
Dedicated to Cut-To-Length logging Ponsse specialises in cut-to-length forest machines and their information systems. We also offer high-quality maintenance, spare parts and trade-in machines – safely and reliably. Contact us! Read the whole story

ponsse-frontpage-banner-1440-600-text-only

The cut-to-length method is a modern, nature-friendly logging method.
The cut-to-length method is a modern, nature-friendly logging method.

Frontpage youtube items

An error occurred while processing the template.
Negative range end index (-1) isn't allowed for a range used for slicing.
The blamed expression:
==> 0..lastIndex  [in template "20116#20152#30892" at line 33, column 51]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${title[0..lastIndex]}  [in template "20116#20152#30892" at line 33, column 43]
----
1<#assign cssClass = ""> 
2<#assign embedPath = "https://youtube.com/embed"/> 
3<#assign thumbnailsPath = "https://i.ytimg.com/vi"/> 
4<#assign mqdefault="mqdefault.jpg"/> 
5<#assign maxres="maxresdefault.jpg"/> 
6 
7<div class="ponsse-youtube-items"> 
8<#if title.getSiblings()?has_content> 
9<#assign itemsCnt = title.getSiblings()?size/> 
10<#if itemsCnt == 2> 
11    <#assign cssClass = "col-sm-6"> 
12<#elseif itemsCnt == 3> 
13    <#assign cssClass = "col-sm-4"> 
14<#elseif itemsCnt == 1> 
15    <#assign cssClass = "only-item"> 
16</#if> 
17	<#list title.getSiblings() as cur_item> 
18	<#assign title = cur_item.getData() 
19	lastIndex = title?last_index_of(" ")/> 
20	<#assign img = "${thumbnailsPath}/${cur_item.youtubeLink.getData()}/${mqdefault}"/> 
21	<#if cur_item.customImg?has_content && cur_item.customImg.getData()?? && cur_item.customImg.getData() != ""> 
22	    <#assign img = cur_item.customImg.getData() /> 
23	</#if> 
24	 
25		<div class="youtube-item col-xs-12 ${cssClass}"> 
26		 
27		    <#if cur_item.url?has_content> 
28		        <#assign link = cur_item.url.getFriendlyUrl()/> 
29		        <a class="title" href="${link}"> 
30		        <#else> 
31		        <div class="title"> 
32		    </#if> 
33		    <div class="subtitle">${title[0..lastIndex]}</div> 
34		    <div class="main-title">${title[lastIndex..]}</div> 
35		    <#if cur_item.url?has_content></a><#else></div></#if> 
36		    <div class="youtube-video"> 
37		        <a href="#" id="${cur_item.youtubeLink.getData()}" style="background-image: url(${img})"/><@playButton /></a> 
38		         
39		    </div> 
40		    <div class="details"> 
41		    <div class="abstract">${cur_item.abstract.getData()}</div> 
42		    </div> 
43	 
44		</div> 
45	</#list> 
46</#if> 
47</div> 
48 
49<#macro playButton> 
50 
51<button class="ytp-large-play-button ytp-button"><svg height="100%" version="1.1" viewBox="0 0 68 48" width="100%"><path class="ytp-large-play-button-bg" d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="red" fill-opacity="0.8"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg></button> 
52 
53</#macro> 
54 
55<script> 
56$(function() { 
57    $(".youtube-video>a").click(function(e) { 
58    e.preventDefault(); 
59    console.log("click"+$(this).attr("id")); 
60    $("#ponsse-video-frame").removeClass("hidden");  
61    $("#ponsse-video-frame iframe").attr("src","https://youtube.com/embed/"+$(this).attr("id")+"?autoplay=1&showinfo=0"); 
62    }); 
63     
64     
65}); 
66</script> 

Ponsse Products Carousel

ponsse-frontpage-banner-1440-800

Tähän otsikko Lisäteksti tähän kohtaan joo lorem ipsum dolor sit amet consectetur elit aliquam Lue lisää aiheesta
Tähän otsikko Lisäteksti tähän kohtaan joo lorem ipsum dolor sit amet consectetur elit aliquam Lue lisää aiheesta

Asset Publisher

ponsse-frontpage-banner-1440-600

Tähän otsikko Lisäteksti tähän kohtaan joo lorem ipsum dolor sit amet consectetur elit aliquam Lue lisää aiheesta
Tähän otsikko Lisäteksti tähän kohtaan joo lorem ipsum dolor sit amet consectetur elit aliquam Lue lisää aiheesta

ponsse-frontpage-banner-1440-600-left

Tähän otsikko Lisäteksti tähän kohtaan joo lorem ipsum dolor sit amet consectetur elit aliquam Lue lisää aiheesta
Tähän otsikko Lisäteksti tähän kohtaan joo lorem ipsum dolor sit amet consectetur elit aliquam Lue lisää aiheesta

Asset Publisher

ponsse-frontpage-video-banner-1440-900

Factory Providing even higher quality, productivity, flexibility and safety for our customers worldwide. Play video