Home > Structure > English > Glossary > Itemtemplate
A newer version of this fact exists. (view)
Itemtemplate
 

Itemtemplate is an additional parameter to the factinclude, which can be used to extract specific information from the fact that will be included. With the itemtemplate you can determine which parts of the included fact will be displayed and in what way. The itemtemplate itself is a separate fact that is written in HTML mode where you can set specific tags and CSS styles. When this template is used for factinclude all used tags in the html-code will be replaced with the corresponding data.

 

For example:

 

(1) A normal fact:

 

 

(2) An exaple code for a template:

 

<html>

<style>

.includeimage img {

width: 100px;

height: 80px;

}

.includemeta {

font-size: 9px;

}

</style>

<div style="border: 1px solid black;">

<h1><titile/></h1>

<div class="includeimage" style="float: left;"><image/></div>

<p><text cuttext="200"/></p>

<h1><link/></h1>

<a href="/<id/>.<v/>">read more</a>

<br clear="all">

<link/>

<div class="includemeta">

<meta/>

</div>

</div>

</html>

 

(3) A view of the fact with this itemtemplate:

 


Metainfo:
Author: factline Webservices GmbH; Copyright: factline Webservices GmbH; Published by: factline Webservices (factline5)
factID: 1455304.9 (...history); published on 13 Apr. 2010 09:42
 
Shortcuts:
 
Referers (5):