Начало > Директории > English > Glossary > Itemtemplate
Съществува нова версия на този факт. (разгл.)

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:

 




Метаинфо:
Автор: factline Webservices GmbH; Авторско право: factline Webservices GmbH; Публикиван от: factline Webservices (factline5)
InfoID: 1455304.9 (...версии); публикуван на: 13 Apr. 2010 09:42
 
Препратки:
Директории  >  English  >  Glossary 
 
Отнася се до (5):
Add itemtemplate to a factinclude18 Jän. 2012factlink
Create an itemtemplate18 Jän. 2012factlink
Add itemtemplate to a factinclude25 Aug. 2010factlink
Create an itemtemplate25 Aug. 2010factlink
Factinclude - HTML03 Aug. 2010factlink