New page with php or javascript- how to?

JaneLu

Joined: 2014-01-17
Posts: 8
Posted: Sun, 2014-01-26 14:18

how do I create a new page with php code included. I would like a new page to include an external script.
would appreciate a walk tru for dummies

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2014-01-26 16:15

Try http://codex.galleryproject.org/Gallery3:Modules:Pages or the 2 other similar pages it suggests.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
JaneLu

Joined: 2014-01-17
Posts: 8
Posted: Sun, 2014-01-26 17:25

unless there is a way to ftp a custon_page.php file like the way we can do with custom_block module to add php strings or <scripts> with the module that you mentioned. is it possible? because the page module allow me to add pages with and text box and I dont think I can add php strings in a text editor

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-01-28 04:24

You can add javascript to the 'HTML Code' text area of the pages module configuration page.
[img]http://galleryproject.org/files/pages_admin.png[/img]
If you want to add PHP then your going to have to edit the view page; /views/pages_display.html.php it will show up on all pages unless you add some if/else checks.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-01-28 04:32

If that is not what your after then one of the 2 other modules suggested in the pages module docs should do the trick.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team