rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Nick on March 27, 2009, 02:48:29 AM

Title: Define Image and Scripts Locations
Post by: Nick on March 27, 2009, 02:48:29 AM
I am somewhat new at creating HTML templates and gotten pretty far w/ my first template but am running into a problem that I can not find any documentation on but from what I see from others templates is probally just a matter of a few tweaks(or hopefully is)

Basically,  how do I modify a image src or script to only show on my initial page and not the subsequent pages.

<img src="SystemFolder/frr recovery.jpg"width="260" height="190"vspace="25" hspace="25">
<align="right" >

and


<TITLE>Page Titlex</TITLE>
<!--- Hide from old browsers
 {location.href =
list.options[list.selectedIndex].value}
// end hiding -->
   FRR Recovery Inc. Web Directory
   <font color=#000080>



Any help with this issue would be greatly,greatly appreciated.
Title: Re: Define Image and Scripts Locations
Post by: rejetto on March 27, 2009, 11:36:27 AM
I am somewhat new at creating HTML templates and gotten pretty far w/ my first template but am running into a problem that I can not find any documentation on but from what I see from others templates is probally just a matter of a few tweaks(or hopefully is)

the template system is documented, although largely improvable
http://www.rejetto.com/wiki/index.php/HFS:_Template

Quote
Basically,  how do I modify a image src or script to only show on my initial page and not the subsequent pages.

you can use javascript (can't help with it right now), or use template macros if you are using HFS 2.3
with the latter, it's simple as

Code: [Select]
{.if|{.%folder% = /.}|
<img src='mypic.jpg'>
.}

Quote
<TITLE>Page Titlex</TITLE>
<!--- Hide from old browsers
 {location.href =
list.options[list.selectedIndex].value}
// end hiding -->
   FRR Recovery Inc. Web Directory
   <font color=#000080>


Any help with this issue would be greatly,greatly appreciated.

i don't understand anything by reading. just garbage.  :-\