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:
About factline Community Server (FCS)
Author: Astrid Holzhauser Published by: factline Webservices GmbH Copyright: factline Webservices GmbH factID: 181898.4 published on 19 Mai. 2008; 16:00
(2) An exaple code for a template:
<html>
<style> .includeimage img { width: 180px; height: 60px; } </style>
<div style="border: 1px solid black;">
<h1><titile/></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:
About factline Community Server (FCS)
Author: Astrid Holzhauser Published by: factline Webservices GmbH Copyright: factline Webservices GmbH factID: 181898.4 published on 19 Mai. 2008; 16:00
|