Adding a page with php

Yarik

Joined: 2011-10-08
Posts: 11
Posted: Tue, 2011-11-15 12:49

Hello, I would like to know if it is possible
to add a page (within pages module) that will include some of my html and php at the same time?
because It seems that when I'm trying to include php It doens't work at all.
(I'm trying to do an additional uploading form)
Thanks, Yarik.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Tue, 2011-11-15 20:21

Should work. Try some simple php first (like an echo command) and troubleshoot from there.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-11-16 05:02

All you should have to do is edit views/pages_display.html.php
Your code will show on all pages pages. If you want different content for different pages then you will have to be a bit more creative.
Adding the php via the UserInterface of the Pages module might get some stuff stripped.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Yarik

Joined: 2011-10-08
Posts: 11
Posted: Wed, 2011-11-16 13:42

Thanks guys, I'm still trying to figure it out ..
I found that it is possible to do it with Iframe. but it doesn't look well.
Maybe there is a way to create a php page?

 
klinion

Joined: 2009-02-26
Posts: 180
Posted: Wed, 2011-11-16 18:53

Hi,
Had a similar problem. The Pages module doesn't accept html and just strips code as Dave says. It works fine editing views/pages_display.html.php but shows on all pages as already commented. If you upload the "Edit tinymce" module and the "about" module it works fine except that I have only used one page. Hope this helps,
Ken

www.talkingwalk.com/gallerywalk

 
Yarik

Joined: 2011-10-08
Posts: 11
Posted: Thu, 2011-11-17 13:31

It helped me alot!! thanks..
And last question! anyone knows where can I input my php code in the about module?