Jump to content

Reading tutorials - 2 templates on the same page display(!) question


Recommended Posts

Posted

Hi!

I'm new here. Starting by tuts and having the same problem that Sito, 4 months ago, reported on the "hello world"'s comment section. I quote Sito:

Hello, just new to this CMS, and after following the tuts here I get a 'Earth' page but the with the Title & Content above the navigation menu...

What's happening is that pw just appends the home template stuff to the generated html page. Like this:
 

<!DOCTYPE html>

     <!-- here goes the expected generated page from the template planet.php from the "hello worlds" tut... -->

</html> <!-- ending here -->
<!DOCTYPE html>

     <!-- ... and here goes the home template stuff -->

</body>
</html> <!-- ending here -->

Doing the previous tut, I "solved" the problem replacing "echo" by adding the echoes to $content var, and the 2 templates fit nice together.  That works, sure, but:

- The child page always inherit parents template?

- I think that I should start my pw digging with "blank" template. Should I reinstall, or is it possible to change or kill the home's page template (for instance, something like killing all fields of template home?)

- Seems that I missed some ultrabasic reading. Can you point it to me?
Any suggestion are welcome,

Thanks,

Julio

Posted

ok, now I know half of the answers, I was testing with intermediate pw setup and it should be beginner pw setup... sorry...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...