Web Script: webscripts/fr/uoh/news_actus/news_actus_all.get
Generated from /front/service/script/webscripts/fr/uoh/news_actus/news_actus_all.get on 25 juin 2019 08:52:06

Script Properties
Id:webscripts/fr/uoh/news_actus/news_actus_all.get
Short Name:News actus all
Description:Lists all News actus
Authentication:none
Transaction:none
Method:GET
URL Template:/fr/uoh/news_actus/news_actus_all
Format Style:any
Default Format:html
Negotiated Formats:[undefined]
Implementation:class org.springframework.extensions.webscripts.DeclarativeWebScript
Extensions:[undefined]

Store: /WEB-INF

File: webscripts/fr/uoh/news_actus/news_actus_all.get.html.ftl
<#list news_list.list as news>
	<div class="news">
		<#if news.image?has_content>
			<a href="${url.context}/news?id=${news.id}">
				<img src="${url.context}/image/get?id=${news.image}" class="image" alt=""/>
			</a>
		</#if>
		<div class="detail">
			<div class="date">${news.date}</div>
			<div class="titre">
				<a href="${url.context}/news?id=${news.id}">${news.titre}</a>
			</div>
			<div class="description">${news.description}</div>
		</div>
		<hr class="myhr" />
		<div class="suite">
			<a href="${url.context}/news?id=${news.id}">${msg("news_actus_all.lien.suite")}</a>
		</div>
	</div>
</#list>
<#if news_list.paging.totalItems &gt; news_list.paging.maxItems>
	<#assign page=(news_list.paging.totalItems / news_list.paging.maxItems)?ceiling>
	
	<div id="pagination">
		<#if news_list.paging.currentPage != 1>
			<a href="${url.context}/news_list?currentPage=${news_list.paging.currentPage-1}" class="bouton">${msg("news_actus_all.list.page-precedente")}</a>
		</#if>
		
		<div class="page-number">
			<#list 1..page as i>
				<a href="${url.context}/news_list?currentPage=${i}"<#if news_list.paging.currentPage = i> class="selected" </#if>>${i}</a>
			</#list>
		</div>
		
		<#if news_list.paging.currentPage &lt; page>
			<a href="${url.context}/news_list?currentPage=${news_list.paging.currentPage+1}" class="bouton">${msg("news_actus_all.list.page-suivante")}</a>
		</#if>
	</div>
</#if>
File: webscripts/fr/uoh/news_actus/news_actus_all.get.desc.xml
<webscript>
  <shortname>News actus all</shortname>
  <description>Lists all News actus</description>
  <url>/fr/uoh/news_actus/news_actus_all</url>
  <authentication>none</authentication>
</webscript>
File: webscripts/fr/uoh/news_actus/news_actus_all.get.js
	var currentPage = args["currentPage"];
	
	if (!currentPage) {
		currentPage = 1;
	}
	
	var conn = remote.connect("alfresco-system");
	var data = conn.get("/fr/uoh/news_actus/news_actus_all?currentPage=" + currentPage + "&format=json");

	var json = eval('('+data+')');

	model.news_list = json;

Store: classpath:surf/webscripts

[No implementation files]

Store: classpath:webscripts

[No implementation files]