PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   .shtml as a template? (http://www.phpdig.net/forum/showthread.php?t=1370)

sparky 09-26-2004 05:41 PM

.shtml as a template?
 
Hello all!

Been fiddling with phpdig off and on today for my webpage.

I was wondering if you can use .shtml files as a template. :?

I've tried without success so far. Not a big deal I guess but sure would be nice to integrate the code into the rest of the page. I've got the same look for the search page, just not using SSI. :D

vinyl-junkie 09-26-2004 09:29 PM

Welcome to the forum, sparky. We're glad you could join us! :D

The basic templates that come with phpdig are .html files, so I don't know why .shtml wouldn't work, too. Maybe if you explained just how you're trying to customize the template, we could offer some solutions.

sparky 09-27-2004 06:37 AM

Using apache SSI includes.

The server won't load any of the includes unless it's a .shtml file.
Code:

  <div id="container">
    <!--#include virtual="/includes/banner.shtml"-->
    <!--#include virtual="/includes/menu.shtml"-->

If it's saved as a .html file it doesn't parse the comments.

I tried saving the template as a .shtml file to no avail. Maybe I was just getting tired last nite. <shrug>

vinyl-junkie 09-27-2004 07:16 AM

Have you read through this thread? If not, try that solution, see if it works, and let us know one way or the other how it went. Thanks.

sparky 09-27-2004 11:42 AM

That should work.

Just couldn't find it without searching, couldn't search without posting.

sparky 09-28-2004 05:35 AM

Worked perfectly.

Thanks!

vinyl-junkie 09-28-2004 06:13 PM

Congratulations on getting phpdig customized the way you want it! :banana:

Yet another satisfied customer. :)


All times are GMT -8. The time now is 09:05 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.