Can someone check the code on this page (made from a template) that works sometimes in different browsers and sometimes it doesn't present properly?
All the pages in the site are from one template, except for the index, which is a different style sheet. The index works fine.
We're probably going to need a little more info to help you out.
Which page(s), specifically, show the problem?
What is supposed to happen?
What is happening instead?
Which browsers are affected?
What version of those browsers are you using?
You admin page has this line of HTML code on line #1 which doesn't belong.
Run your Template(s) through the code validation tools below and fix reported errors.
HTML - http://validator.w3.org/
Save Templates & populate changes to child pages.
You will need to re-upload all child pages to remote site.
Your index page doesn't have the JSP code on it and it works fine.
If the page falls apart when you remove that line of code from your template, something else is wrong with your code that also needs attention.
You'll need to manually copy & paste your Template code into the on-line code validators.
Make sure when you are creating pages from your template files that you DO NOT use Save As from the original .dwt file to make those new pages. You should be using File > New > Page From Template and then choosing the template to create a page from the dialogue pop up.
The reason I bring this up is because when I looked in your Templates folder online, I saw a file called "body.dwt.html" which typically means you are doing the described no-no from above. That will cause all kinds of problems for you down the road if you do not use the .dwt file correctly.
EDIT: As a secondary note, you do not need to upload the Templates folder (or any .dwt file) at all since DW only uses your .dwt files locally when you "Create Page From Template".
Thank you, that sounds like it could be my problem. I did use the File>New>Page for each page created from the template, HOWEVER, the original template "body.dwt.html" was created from a "save as" because it was (accidentally) an .asp file. I didn't want to create it again, so I took a short cut, and now it's a problem. I guess the only way to insure that I don't have any more trouble is to recreate the original template?
First, remove the .html from the end of body.dwt.html from within the Files tab for your site. Dreamweaver Templates use the extension .dwt and must have that at the end in order to function correctly when you use the File > New > Page From Template function to create a page.
From the template code (that's all that is making it an "ASP" page as far as DW cares).
Finally, do not move the .dwt file from the DW generated Templates folder. It MUST be there in order to function for your site. Again, it's only needed locally, you won't need to upload the .dwt or the Templates folder.
Your template page should now work correctly when used as the base for a File > New > Page From Template.
Thank you so much for your advice, and for making it so clear!
I tried to remove
from the template a few days ago, and that seems to be what caused the pages not to render! As soon as I put it back in the pages that didn't work, everything was fine. I'd be afraid to remove it again. It's imperative that this site works right now. But is it important to delete the .html first? Will that make the difference?
Without removing the .html from the end of the name of your template, it will not finction as a template in DW.
Is not correct html coding and absolutely should not be there if you are coding your page as straight html.
EDIT: If, after you remove that line of code, your page for some reason will not render, show us the new page and one of us will be able to tell you what else is causing the problem. That code should have absolutely nothing to do with the display of a standard html page.
My templates for asp pages are named to this convention: mytemplate.dwt.asp and it seems to work fine for all my asp pages. Now if you are stating for html pages, then it would end with as mytemplate.dwt
That is how DW saved my template files for asp pages. I am not trying to say something here, just trying to get a little clarification if this is not correct (it has been working for me and on the one site that uses asp, I have six template pages that I use). Confused yet?
DW does it like that for an ASP based template automatically.
It doesn't add a .html after the .dwt for a normal html based template though.
Playing around on my machine, I can get them to work with the additional extension. I think I was confusing it with using an .html extension instead of a .dwt which seems to blow right up.
In any case, since the OPs site is not ASP, it should not have the language code before the doctype or the additional .html extension. Since they're running into intermittent errors when using templates, I'm of the mindset that it's best to eliminate all possible contributing factors by getting back to "default" as it were.
Europe, Middle East and Africa