Hi, starting from a working template, can I use #include PHP command for include another site (with own layout) in a content Revo page?? Means that keeping current Revo layout, I want to include PHP script (that have own include files, layout etc...)in existing Revo site.
Thanks
No, all PHP code has to be in snippets or plugins.
#include, BTW, is not PHP code. AFAIK, it's a custom directive put in HTML comments in asp. You could put it in the resource content field, but you'd just see it on the page unless asp is rendering the page.
You might be able to render the remote page in an iframe with href. Another method would be a snippet that uses cURL to get and return the remote page.
'include' is a php statement, '#include' is a comment as far as PHP is concerned. I just wanted to make sure you didn't think that #include was going to do anything.
I'm not sure what you mean by a 'PHP page', but try this (using the real URL of the page as the src):
<iframe src="http://somewhere.com/page.html" width="300" height="300">
<p>iframes disabled</p>
</iframe>
or this:
<iframe src="http://somewhere.com/page.php" width="300" height="300">
<p>iframes disabled</p>
</iframe>
When I try to include iframes tag in HTML mode, when I return in HTML mode after saving page I show
<p>iframes disabled</p>
why other tags are still in HTML and this is changed?
Thanks
-
☆ A M B ☆
- 24,524 Posts
If you are putting the iframe in the Rich Text editor, it will remove them. Put the iframe code in a chunk, then put the chunk tags in the resource's content. Or, disable the Rich Text editor for that resource.