Gossamer Forum
Home : Products : DBMan SQL : Discussion :

html format

Quote Reply
html format
When making user templates in DBMan SQL 2.0.3 should the following tags be included or are they generated by the main program?

<html> </html>
<head> </head>
<body> </body>

Thank you.

Simon.
Quote Reply
Re: [jai] html format In reply to
You should include these tags in your templates .

Cheers,

Jean(at)Gossamer Threads Inc.
Quote Reply
Re: [jean] html format In reply to
If the tags appear in every template won't we be doubling up (e.g header.html, add_form.html, footer.html) when the page is generated?

Thanks

Simon.
Quote Reply
Re: [jai] html format In reply to
Hi Simon

Basically, the template parser will display all the original HTML tags and parse only the GT tags. The HTML tags won't be doubling up unless you use <%include another_template.html%> to include another file which already have these HTML tags defined.

Cheers,

Jean(at)Gossamer Threads
Quote Reply
Re: [jean] html format In reply to
Hi Jean,

I'm trying to understand the correct way to go about constructing my html user teplates and I often refer to the default, homes and image_gallery html files that come with DBManSQL 2.0.3. Those file don't use the <html></html><head></head><body></body> tags on EVERY html template. In the case of the default template set -

- the header.html starts with <html> and doesn't close it,

- the add_form.html has no tags,

- the footer.html ends with </html>

So if we include the header and footer on every page then we DON'T need to use the tags on EVERY page. Is this correct??

Thanks again.

Simon.
Quote Reply
Re: [jai] html format In reply to
Insert the header tags in header template and nowhere else.

If you need another header in other page, you can just make header2 Cool

I learned hard way, and had to modify all my pages after I found tons of <head> tags all over Angelic