Question

  Asked: Jan 20 2008   3:32 AM GMT
  Asked by: CallumM


How to insert a CMS (Doop) page into a separate page using PHP?


CMS, PHP, iFrame, Doop, Web development

This seems like it would be fairly simple but I'm coming up empty so far.

I have installed DOOP, a very simple CMS. I put it into its own folder in my website root. What I want is for a particular DOOP page, let's say the home page

http://mywebsite.com/cms/index.php?page=1home

to display on another page - let's say this one

http://mywebsite.com/aboutus.html

I thought about using an inline frame, which would work except that the frame height won't scale when the frame content is taller than the frame height. I don't want any srollbars, I want this to be seamless.

Then I thought about using a PHP include. However when I try that I get strange header and T_STRING errors.
Is there a better way? Am I using includes the wrong way? Thanks for help, and if you message me I'll send actual examples of what I'm doing.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Hi CallumM

I found your question here as i am browsing over some doop related articles on the net.

So, re: your question, yes the only effective way is:

- configure .htaccess file to treat .html as a .php file and execute codes.
- make an include page like you mentioned above.


* Version 2.0 (soon) now uses this kind of method for security and web standard purposes.

Send me your file so I can check what's wrong with your sample work, the email address is on the site's help page.

Sorry, our forums is still in the works. but I will be soon having a blog as an alternative for doop support old and new versions

cheers.

~nalds
doop Open Source Content Management System
www.mydoop.org
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataManagement and Development.

Looking for relevant DataManagement Whitepapers? Visit the SearchDataManagement.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register