I want to be able to add a custom page such that, the new page can have any layout strucutre and be able to parse PHP script. How would I be able to do this?
I want to be able to add a custom page such that, the new page can have any layout strucutre and be able to parse PHP script. How would I be able to do this? |
Let's say I want to add a new page called "Tips" - as a new navigation
button and new page on my dolphin community site. This new page will
have a complex layout and also will parse a PHP snipplet. For instance,
I want it to connect to another database and display the data on the
new page. How can I add this new page to be very flexible allowing me
to add PHP code? |
take a look at this post http://www.boonex.com/unity/blog/entry/How_to_Add_PHP_in_a_BLOCK |
Thanks! Only issue though, my PHP script is very long (contains classes) and wondering if there's a non database/table way? |
another way would be to setup an iframe in your new pages block, include your script within this iframe in your new page, so its actually parsing the php outside of the editor and then include the rest of your html within that block.
take a look at my previous delemia: http://www.boonex.com/unity/forums/#topic/How-to-embed.htm |
Thanks. Sounds like a good idea -- so I can add a single Block which contains an Iframe right? And this iframe will have to added via my database, but I can link the iframe to an outside source, right? |
you will go into my admin add a new page, activate a new block for the page, add the iframe into the new block by using the html option in the WYSIWYG editor (tinymce), within the iframe add the path to the php script like <iframe src="yourscript.php" width="xxx" height="xxx" |