Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

common things in templates

Quote Reply
common things in templates
I am using templates. I have tried to modify my site_html_template with a global and a variable like the following...

%globals = ( site_menu => $site_menu

);

# Ahora se define el valor de algunas variables globales que se van a usar en las templates

##########################################################
## Menu ##
##########################################################

# Esto es la barra gris de cabecera de página, excepto en home
$site_menu = qq~
<TR>
<TD bgColor=#e6e6e6 width="100%">
<P align=right><SMALL><FONT face=Arial><A
href="http://enlaces.defensa.com/pages">Volver</A> | <A
href="mailto:enlaces@defensa.com">Correo
</A></FONT></SMALL></P></TD>
</TR>
~;

but it does not work....How can I use common headers and other things in my templates. Do I have to use site_html w/o templates?

I know you have a similar FAQ but I can not read it, sorry..

Quote Reply
Re: common things in templates In reply to
Two problems:

1) You are not putting the complete table codes in the $site_menu definition...It should look like the following:

Code:
$site_menu .= qq| <TR>
<TABLE BORDER="0" WIDTH="100%">
<TR>
<TD bgColor=#e6e6e6 width="100%">
<P align=right><SMALL><FONT face=Arial><A
href="http://enlaces.defensa.com/pages">Volver</A> | <A
href="mailto:enlaces@defensa.com">Correo
</A></FONT></SMALL></P></TD>
</TR>
</TABLE>|;
BTW: There is a FAQ/Tutorial about Header and Footer files for LINKS 2.0 located here:

http://www.anthrotech.com/...ks/faqs/insertfiles/

2) You need to use the following tag in your template files:

Code:
<%site_menu%>
BTW: This type of question should be posted in the Links Customization Forum.

Regards,

Eliot Lee
Anthro TECH, L.L.C
Web: http://www.anthrotech.com/