How to insert generated pages into existing website?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mfriend
User
Posts: 14

How to insert generated pages into existing website?

Post by mfriend »

Hi Folks

I am trying to figure out how to insert generated pages into an existing website. I know how to turn off the header/footer when generating. I thought maybe I had to add the existing header info to the Global header section, but then I end up with two body tags, etc.

Is there a tutorial or something I'm missing that could step me through it? I don't want or need to modify the actual table information generated by PHPMAker, just be able to insert it into the website design.

Thanks,
Matthew


danielc
User
Posts: 1601

Post by danielc »

mfriend wrote:
insert generated pages into an existing website

If you want to include the PHPMaker generated pages into your own page, you may use php include (see http://php.net/manual/en/function.include.php).

If the existing website is generated by PHPMaker, since the generated scripts (with no header/footer) uses include_once "header/footer.php", there will not be 2 <body> tags. But if the website is your own, you do need to customize the header/footer.php so they will not output the <body> tags.

Alternatively, you can customize template.php in template to suit your existing website, read Customizing Template in the help file.


mobhar
User
Posts: 11737

Post by mobhar »

@mfriend, Perhaps this would help: http://www.hkvforums.com/viewtopic.php?f=4&t=35332


mfriend
User
Posts: 14

Post by mfriend »

Thanks for the help and advice everyone.... works good now.

I appreciate it.

Matthew


Post Reply