e107help.org Q&A
0 like 0 dislike
Maybe just point me where to look...  I have new plugin and I need sometimes display content of page without header and footer (no navbar etc).  

You can look here: http://v2demo.e107.sk/e107_plugins/jm_jplayer/jplayer.php   

THere is popup and you can insert the same page as iframe. But popup and iframe display header and footer too. This is inserted the same page as iframe in page.php.  

http://v2demo.e107.sk/page.php?id=1

Thanks
e107 version e107 2.1.2
closed
in Plugins by (1.7k points) 8 35 46
closed by
@Jimako no real answer, but was sure i read something similar in v1 days (no find) Since it also was a issue on Git #1442 it might give away clues....
I solved it. After your answer I remembered that menu manager use iframe for displaying theme preview. But thanks.

1 Answer

0 like 0 dislike
Best answer

In true it's so easy that I can't believe it. 

        define('e_IFRAME', true);
        require_once (HEADERF);

The point is to define e_IFRAME before calling header. 

by (1.7k points) 8 35 46
selected by
Welcome to e107 Q&A, where you can ask questions and receive answers from other members of the e107 community.
842 questions
1,240 answers
2,154 comments
5,546 users