Home > struktur > English > Glossary > Itemtemplate
Eine neuere Version dieses Facts existiert bereits.. (anzeigen:)

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:
Autor: factline Webservices GmbH; Copyright: factline Webservices GmbH; Publiziert von: factline Webservices (factline5)
factID: 1455304.10 (...Archiv); Publiziert am 13 Apr. 2010 09:43
 
Verknüpfungen:
struktur  >  English  >  Glossary 
 
Verweis(e) (5):
Add itemtemplate to a factinclude18 Jan. 2012factlink
Create an itemtemplate18 Jan. 2012factlink
Add itemtemplate to a factinclude25 Aug. 2010factlink
Create an itemtemplate25 Aug. 2010factlink
Factinclude - HTML03 Aug. 2010factlink