"So. Soll das jetzt eine komplett leere Datei sein, die nur über require die header, footer und z.B. wie oben geschreiben "
http://www.deinedomain.de/ggf.Conpresso ... /index.php" einlädt."
Nein, das soll eine Datei sein, die mittels meta-refresh oder php-header-location() auf
http://www.deinedomain.de/ggf.Conpresso ... /index.php weiterleitet.
Hier nochmal eine Anleitung:
1.) Ich baue eine HTML-Seite (womit auch immer, muß nur funktionieren) mit Platzhaltern (Blindtext, völliges sinnentleertes Gefasel) für die Inhalte die aus Conpresso kommen sollen.
Hier mal meine aktuelle Baustelle:
-----------------------------------------------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Archiv</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../Tc_Style/Tc_Style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="5" class="TcFillLeft"> </td>
<td height="16" colspan="2"> </td>
<td rowspan="5" class="TcFillRight"> </td>
</tr>
<tr>
<td height="116" colspan="2">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shoc ... n=6,0,29,0" width="776" height="116">
<param name="movie" value="../Tc_Logo/Tc_BooteForum.swf">
<param name="quality" value="high">
<embed src="../Tc_Logo/Tc_BooteForum.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="776" height="116"></embed></object></td>
</tr>
<tr>
<td height="32" colspan="2" class="TcFillHead">
### Head-Menü ###</td>
</tr>
<tr>
<td width="160" valign="top" class="TcFillMenu">
### Menü ###</td>
<td width="616" valign="top" class="TcFillText"><span class="scrollContent">
Hier kommt der Text rein.
Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text
rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der
Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt
der Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier
kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text rein.
Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text
rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der
Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt
der Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier
kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text rein.
Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text
rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der
Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt
der Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier
kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text rein.
Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text
rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der
Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt
der Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier
kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text rein.
Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text
rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt der
Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier kommt
der Text rein. Hier kommt der Text rein. Hier kommt der Text rein. Hier
kommt der Text rein. Hier kommt der Text rein. Hier kommt der Text rein.
Hier kommt der Text rein.
</span>
</td>
</tr>
<tr>
<td height="16" colspan="2" bgcolor="#7BC1D5"> </td>
</tr>
</table>
</body>
</html>
-----------------------------------------------------------------------------------------------
wobei klar sein dürfte, wo der Text reinkommt.
### Head-Menü ### ist der Platzhalter für nav_horizontal.php von mod_menu
### Menü ### ist der Platzhalter für nav_vertikal.php von mod_menu
(das kann aber auch ein Handgeschriebenes Menü sein)
2.) Nun nehme ich ALLES vor "Hier kommt der Text rein..."
und kopiere es in _cfg/global_header.php nach "?>"
das sieht dann so aus:
--------------------------------------------------------------------------------------------------
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap: */
// +----------------------------------------------------------------------+
// | ConPresso version 3 |
// +----------------------------------------------------------------------+
// | Copyright (c) 2000-2003 |
// | Bartels Schoene GmbH & Co. KG, 48149 Muenster, Germany |
// +----------------------------------------------------------------------+
// | This source file is subject to ConPresso license version 2002-11-16 |
// | that is bundled with this package in the files LICENSE_EN.TXT or |
// | LICENSE_DE.TXT, and is available at through the world-wide-web at |
// |
http://www.conpresso.de/license/LICENSE ... -11-16.TXT or |
// |
http://www.conpresso.de/license/LICENSE ... -11-16.TXT |
// | If you did not receive a copy of the ConPresso license and are |
// | unable to obtain it through the world-wide-web, please send a note |
// | to
license@conpresso.de so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: ConPresso development and support team |
// | <
support@conpresso.de> |
// +----------------------------------------------------------------------+
//
// $Id: global_header.php.dist,v 1.1.1.1.2.4 2003/09/01 09:02:32 balu Exp $
if (!defined('CPO')) exit;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Archiv</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../Tc_Style/Tc_Style.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="5" class="TcFillLeft"> </td>
<td height="16" colspan="2"> </td>
<td rowspan="5" class="TcFillRight"> </td>
</tr>
<tr>
<td height="116" colspan="2">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shoc ... n=6,0,29,0" width="776" height="116">
<param name="movie" value="../Tc_Logo/Tc_BooteForum.swf">
<param name="quality" value="high">
<embed src="../Tc_Logo/Tc_BooteForum.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="776" height="116"></embed></object></td>
</tr>
<tr>
<td height="32" colspan="2" class="TcFillHead">### Head-Menü ###</td>
</tr>
<tr>
<td width="160" valign="top" class="TcFillMenu">### Menü ###</td>
<td width="616" valign="top" class="TcFillText"><span class="scrollContent">
--------------------------------------------------------------------------------------------------------------------
und alles nach "...Hier kommt der Text rein." kopiere ich in _cfg/global-footer.php nach "?>"
das sieht dann so aus:
----------------------------------------------------------------------------------------------------------------------
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap: */
// +----------------------------------------------------------------------+
// | ConPresso version 3 |
// +----------------------------------------------------------------------+
// | Copyright (c) 2000-2003 |
// | Bartels Schoene GmbH & Co. KG, 48149 Muenster, Germany |
// +----------------------------------------------------------------------+
// | This source file is subject to ConPresso license version 2002-11-16 |
// | that is bundled with this package in the files LICENSE_EN.TXT or |
// | LICENSE_DE.TXT, and is available at through the world-wide-web at |
// |
http://www.conpresso.de/license/LICENSE ... -11-16.TXT or |
// |
http://www.conpresso.de/license/LICENSE ... -11-16.TXT |
// | If you did not receive a copy of the ConPresso license and are |
// | unable to obtain it through the world-wide-web, please send a note |
// | to
license@conpresso.de so we can mail you a copy immediately. |
// +----------------------------------------------------------------------+
// | Authors: ConPresso development and support team |
// | <
support@conpresso.de> |
// +----------------------------------------------------------------------+
//
// $Id: global_footer.php.dist,v 1.1.1.1.2.4 2004/02/25 12:00:00 balu Exp $
if (!defined('CPO')) exit;
?>
</span>
</td>
</tr>
<tr>
<td height="16" colspan="2" bgcolor="#7BC1D5"> </td>
</tr>
</table>
</body>
</html>
-----------------------------------------------------------------------------------------------------------------
3.) falls das Menü tatsächlich aus mod_menu generiert werden soll, wird ### Head-Menü ### ersetzt durch:
<?php echo '<LINK href="..'.$mod_menu_dir.'/templates/'.$template_dir.'/style.css" type=text/css rel=STYLESHEET>'; ?>
<?php require(CPO_BASEDIR.$mod_menu_dir."/navigation_horiz.php"); ?>
und ### Menü ### durch:
<?php require(CPO_BASEDIR.$mod_menu_dir."/navigation_vert.php"); ?>
4.) FERTIG!
(Natürlich müssen die in der HTML-Datei eingebundenen Dateien vorhanden sein, daher sollte man diese einfach im Verzeichnis "jobs" anlegen und testen, bevor man die header und footer damit beaufschlagt. Das meinte ich mit "funktionieren")
Falls die einzelnen Rubriken verschieden gestaltet werden sollen, nimmt man nicht global_header und _footer sondern die header und footer im jeweiligen Rubrikverzeichnis... aber das ist nur Fleißarbeit und ändert am Verfahren nix!
Beitrag bearbeitet (03.05.05 13:23)