Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts

    New Page on Web Site

    Quick question... I want to start a new page on my website. I want it to look like every other page (the same left-side, right-side, header, footer, banner, etc...) I tried putting a new .tpl file in the folder but that doesn't work. Can someone please show me how to do this? Thanks.

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello thepriceoflust, Not sure what a .tpl file is... MS Access? I don't use that program.
    To make a new page though, just take one of your .html pages, strip the content out of it and save it as a new .html. I'm sure there are other ways of doing this especially if your working with a template, but this will work too.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    That is the thing that I am confused on because I have searched my whole directory for html pages and I don't have any... I have all these .tpl (I believe they are called template) files instead. When you open up a .tpl file and modify it all you are doing is modifying the middle-section of the page. I am not sure but to me it seems like there is another file that holds the formatting for each web page and these .tpl files just modify the middle section of each. For instance I have a contact page. When you try to view the files all I have is a contact.tpl. When you actually load the web page in the browser though it shoes up at contact.html... There must be a file that hold the layout of the site and applies each .tpl file to the layout for each page.

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Where did these files come from? You'll have to give us more context.
    OracleGuy

  • #5
    Regular Coder mOrloff's Avatar
    Join Date
    Nov 2008
    Location
    The Great Pacific NW, USA
    Posts
    422
    Thanks
    8
    Thanked 6 Times in 6 Posts
    If I remember correctly from another post of yours, your site uses PHP. Is that right?

    If so, the pages may be getting dynamically generated, and these tpl files may be just what you expect (simply the content).

    Have you tried just doing a SaveAs on one of these tpl files (to create a new one) and calling for it?

    EXAMPLE: open contact.tpl in your code editor, save as test.tpl (and dink around with the content if you want).
    Then in your browser, change the url from www.example.com/contact.html to www.example.com/test.html

    If your content is getting dynamically generated, this may just do the trick.

    ~ mo

  • #6
    Regular Coder
    Join Date
    Nov 2009
    Posts
    132
    Thanks
    42
    Thanked 0 Times in 0 Posts
    ys your right morloff... It's dynamic

  • #7
    New Coder
    Join Date
    Jul 2008
    Posts
    55
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Just copy the page, use some PHP includes


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •