Creating the correct link for an include?
Hi folks,
I've been learning about DWCS4 and am currently adapting my site (www.customscollector.com) to update and modernise it. What's on the site is quite old.
My question relates to includes and generating the correct link.
I have divided my page into appropriate <div>'s - wholepage, header, index, main content, footer and translate (within footer).
The purpose to doing this is multiple:
1. Cleaner coding (learning)
2. Standards compliant
3. Easier updating
At present, I offer a translation link at the bottom of each page, originally hard coded into each page way back when, along the lines of:
<a href="http://fets3.freetranslation.com/?sequence=core&url=www.customscollector.com/customs/template.htm&language=English/French" ><img border="0" src="../images/flags/france.gif" width="25" height="15" /></a>
Wherein, the above would resolve to do the following: (Clicking on the image of a French flag, the link would resolve to the translation engine for translating the template page from English to French - or German, or Spanish, etc., - you get the idea)
Having framed where I am coming from, my question is this:
Using a <div> for translation options, how do I make sure that the <div> include generates the correct link for the page created?
As an interesting aside, visiting the freetranslation site while composing this question led to an interesting discovery: freetranslation offer a simple include that appears to handle the exact issue that I am asking (and no, I am not affiliated in any way with there site - I just find it useful for what I am doing):
<script src="http://www.freetranslation.com/page-translator/?sourcelang=en"></script>
Any answer to this question would be gratefully appreciated, as I am sure there will be other issues that may come up in the not too distant future....
Thanks for your time and input, I do appreciate it.
Sincerely,
John de Belle
