pragmaMx Support Forum

pragmaMx => Individuelle Anpassungen => Thema gestartet von: titin am 19 Oktober 2017, 17:45:06

Titel: blog inside
Beitrag von: titin am 19 Oktober 2017, 17:45:06

hello all!
I would like my external blog to open in a page:
I have an external blog (midiblog)
I add a link to this feed, I add an item to the menu to open this page> it is ok ... but impossible to find how to insert it in the site and not on an external window
I mean, is that clear? pragmamx 2.4 thank you very much
Titel: Re: blog inside
Beitrag von: Olaf am 20 Oktober 2017, 11:50:00
you can embed your blog as iframe into a module

Insert a Modul (see attachment Sample-Iframe-Modul )

the index.php file must include the following code
<?php

/**
 * This file is part of
 *
 * 
 *
 * for pragmamx (www.pragmamx.org)
 *
 * $Revision: 1.0 $
 * $Author: PragmaMx $
 * $Date: 2017-08-29 07:32:15 +0200 (Di, 29. Aug 2017) $
 */
// Admin
defined('mxMainFileLoaded') or die('access denied');

mxIncludeHeader();

pmxHeader::add_style_code(".iframe{width:100%;height:650px;");
?>



  <div class="content">

    <div class="mycontent"><iframe class="iframe" name="" src="http://www.pragmamx.org" ></iframe></div>
  </div>

<?php

mxIncludeFooter
();
?>



change the URL and the Style-Code for your Blog
Titel: Re: blog inside
Beitrag von: titin am 20 Oktober 2017, 18:50:24
vielen danke !
A+
Titel: Re: blog inside
Beitrag von: Nantharat am 14 November 2017, 11:50:48
Hallo, ich bin ein neues Mitglied, ich bin froh, jeden zu kennen.