Wie kann ich im Hauptlayout eine Seite in einem IFRAME aufrufen, die direkt den Inhalt aus einem Container aufruft und dort natürlich auch für jede Seite neu bearbeitet werden kann?
Bestimmt habe ich nur ein Brett vor dem Kopf...
![Wink ;-)](./images/smilies/icon_wink.gif)
Danke + Gruß
SIL
Hallo Holger,holger.librenz_4fb hat geschrieben:Hallo SIL.
1. Hauptlayout mit iframe definieren, das iframe zeigt auf eine Contenido-URL und gibt z.B. den GET-Parameter iartng mit
2. Du baust Dir ein Layout, welches die Seite im iframe definiert. Innerhalb dieses Layout liest ein Modul den GET-Parameter iartlng aus und setzt intern idartlang auf genau diesen Wert (Achtung: immer auf int casten und Werte <= 0 verwerfen!)
3. Spass haben
Code: Alles auswählen
<head>
</head>
<style>
body {
background-image: url('/contenido/cms/images/al/hg1.jpg');
background-repeat:no-repeat;
background-position: right top;
background-attachment: fixed
}
</style>
<body topmargin="0" leftmargin="0" bgcolor="#375494">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="100%" valign="top">
CMS_CONTAINER[10]
</td>
</tr>
</table>
</body>
</html>
Und ich verstehe nur noch Bahnhof bei dem was dein Ziel ist, was du willst.SIL hat geschrieben:Aber die Seite ist ja dann statisch und es wird immer die gleiche Seite in dem IFRAME aufgerufen. Das hilft ja nicht wirklich weiter...
Code: Alles auswählen
<iframe name="i1" marginwidth="0" marginheight="0" width="100%" height="100%" border="0" frameborder="0" src="front_content.php?idart=91" name="conframe" border="0"></iframe>
Code: Alles auswählen
<head>
</head>
<style>
body {
background-image: url('/contenido/cms/images/al/header_bg2.jpg');
background-repeat:no-repeat;
background-position: right top;
background-attachment: fixed
}
</style>
<body topmargin="0" leftmargin="0" bgcolor="#375494">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="100%" valign="top">
CMS_CONTAINER[10]
</td>
</tr>
</table>
</body>
</html>