pragmaMx Support Forum

pragmaMx => integrierte Module => Thema gestartet von: trans22 am 17 August 2005, 10:18:22

Titel: Inhaltsseite als Startseite
Beitrag von: trans22 am 17 August 2005, 10:18:22
Hi,
Ich schaffe es tatsächlich nicht eine Seite aus dem Inhaltsmanager als Startseite zu setzen. Habe eine Modul mit diesem Code angelegt :

Zitat<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
// right blocks on = 1, off = 0
$index = 0;
include("header.php");
include("modules.php?name=Content&pa=showpage&pid=14");
include("footer.php");
?>

Danke Andy
Titel: Re: Inhaltsseite als Startseite
Beitrag von: Andi am 17 August 2005, 17:45:43
Hi ;)

hmmm, probier mal so:

<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");

// Request-Parameter für Content Modul
$_REQUEST['name'] = 'Content';
$_REQUEST['pa']     = 'showpage';
$_REQUEST['pid']    = '14';
extract($_REQUEST);

include("modules/Content/index.php");

?>

nicht getestet  ;)
Titel: Re: Inhaltsseite als Startseite
Beitrag von: trans22 am 17 August 2005, 22:44:12
Hi
Super, das funktioniert,

Danke für die Hilfe :D