Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 php include question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Indy
Novice

2 Posts

Posted - 17 Jan 2006 :  05:29:10  Show Profile  Visit Indy's Homepage  Reply with Quote
Just downloaded the software - checking it out and so far it looks good...

First question:

I want to setup a header and footer and use the php include directive to pull them into each page.

When designing the header and footer, how do I configure them to only export the snippet of html (for the include file) and not have the HTML, HEADER, BODY, etc. tags included?

Thanks,
dfg

s.dav
Site Admin

Italy
3364 Posts

Posted - 17 Jan 2006 :  08:53:22  Show Profile  Visit s.dav's Homepage  Reply with Quote
First of all create the header and the footer in two separate .dhe files; you can call them "inc_header.dhe" and "inc_footer.dhe".
Inb both versions 1.x/2.x you have to include the header file into all file using the "Insert Dynamic HTML Editor file object"

Then in version 1.x you can use F12 and choose "Dynamic Page" & ".php" so dhe will generate the header file into a separate file and only the include instruction in the main file.

In version 2.x Dynamic HTML Editor always merges the HTML codes but maintain shared the images used in the footer and in the header.

In version 2.x you can use the project manager to add files to your project and choose a common footer for each pages.
Modifying the page option you can also avoid a certain page to have the common footer.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000