Home > Structure > English > Manuals > p-admin manuals > HowTo > Customize the appearance of a fact with an itemtemplate
A newer version of this fact exists. (view)

Customize the appearance of a fact with an itemtemplate
 

Let's view an example how to use itemtemplate in a factinclude in order to extract specific information from a fact and to design it in a particular way:


 


(1) A normal fact:


 



 


(2) An exaple code for a template:


 









<html>


<style>
.includeimage img {
width: 180px;
height: 60px;
}
</style>


 


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


<h1><title/></h1>


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


<p style="width: 150px; height:80px;"><text cuttext="450"/></p>


<h1><link/></h1>


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


<br clear="all">
<link/>


 


</div>
</html>



 


 


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


 






Metainfo:
Author: factline Webservices GmbH; Copyright: factline Webservices GmbH; Published by: Webservices factline 4 (factline4)
factID: 1546197.3 (...history); published on 24 Sep. 2012 12:05
 
Shortcuts:
Structure  >  English  >  Manuals  >  p-admin manuals  >  HowTo 
 
Referers (1):
Itemtemplate as parameter24 Nov. 2010factlink