Thursday 25 March 2010 3:54:02 am
Hi Others, Since rapidshare link will be expired in later time, here I added the code of my custom tag and ini file entries so anyone new to ezpublish might can get a help. --------- START - code of "mycustomtag2.tpl" ----------
<div>
<table cellpadding="5" cellspacing="0" width="100%">
<tbody>
<tr>
<td style="font-weight: bold; font-size: 11px; background-image: url(/ezpublish2/extension/ezwebin/design/ezwebin/images/topimg.jpg); width: 100%; color: #ffffff; background-repeat: repeat-x; font-family: verdana, arial, helvetica, sans-serif; text-align: left">
{if and(is_set( $linktext ), $linktext )}{$linktext}{/if}
</td>
</tr>
<tr>
<td style="font-weight: bold; font-size: 10px; background-image: url(/ezpublish2/extension/ezwebin/design/ezwebin/images/contents_backgrnd.jpg); color: #ffffff; background-repeat: repeat-y; font-family: verdana, arial, helvetica, sans-serif; text-align: left">
{$content}
</td>
</tr>
</tbody>
</table>
<br> </div> --------- END - code of "mycustomtag2.tpl" ---------- --------- START - ini file settings ---------- ------------------------ content.ini.append.php -------------------------------------
ini file
C:\inetpub\wwwroot\ezpublish2\settings\siteaccess\ezwebin_site_admin\content.ini.append.php
[CustomTagSettings]
AvailableCustomTags[]=mycustomtag2
IsInline[mycustomtag2]=false
[mycustomtag2]
# Custom attributes list
CustomAttributes[]
CustomAttributes[]=linktext
CustomAttributes[]=marginright
CustomAttributes[]=marginleft ---------------------------- mycustomtag2.tpl ----------------------------------
tpl file location C:\inetpub\wwwroot\ezpublish2\design\standard\templates\content\datatype\view\ezxmltags\mycustomtag2.tpl --------- END - ini file settings ---------- regards, Vins
|