ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - ProductCart format and Dreamweaver Templates
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ProductCart format and Dreamweaver Templates

 Post Reply Post Reply
Author
Message
alexL-icc View Drop Down
Newbie
Newbie
Avatar

Joined: 01-March-2010
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote alexL-icc Quote  Post ReplyReply Direct Link To This Post Topic: ProductCart format and Dreamweaver Templates
    Posted: 24-May-2010 at 2:55pm
Hey all,

I am running into difficulties using Dreamweaver templates with the format with which ProductCart wants users to structure their sites.

So, the code for all of our pages is supposed to look in general like this:

<!--#include file="header.asp"-->          
... code and content for individual page goes here...   
<!--#include file="footer.asp"-->


But, when I used this format with Dreamweaver templates, I had problems with my page displaying in Internet Explorer 8. Namely, the margin:auto CSS declaration was being ignored and many of my page elements were floated to the left instead of being centered.

This is how it happens, as I've understood from my internet research. When building the template, Dreamweaver is supposed to find the <head> tag and put the following code before it: <!-- InstanceBegin template="/Templates/template-name.dwt.asp" codeOutsideHTMLIsLocked="false" -->.

But instead, since the documents I am working with do not have a <head> tag but rather <!--#include file="header.asp"--> instead, Dreamweaver puts the <!-- InstanceBegin template... --> tag before the <!--#include-->.

This means that the InstanceBegin is put by Dreamweaver at the beginning, in effect, of the entire HTML document. The template's InstanceBegin tag goes even before the <!DOCTYPE> declaration, and that's where problems with Internet Explorer come in.

Internet Explorer requires, as I understand, that the <!DOCTYPE> be the first tag in an HTML file. Otherwise, it goes into Quirks Mode and CSS declarations like magin:auto do not display properly.

But, since ProductCart requires that we use <!--#include--> tags for our header and footer, I can't seem to find a way to make Dreamweaver templates work properly in Internet Explorer.

Can anybody help? I would greatly appreciate it.
Alex L.
Back to Top
Guests View Drop Down
Guest
Guest
Post Options Post Options   Thanks (0) Thanks(0)   Quote Guests Quote  Post ReplyReply Direct Link To This Post Posted: 24-May-2010 at 5:25pm
Hi Alex,

PC's use of Server Side Includes for the site theme basically makes the need for DW templates obsolete, the way I see it. It enables you to accomplish the same thing and much more than using templates.
Back to Top
intour View Drop Down
Senior Member
Senior Member


Joined: 30-June-2006
Location: United Kingdom
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote intour Quote  Post ReplyReply Direct Link To This Post Posted: 25-May-2010 at 8:43am
Sean is right - the header.asp and footer.asp files are effectively your productcart template. You don't need to use dreamweaver for your content pages unless you want to use static  html pages in which caase you dont need header.asp and footer.asp.
 
Use the content manager to populate them. You can create your central content in dreamweaver if you prefer and then copy the source code into the content management system - just be careful of the paths to your image and media files.
 
Nigel
Innerview
Productcart Platinum Reseller
Web Design/Hosting/Virtual Tours
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.