new page from template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tolkienarda
    Contributor
    • Dec 2006
    • 316

    new page from template

    hi all
    i need to be able to create new .php files on the fly from a template only changing one character in that template. i use unique page id's to make sure the same article isn't being displayed on the two pages and that is all that changes, other than the filename of course.

    thanks

    eric
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by tolkienarda
    hi all
    i need to be able to create new .php files on the fly from a template only changing one character in that template. i use unique page id's to make sure the same article isn't being displayed on the two pages and that is all that changes, other than the filename of course.

    thanks

    eric
    This sounds like a horrible kludge. Perhaps you could explain what you are trying to accomplish, and we could give you a smart/easy/scalable way of doing it.

    Comment

    • tolkienarda
      Contributor
      • Dec 2006
      • 316

      #3
      i have almost completed a content management service and one of the last things i need to do is make it so people can add a new page. my menus, and database are already setup to take new pages with no recoding but the acutal generation of a .php file seems to be difficult. and once i do create it i will need to have it filled with the html and php that makes up the template.

      i will publish what i have so far to a webserver today so you can see what i am working on

      eric

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by tolkienarda
        i have almost completed a content management service and one of the last things i need to do is make it so people can add a new page. my menus, and database are already setup to take new pages with no recoding but the acutal generation of a .php file seems to be difficult. and once i do create it i will need to have it filled with the html and php that makes up the template.

        i will publish what i have so far to a webserver today so you can see what i am working on

        eric
        Usually, the process of dynamically creating pages is done through the usage of a template class. The page layout, style, content, and logic can then be kept in a database, and referred to on a page by page basis.

        Comment

        • tolkienarda
          Contributor
          • Dec 2006
          • 316

          #5
          ok

          i can put all of my images and text into a database and but i still am having a problem generating a .php page on my server. realy all i need on each page is one line of code calling a seperate script and sending a page id into it.

          sorry i am not being very clear but my vocabulary on this particular topic seems rather limited

          eric

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by tolkienarda
            ok

            i can put all of my images and text into a database and but i still am having a problem generating a .php page on my server. realy all i need on each page is one line of code calling a seperate script and sending a page id into it.

            sorry i am not being very clear but my vocabulary on this particular topic seems rather limited

            eric
            Perhaps you could give an example of what you wish to create, as I am not understanding you well.

            Comment

            • tolkienarda
              Contributor
              • Dec 2006
              • 316

              #7
              i would show you the site i uploaded it but my server seems to be having issues so as soon as i resolve them i will repost with the domain and some insturctions cause the administrative side dosen't have a menu

              eric

              Comment

              Working...