English > Version 1 [Testing]
Output max Length in Template
(1/1)
baack:
I want to have a fix number of characters by %value=path. The filename in PVD-Plugins-Templates is "HTML Table.ptm. The line is
<TR>
<TD colspan="4">{%value=path}</TD>
</TR>
The output of "path" shall be only 130 characters.
I try <TD colspan="4">{(%value=path) maxlength="130"}</TD>
and <TD colspan="4">{%value=path} maxlength="130"</TD>
Both are wrong. Who can halp me?
Please answer in simpel english or in german.
baack:
edit:
The complete code is
%OPTIONS%
replace="<-> "
filter="HTML Files|*.htm;*.html"
encoding="UTF8BOM"
%OPTIONS%
%HEAD%<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=utf-8" />
<TITLE>Personal Video Database</TITLE>
</HEAD>
<BODY>
<TABLE table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#666666">
%HEAD%
<TR>
<TD><strong><font size="4">{%value=title}</font></strong></TD>
<TD>{%value=year}</TD>
<TD>{%value=genre}</TD>
<TD>{%value=directors}</TD>
</TR>
<TR>
<TD colspan="4">{%value=actors}</TD>
</TR>
<TR>
<TD colspan="4">{%value=description}</TD>
</TR>
<TR>
<TD colspan="4">{%value=path}</TD>
</TR>
<TR>
<TD colspan="4" bgcolor="#99CCFF"> </TD>
</TR>
%FOOT%</TABLE>
<BR><BR><FONT SIZE="-1">Manfred's Video-Tabelle mit Pfadangabe, erzeugt mit Personal Video Database</FONT>
</BODY></HTML>%FOOT%
baack:
2. Question:
On URL
http://www.videodb.info/help/hlp_export.html
I have seen Values {%value=”identifier”}
The Script-Line <TD colspan="4">{%value=path}</TD> is ok.
On http://www.videodb.info/help/hlp_export.html#params the syntax for path is
path - File Path (files separated with |) - template, maxvalues.
How can I modify the line
<TD colspan="4">{%value=path}</TD>
that output only the first file separated with "|" ?
nostra:
Set maxvalues to 1
--- Code: ---{%value=path maxvalues="1"}
--- End code ---
Navigation
[0] Message Index
Go to full version