<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=3330&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=3330</link>
		<description><![CDATA[Die aktuellsten Beiträge in [GELÖST] Header automatisch an Seiteninhalt anpassen.]]></description>
		<lastBuildDate>Sun, 30 Jun 2013 23:32:13 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=27021#p27021</link>
			<description><![CDATA[<p>Danke für Eure Mühen!<br />Die Lösungen sind ähnlich kompliziert wie die, die jetzt ohnedies einsetze.<br />Dachte esgibt da etwas Simpleres.<br />Nochmals Dank an Alle!</p>]]></description>
			<author><![CDATA[dummy@example.com (simonson)]]></author>
			<pubDate>Sun, 30 Jun 2013 23:32:13 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=27021#p27021</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26951#p26951</link>
			<description><![CDATA[<p>zb</p><p>{if $page_alias == &#039;index&#039;} </p><p>&lt;div id=&quot;header&quot;&gt;{global_content name=&#039;JPS_header_renate&#039;}&lt;/div&gt;</p><p>&lt;else&gt;</p><p>&lt;div id=&quot;header&quot;&gt;Irgendwas anderes&lt;/div&gt;<br />{/if}</p><p>Mit der Toolbox oder CGSimplesmarty könntest du auch noch schniittigere Abfragen realisieren.</p><p>EDIT: ZU spät. NaN Lösung trifft es besser, wenn jede Seite einen anderen Contentblock haben soll.</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Thu, 27 Jun 2013 07:00:37 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26951#p26951</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26950#p26950</link>
			<description><![CDATA[<p>Benenne Deine Globalen Inhaltsblöcke einfach nach den Seiten auf denen sie angezeigt werden sollen (Seiten-Alias). Im Template rufst Du dann den Globalen Inhaltsblock so auf:</p><p>{global_content name=&quot;$page_alias&quot;}</p><p>Vorteil: ein Template für alle Seiten. Alles läuft automatisch.<br />Nachteil: Ein Globaler Inhaltsblock kann immer nur für exakt eine Seite gelten.</p><p>Eine andere Möglichkeit wäre das Modul AdvancedContent.<br />Da kannst Du Dir im Backend beim Bearbeiten einer Seite eine Liste mit allen verfügbaren Inhaltsblöcken anzeigen lassen und davon dann immer den Auswählen, der auf der Seite angezeigt werden soll. Ein Beispiel dazu gibts hier: <a href="http://forum.cmsmadesimple.de/viewtopic.php?id=304" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=304</a><br />(Kann man auch als Dropdown realisieren, damit nur eine einzige Auswahl pro Seite möglich ist)</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Thu, 27 Jun 2013 06:55:45 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26950#p26950</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26946#p26946</link>
			<description><![CDATA[<p>Danke für deine Mühe Otter,<br />aber es geht nicht um Bilder, sondern globale Inhaltsblöcke.</p><p>z.Zt. sieht das template so aus:</p><p><em>{process_pagedata}&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; &gt;</em></p><p><em>&lt;head&gt;<br />&lt;title&gt;{sitename} - {title}&lt;/title&gt;<br />{metadata}<br />{cms_stylesheet}<br />&lt;/head&gt;</em></p><p><em>&lt;body&gt; <br />&lt;div id=&quot;start&quot;&gt; &lt;/div&gt;<br />&#160; {content}<br />&lt;/body&gt;<br />&lt;/html&gt;<br /></em></p><p>In der Seite wird der entsprechende header als globaler Inhaltsblock aufgerufen:</p><p><em>&lt;!-- Header START --&gt;<br />&lt;div id=&quot;header&quot;&gt;{global_content name=&#039;JPS_header_renate&#039;}&lt;/div&gt;<br />&lt;!-- Header END --&gt;</em></p><p><em>&lt;!-- Content START --&gt;<br />&lt;div id=&quot;mainbox&quot;&gt;<br />{global_content name=&#039;JPS_re-links_TOP&#039;}<br />{php} readfile (&#039;<a href="http://www.simon-peter.com/_CONTENT/ueber_renate.php" rel="nofollow">http://www.simon-peter.com/_CONTENT/ueber_renate.php</a>&#039;);{/php}<br />{global_content name=&#039;JPS_re-links_BOT&#039;}<br />&lt;/div&gt;<br />&lt;!-- Content ENDE --&gt;<br />&lt;div style=&quot;clear: both;&quot;&gt; &lt;/div&gt;<br /></em></p><p>Nun möcht ich, dass bereits im template der zur jeweiligen Seite gehörende header definiert/geladen wird:</p><p>&lt;head&gt;<br />{header} - ruft header 1, 2, 3, ..... auf<br />{menu}<br />&lt;/head&gt;<br />&lt;body&gt;<br />{content} - ruft Seiteninhalt 1, 2, 3, ... auf<br />&lt;/body&gt;</p><p>also für seite 1 im &lt;head&gt; der globale Inhaltsblock 1 aufgerufen wird.</p><p>Ich hoffe, dass die Geschichte ein wenig klarer dargestellt ist.</p>]]></description>
			<author><![CDATA[dummy@example.com (simonson)]]></author>
			<pubDate>Thu, 27 Jun 2013 00:30:01 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26946#p26946</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26943#p26943</link>
			<description><![CDATA[<p>Also ... </p><p>da wo dein Header erscheinen soll und jetzt wohl das steht. </p><p>&lt;div id=&quot;header&quot;&gt;{global_content name=&#039;JPS_header_peter&#039;}&lt;/div&gt;</p><p>kommt folgendes rein:&#160; </p><p>&lt;div class=&quot;defaultheader {$page_alias}&quot;&gt; &lt;/div&gt;</p><p>der Rest kommt ins CSS rein .... und zwar wie folgt. </p><div class="codebox"><pre><code>[== CSS ==]
.defaultheader {background:  url(../path/zudeinem/Bild/defaultheader.gif);}
&lt;&lt; Damit hast Du den Standardheader definiert. Der erscheint immer, wenn er nicht von der nächsten Anweisung ünerschrieben wird ( Kaskade beim CSS) 

.startseite {background:  url(path/zu/deinem/Bild/startseite.gif);}

&quot;startseite&quot; steht im diesem Falle für ein {$page_alias} wenn deine Startseite anders heißt, dann musst Du das anpassen. 
Wenn mehrere Seiten den selben Header haben sollen, dann kannst Du die einzelnen CSS-Klassen, durch ein Komma trennen. Hinter die letzte Klasse kein Komma! 

.kontakt, .profil, .leistungen etc etc etc {background:  url(pfad/zu/deinem/Bild/kontakt.gif);}

ggf musst Du noch höhe und Breite angeben, ich weiß nicht wie den Template auf gebaut ist. </code></pre></div><p>Gruß aus HH</p>]]></description>
			<author><![CDATA[dummy@example.com (otter24)]]></author>
			<pubDate>Wed, 26 Jun 2013 19:51:17 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26943#p26943</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26941#p26941</link>
			<description><![CDATA[<p>Hallo Otter,<br />ich stehe auf der Leitung :-(<br />Ich benutze nur EIN template und keine Seitentemplates und somit keinen seitenspezifischen CSS.</p><p>Im Seitencode greife ich ohnedies auf den spezifischen globalen Inhaltsblock zu.<br />Das funktioniert ja auch zufriedenstellend.</p><p>Allerdings möchte ich das übers template lösen.</p><p>Wo genau soll {page_alias} hin und wo/wie wird&#039;s definiert?</p><p>Tut leid, aber stecke immer noch in Kinderschuhen!<br />Gruß aus Wien</p>]]></description>
			<author><![CDATA[dummy@example.com (simonson)]]></author>
			<pubDate>Wed, 26 Jun 2013 16:25:10 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26941#p26941</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26940#p26940</link>
			<description><![CDATA[<p>jipp jibbet !</p><br /><p>per CSS und {$page_alias}... </p><p><a href="http://forum.cmsmadesimple.de/viewtopic.php?id=3182" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=3182</a></p><p>Gruß aus HH</p>]]></description>
			<author><![CDATA[dummy@example.com (otter24)]]></author>
			<pubDate>Wed, 26 Jun 2013 15:45:44 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26940#p26940</guid>
		</item>
		<item>
			<title><![CDATA[[GELÖST] Header automatisch an Seiteninhalt anpassen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26939#p26939</link>
			<description><![CDATA[<p>Hallo Gemeinde,<br />bastle nun seit einem Jahr meine Seiten mit CMSMS zusammen und bin durchaus zufrieden.<br />Nun aber habe ich folgendes Problem:</p><p>Im Basis-template rufe ich mit {content} die einzelen Seiteninhalte auf.<br />In den Seiten rufe ich einen globalen Inhaltsblock auf, der den zur Seite passenden header enthält</p><p>&lt;!-- Header START --&gt;<br />&lt;div id=&quot;header&quot;&gt;{global_content name=&#039;JPS_header_peter&#039;}&lt;/div&gt;<br />&lt;div id=&quot;menu_vert&quot; &gt;<br />{menu loadprops=0 template=&#039;cssmenu.tpl&#039; start_level=&quot;2&quot;}<br />&lt;/div&gt;<br />&lt;!-- Header END --&gt;</p><p>&lt;!-- Content START --&gt;<br />&lt;div style=&quot;width: 100%; border-radius: 10px; border: #ccc solid 1px; background-color: #ffffff; width: auto; padding: 10px;&quot;&gt;<br />{php} readfile (&quot;<a href="http://www.simon-peter.com/_CONTENT/ueber_peter.php" rel="nofollow">http://www.simon-peter.com/_CONTENT/ueber_peter.php</a>&quot;); {/php}<br />&lt;/div&gt;</p><p>&lt;!-- Content ENDE --&gt;&lt;div style=&quot;clear: both;&quot;&gt; &lt;/div&gt;</p><p>Gibt es einen elegantere, einfachere Lösung um ein template zu erstellen,<br />das den zum Seiteninhalt gehörenden header lädt?</p><p>&lt;head&gt;<br />{header} - ruft header 1, 2, 3, ..... auf<br />{menu}<br />&lt;/head&gt;<br />&lt;body&gt;<br />{content} - ruft Seiteninhalt 1, 2, 3, ... auf<br />&lt;/body&gt;</p><p>Dank vorab!</p>]]></description>
			<author><![CDATA[dummy@example.com (simonson)]]></author>
			<pubDate>Wed, 26 Jun 2013 15:39:45 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=26939#p26939</guid>
		</item>
	</channel>
</rss>
