Page 1 of 1

How to create Back and Print button the sample.tmpl ?

Posted: Wed 2. Mar 2005, 14:57
by Morgen
Hi!

Where should I insert this code, to be appeared under the whole text?

I'm insert code:

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100">[BACK]{IMAGE_LEFT:arrow01.gif} vissza[/BACK]</td>
<td>&nbsp;</td>
<td width="100" height="25"><div align="right">[PRINT]{IMAGE_RIGHT:printer.png} nyomtatás[/PRINT]</div></td>
</tr>
</table>

here is the sample.tmpl :

<!--
sample custom full article summary template
===========================================

TITLE = article title
SUB = article subtitle
SUMMARY = article summary text
IMAGE = summary image, also click zoomable
CAPTION = summary image caption
DATE = show article date {DATE:FORMAT:LANG} or {DATE:FORMAT}

//-->
<div>
[TITLE]<h1 style="margin:0 0 5px 0;">{TITLE}</h1>[/TITLE]
[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]
<p style="margin:0">[IMAGE]<span style="float:left;margin:2px 5px 8px 0;">{IMAGE}[CAPTION]<br>{SPACER:1x3}<br>{CAPTION}[/CAPTION]</span> [/IMAGE]
{SUMMARY}</p>
</div>

Posted: Wed 2. Mar 2005, 15:13
by cyrano
hi Morgen,

setup this in your defined template not in a template for list oder article listing, then you will have it on all pages

put the code into the template in footer for e.g.

Posted: Wed 2. Mar 2005, 15:13
by bachi
you should insert the code in your template.
If yo insert the Code in your sample.tmpl file it would placed after every content- part.

Posted: Wed 2. Mar 2005, 16:18
by Morgen
ok, but not insert my template footer

some text to small...
http://www.sumegitukor.hu/index.php?id=12,7,0,0,1,0
this is article+ html code

The footer is placed too down, and its hard to realize the buttons.

Posted: Wed 2. Mar 2005, 16:23
by cyrano
hi,

if placed in footer section it will appears under your pages, so it depends on the height of your pages.

you can define a css-class for footer and write in class in layout setting for e.g. footer and define this in the frontend.css like

.footer {
value for text, size and color
}