• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do I use includes on GoDaddy?

mayest

Senior member
So, I've been creating a new Web site. In one section of it, I have a table of contents div that uses a list of pages in that section. I would like to have the table of contents imported from an html file in the same directory. You can look at a page here to see an example of the TOC.

I use GoDaddy for hosting and have a Windows-based (Server 2003?) server. I am not using ASP (and I really don't know anything about it), though I could enable it if necessary. I also use Dreamweaver to develop the site. (I have recently learned how valuable the code view is, and I now spend most of my time using it in that mode.) Dreamweaver's help shows how to do a server-side include and I tried that. It worked great in Dreamweaver's design mode, but it doesn't work at all on the actual site. I was using a File include since my understanding is that a virtual include doesn't work on Windows. I actually tried both, with the same results.

For now, I just have the TOC div duplicated in each page. That works, but I have to update each of them separately. If I could use an include with the html file, it would make maintenance much simpler.

So, does anybody know how to get this to work on GoDaddy with Windows hosting? GoDaddy support won't help. Presumably, I need to set some option somewhere in the hosting options, but I can't find it. When I emailed support, I was hoping that they would tell me what to do, or tell me that they had disabled SSI support. I didn't get anything other than a "we can't help with html coding" response.

Also, I'm thinking of switching to a Linux-based server. It seems that would be possible, but I don't know how long the site would be down or what other effects that might have. Has anybody ever made the switch on GoDaddy?

I've had another Web site for about 12 years, but I never did any real development work before this, so I'm kind of a noob.

Thanks,

Tim
 
Thanks for that link. I may try the javascript method if I can't get the include working. I'm definitely going to try changing the extension to .shtml to see if that makes it magically work.
 
mayest,
Your site looks excellent and the format is similar to what I am attempting . . . without success (on godaddy). I assume you used a content file that includes a header file and menu file?

I have seen a lot of disagreeing and confusing instructions that assume I am experienced, but no simple examples to copy, paste, and intelligently edit.
Would you mind posting (or emailing to mezerskezer@yahoo.com) examples of the files you used to make it work?

For example:
------------------
page.fileextension
<html>
<stuff>more stuff</stuff>
<body>things</body>
</html>
--------------------
header.fileextension
<html>
<stuff>more stuff</stuff>
<body>things</body>
</html>
------------------------
menu.fileextension
<html>
<stuff>more stuff</stuff>
<body>things</body>
</html>
 
> mayest
> Last Activity: 07-26-2010 12:26 PM

You bumped a 4-year old thread from someone with a last activity date of a year ago, so I think you're on your own.
 
Back
Top