Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    How to add new pages with php code

    Hi

    I am trying to find a simple way to add my own php pages linked to the side boxes. I have tried EZ-pages, but they cannot accept php (only html). How can I do this?

    I need just a blank php page to open in the central area.

    Thank you

    Andy

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: How to add new pages with php code

    Can you not utilise the admin/tools/define pages editor?

  3. #3
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: How to add new pages with php code

    This is what I am doing right now - editing page 2 in the dreamweaver. It is not good to use the internal zen editor as I need full php editing and debuggingg capabilities. One thing I am still missing:

    the link

    index.php?main_page=page_2

    opens a page /english/html_includes/define_page_2.php

    So, if i create a new page with name define_mytest.php

    Its link will be index.php?main_page=mytest? Is it correct?

    Also, where could I change a header "Page 2" appearing on the top? It is not in the page's code. Where?

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: How to add new pages with php code


  5. #5
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: How to add new pages with php code

    I am trying to make a "shortcut" if its possible.
    I have added a page define_mypage.php and trying to call it as

    index.php?main_page=mypage

    But does not work

    Is there more simple way than creating four folders and templates for a single new page?

  6. #6
    Join Date
    Oct 2006
    Posts
    149
    Plugin Contributions
    0

    Default Re: How to add new pages with php code

    Yes, there are no "shortcuts" in zen! I am up and running, but had to go through all the 5 steps of creating new pages.

    "you cannot outsource your Honeymoon"

  7. #7
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: How to add new pages with php code

    all the 5 steps of creating new pages.
    Thanks for confirming how you achieved your aim,
    am sure will help other members

 

 

Similar Threads

  1. Add New Code in Admin/orders.php
    By haredo in forum Code Collaboration
    Replies: 2
    Last Post: 12 Nov 2015, 09:40 PM
  2. v139h How to add code to category_row.php?
    By wirefram in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Aug 2012, 09:04 AM
  3. Adding New Pages with PHP scripts
    By High Flyin' Ryan in forum Customization from the Admin
    Replies: 2
    Last Post: 14 Dec 2010, 09:18 PM
  4. how to ez pages id for use in php code
    By delia in forum General Questions
    Replies: 1
    Last Post: 12 May 2010, 01:04 PM
  5. How to add new sideboxes in code?
    By MachaNeko in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Apr 2008, 06:27 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR