I have drupal-6.19 installed on a development server for 2 hosts. In my theme directory I have a basic template in page.tpl.php the similar to the way I want, I copy it to page-front.tpl.php and then edit it to remove print $content; and simply put Welcome save and exit the editor. Reload and I still have the default drupal page. I went to /admin/settings/performance and clear the cache reload the front page and I have same thing. I look at development.cxm/user/1 and I get the new page-front.tpl.php. Thinking it was a module possibly causing this I deleted all the modules with the same result. I then copied the theme to a safe place deleted the whole drupal install as well as the corresponding database. I start over from scratch this time I make a development.cxm and development2.cxm the only thing I did after the install was change the time formats and change file formats to private -transferred by drupal. I then make the themes directory on both sites and copy mytheme there. In the one install it has the same result as above and I get the normal admin screens when I go to /admin/ on the second site it works the same as it did above except this site shows the page-front.tpl.php when I go to /admin/. How would the same theme have a different effect (and both not the desired result) on different sites? I am including both my page.tpl.php and page-front.tpl.php

page.tpl.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>
</head>

<body>

  <div id="wrapper">
    <div id="branding">
      <a href="<?php print theme_get_setting('testtheme_feed_url'); ?>rss.xml"><img src="<?php print base_path() . path_to_theme() ?>/images/toolbar_feed.png" alt="Rss Feed" title="Subscribe to our RSS feed" /></a>
    </div>
    <div id="content">
      <div id="mainNav">
        left side
      </div>
      <div id="mainContent">
        Welcome to <?php print $site_name; ?>!
      </div>
      <div id="secondaryContent">
        right side
      </div>

    </div>
    <div id="footer-wrapper">
      <center>&#169; Copyright <?php print $site_name; ?> <?php echo date('Y'); ?></center>
    </div>
  </div>
  <?php print $closure; ?>
</body>
</html> 

page-front.tpl.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>
</head>

<body>

  <div id="wrapper">
    <div id="branding">
      <a href="<?php print theme_get_setting('testtheme_feed_url'); ?>rss.xml"><img src="<?php print base_path() . path_to_theme() ?>/images/toolbar_feed.png" alt="Rss Feed" title="Subscribe to our RSS feed" /></a>
    </div>
    <div id="content">

      <div id="mainContent">
        Test page-front.tpl.php
      </div>
    </div>
    <div id="footer-wrapper">
      <center>&#169; Copyright <?php print $site_name; ?> <?php echo date('Y'); ?></center>
    </div>
  </div>
  <?php print $closure; ?>
</body>
</html>

Comments

krazykanuk’s picture

I found it i removed the php content lines in both changed the page.tpl.php back to original and all is as it should be.