<?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=1271&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=1271</link>
		<description><![CDATA[Die aktuellsten Beiträge in [gelöst] Menu-Manager: Image als Listenpunkt anfügen.]]></description>
		<lastBuildDate>Tue, 13 Sep 2011 05:49:10 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11225#p11225</link>
			<description><![CDATA[<div class="quotebox"><cite>nicmare schrieb:</cite><blockquote><div><p>lass das first und last doch in jedem item auftauchen. mit css kannst du es doch dann ansprechen:</p></div></blockquote></div><p>... das ginge eventuell - würde dann allerdings <em>meiner</em> Vorstellung von Eleganz widersprechen. Der css-code für das Menü nimmt durch den hover-klappaufundzu bereits 2/3 des Gesamtcodes in Anspruch.&#160; </p><p>ABER:</p><div class="quotebox"><cite>otter24 schrieb:</cite><blockquote><div><p>schau dir mal das NCleanBlue Template</p></div></blockquote></div><p>GE-NI-AL der Tipp, mein Lieber.&#160; Haargenau das habe ich gesucht.</p><p>Wie oft bei CMSMS lag die Lösung bereits fertig gebastelt in einem Template nur 20px weiter unten. Gut, dass es noch Förster gibt, die ihren Wald und die Bäume kennen.</p><p>Allen anderen dennoch vielen Dank für die Anteilnahme. Zusätzliche Klassen&#160; wie &quot;first/last&quot; im 1. Level könnten mir später in diesem Projekt durchaus auch noch nützlich werden - wenn nämlich der erste oder der letzte obere Menüpunkt irgendwann Unterpunkte bekommen sollte, brauche ich dort wieder andere Styles (wg des &quot;Schattenendes&quot; und der runden Abschlusskanten). Insofern waren die Hinweise durchaus sinnvoll.</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Tue, 13 Sep 2011 05:49:10 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11225#p11225</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11216#p11216</link>
			<description><![CDATA[<p>lass das first und last doch in jedem item auftauchen. mit css kannst du es doch dann ansprechen:<br />ul li {<br />…}<br />ul ul li.first {<br />background:url(…)};<br />ul ul li first ul li {<br />background:none};</p><p>einfach ein wenig kreativ sein… ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Mon, 12 Sep 2011 17:52:00 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11216#p11216</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11213#p11213</link>
			<description><![CDATA[<p>Moin <br />sonst schau dir mal das NCleanBlue Template an im Menutemplate wirst du sehen das dort ein Listenpunkt mit einer Klasse vor den schließenden UL tag rein geschrieben wurde. das sieht so aus. </p><div class="codebox"><pre><code>{repeat string=&#039;&lt;/li&gt;&lt;li class=&quot;separator once&quot; style=&quot;list-style-type: none;&quot;&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&#039; times=$node-&gt;depth-1}</code></pre></div><br /><br /><p>Gruß</p>]]></description>
			<author><![CDATA[dummy@example.com (otter24)]]></author>
			<pubDate>Mon, 12 Sep 2011 16:36:28 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11213#p11213</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11211#p11211</link>
			<description><![CDATA[<div class="quotebox"><cite>NaN schrieb:</cite><blockquote><div><p>Nee, da fehlt ne klammer. sory mein fehler. habs korrigiert</p></div></blockquote></div><p>Jou .. hatte es schon gefunden. Dennoch danke.</p><p>Ist noch nicht das Wahre, wie du schon sagst. Es werden keinerlei first/last-Klassen erzeugt. </p><p>War mein ursprünglicher Gedanke, dem Submenü über das Menütemplate einen Listenpunkt mit Image&#160; &quot;anzuhängen&quot;, wirklich so unelegant? Es wird zugegeben eine Zeile mehr html-Code produziert - dafür weniger css-code.</p><p>Einen Zähler bräuchte aber sicher auch dafür.</p><p>Hat es einen Grund, warum für diese Lösung kein name-Attribut nötig ist?</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Mon, 12 Sep 2011 13:51:15 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11211#p11211</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11210#p11210</link>
			<description><![CDATA[<p>Nee, da fehlt ne klammer. sory mein fehler. habs korrigiert</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Mon, 12 Sep 2011 13:36:55 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11210#p11210</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11209#p11209</link>
			<description><![CDATA[<p>Da fehlt ein {/if} oder ist eins zu viel.</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Mon, 12 Sep 2011 13:35:28 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11209#p11209</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11208#p11208</link>
			<description><![CDATA[<p>Schwirrr ...</p><p>Im Moment noch ein Syntax-Error:</p><p>string(151) &quot;Smarty error: [in module_db_tpl:MenuManager;hover line 20]: syntax error: unbalanced parenthesis in if statement (Smarty_Compiler.class.php, line 1277)&quot;<br />Parse error: syntax error, unexpected &#039;:&#039; in /homepages/.../tmp/templates_c/efe27d4d7d477cf315175e18807fef90^%%17^177^177736FC%%module_db_tpl%3AMenuManager%3Bhover.php on line 24</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Mon, 12 Sep 2011 13:32:11 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11208#p11208</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11207#p11207</link>
			<description><![CDATA[<p>Ach ja, verdammt.<br />Ganz vergessen, dass das so nicht für verschachtelte Listen geht, weil die Elemente ja im Template alle hintereinander weg linear abgearbeitet werden. Der müsste bei jedem Untermenü wieder von vorne anfangen zu zählen. Mit first/last wird das hier nicht gehen. Du müsstest an dieser Stelle prüfen, ob beim nächsten Element $node-&gt;depth kleiner ist als beim aktuellen. Dann weißt Du dass das aktuelle Element das letzte in seiner Hierarchie sein muss. Da wirst Du aber um einen Zähler nicht herum kommen.<br />Bsp.:</p><div class="codebox"><pre><code>{foreach from=$nodelist item=&quot;node&quot;}
{counter assign=&quot;next_item_index&quot;}

...

&lt;li class=&quot;{if (isset($nodelist[$next_item_index]) &amp;&amp; $nodelist[$next_item_index]-&gt;depth &lt; $node-&gt;depth) || !isset($nodelist[$next_item_index])}last{elseif $node-&gt;prevdepth &gt; 0 &amp;&amp; $node-&gt;prevdepth &lt; $node-&gt;depth}first{/if}&quot;&gt;</code></pre></div><p>Klappt aber auch wieder nicht, wenn es mehr als zwei Ebenen sind. Weil, wenn das letzte Element in einer Hierarchie noch untergeordnete Seiten hat, wird es nie die Klasse &#039;last&#039; erhalten. Man kann aber auch nicht pauschal prüfen, ob $node-&gt;depth des nächsten Elements kleiner <em>oder</em> größer ist, weil dann <em>alle</em> Menüpunkte die Unterpunkte haben, die Klasse &#039;last&#039; erhalten würden. Ist schwierig, das rein mit Smarty zu lösen.</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Mon, 12 Sep 2011 13:18:17 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11207#p11207</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11205#p11205</link>
			<description><![CDATA[<p>Ok - ich habe es einfach in jeden Listenpunkt des Templates eingefügt.&#160; </p><p>Das funktioniert zwar - aber nur im vertikalen Hauptmenü. Dort brauche ich die Klassen nicht.</p><p>Ich brauche es im Submenü. Es handelt sich hierbei ja - wie man an der Grafik sehen kann - um eine verschachtelte Liste (und ein hover-Aufklapp-Menü)</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Mon, 12 Sep 2011 12:53:36 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11205#p11205</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11201#p11201</link>
			<description><![CDATA[<div class="quotebox"><cite>antibart schrieb:</cite><blockquote><div><p>Dann :Das Attribut &quot;name&quot;... ist das zwingend notwendig?</p></div></blockquote></div><p>Ja, weil das ganze sonst nicht funktioniert.</p><div class="quotebox"><blockquote><div><p>Wo genau würdest Du ihn für meine Anwendung platzieren? Bislang kommt einiges Chaos zustande eine class &quot;first&quot; wird zwar eingefügt (beim gerade aktiven Link), last aber nicht.</p></div></blockquote></div><p>Na überall dort, wo ein Listenpunkt ausgegeben wird.<br />Also bei <em>allen</em> Listenpunkten die Du im Menü-Template finden kannst.</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Mon, 12 Sep 2011 11:23:51 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11201#p11201</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11199#p11199</link>
			<description><![CDATA[<p>Hi - erstmal vielen Dank ...</p><div class="quotebox"><cite>nicmare schrieb:</cite><blockquote><div><p>warum arbeitest du nicht einfach mit first und last?</p></div></blockquote></div><p>Einfache Antwort: weil ich zu doof bin. <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /></p><p>Ich kenne wohl diesen alten Thread mit first and last. Das ist schon mal ne Hilfe, aber für meinen Status noch zu ungenau:</p><p>Ich habe mit deinem Codeschnipsel rumprobiert. Ich glaube zunächst, er müsste eher so aussehen:</p><div class="codebox"><pre><code>&lt;li class=&quot;{if $smarty.foreach.foo.first}first {elseif $smarty.foreach.foo.last}last{/if}&quot;&gt;</code></pre></div><p>Dann :Das Attribut &quot;name&quot;... ist das zwingend notwendig?</p><p>Wo genau würdest Du ihn für meine Anwendung platzieren? Bislang kommt einiges Chaos zustande eine class &quot;first&quot; wird zwar eingefügt (beim gerade aktiven Link), last aber nicht.</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Mon, 12 Sep 2011 11:10:01 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11199#p11199</guid>
		</item>
		<item>
			<title><![CDATA[Re: [gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11189#p11189</link>
			<description><![CDATA[<p>warum arbeitest du nicht einfach mit first und last? dann kannste dir dsa bild im quelltext sparen. ist eh nicht gerade elegant:</p><div class="codebox"><pre><code>{foreach from=$nodelist item=node name=foo}
…
&lt;li class=&quot;{if $smarty.foreach.foo.first} first{elseif $smarty.foreach.foo.last} last{/if}&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Mon, 12 Sep 2011 10:28:09 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11189#p11189</guid>
		</item>
		<item>
			<title><![CDATA[[gelöst] Menu-Manager: Image als Listenpunkt anfügen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11177#p11177</link>
			<description><![CDATA[<p>Hallo Gemeinde,</p><p>Ohne css3 sind teiltransparent schattierte, abgerundete, überlappende Menüs eine kleine Herausforderung.</p><p>Ich habe hier ein hover-Menü mit all diesen Eigenschaften, welches in der statischen Version schon alles so macht, wie es soll.</p><p>Damit das Untermenu auf zweitem Level mit abgerundeten Ecken endet, habe ich in der statischen Version einfach einen zusätzlichen Listenpunkt mit einem Image ans Ende der Liste angefügt.</p><p>So sieht dann die Ausgabe aus:</p><p>&lt;ul&gt;<br />&lt;li&gt;&lt;a href=&quot;..&quot;&gt;Leistungen<br />&lt;ul&gt;<br />&lt;li&gt;Inhalte&lt;/li&gt;<br />&lt;li&gt;Angebote&lt;/li&gt;<br />&lt;li&gt;Projekte&lt;/li&gt;<br />&lt;li&gt; &lt;img src=&quot;images/runde-ecken.jpg&quot; /&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/li&gt;<br />..usw<br />&lt;/ul&gt;</p><p><span class="postimg"><img src="http://forum.cmsmadesimple.de/img/members/65/listenpunkt.jpg" alt="listenpunkt.jpg" /></span></p><p>Nun muss ich das Menütemplate dazu bringen, das gleiche automatisch zu erledigen. Meine Smarty-Kenntnisse bewegen sich nach wie vor gern mal auf einer Trail-and-Error-Ebene..</p><p>Hier mein Template (ist glaube ich noch so ziemlich das Standard-Minimal-Template):</p><p>---------------------------------------------</p><p><span style="color: grey">{* CSS classes used in this template:<br />.activeparent - The top level parent when a child is the active/current page<br />li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.<br />.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.<br />li.sectionheader h3 - To style section header<br />li.separator - To style the ruler for the separator *} </span></p><p><span style="color: grey">{if $count &gt; 0}<br />&lt;ul&gt;<br />{foreach from=$nodelist item=node}<br />{if $node-&gt;depth &gt; $node-&gt;prevdepth}<br />{repeat string=&quot;&lt;ul&gt;&quot; times=$node-&gt;depth-$node-&gt;prevdepth}<br />{elseif $node-&gt;depth &lt; $node-&gt;prevdepth}<br />{repeat string=&quot;&lt;/li&gt;&lt;/ul&gt;&quot; times=$node-&gt;prevdepth-$node-&gt;depth}&lt;/li&gt;<br />{elseif $node-&gt;index &gt; 0}<br />&lt;/li&gt;<br />{/if}</span></p><p><span style="color: grey">{if $node-&gt;current == true}<br />&lt;li&gt;&lt;a class=&quot;currentpage&quot; href=&quot;{$node-&gt;url}&quot;{if $node-&gt;accesskey != &#039;&#039;} accesskey=&quot;{$node-&gt;accesskey}&quot;{/if}{if $node-&gt;tabindex != &#039;&#039;} tabindex=&quot;{$node-&gt;tabindex}&quot;{/if}{if $node-&gt;titleattribute != &#039;&#039;} title=&quot;{$node-&gt;titleattribute}&quot;{/if}&gt;{$node-&gt;menutext}&lt;/a&gt;{elseif $node-&gt;parent == true}&lt;li class=&quot;activeparent&quot;&gt;&lt;a class=&quot;activeparent&quot; href=&quot;{$node-&gt;url}&quot;{if $node-&gt;accesskey != &#039;&#039;} accesskey=&quot;{$node-&gt;accesskey}&quot;{/if}{if $node-&gt;tabindex != &#039;&#039;} tabindex=&quot;{$node-&gt;tabindex}&quot;{/if}{if $node-&gt;titleattribute != &#039;&#039;} title=&quot;{$node-&gt;titleattribute}&quot;{/if}&gt;{$node-&gt;menutext}&lt;/a&gt;<br />{elseif $node-&gt;type == &#039;sectionheader&#039;}<br />&lt;li class=&quot;sectionheader&quot;&gt;{$node-&gt;menutext}<br />{elseif $node-&gt;type == &#039;separator&#039;}<br />&lt;li class=&quot;separator&quot; style=&quot;list-style-type: none;&quot;&gt; |<br />{else}<br />&lt;li&gt;&lt;a href=&quot;{$node-&gt;url}&quot;{if $node-&gt;accesskey != &#039;&#039;} accesskey=&quot;{$node-&gt;accesskey}&quot;{/if}{if $node-&gt;tabindex != &#039;&#039;} tabindex=&quot;{$node-&gt;tabindex}&quot;{/if}{if $node-&gt;titleattribute != &#039;&#039;} title=&quot;{$node-&gt;titleattribute}&quot;{/if}{if $node-&gt;target != &#039;&#039;} target=&quot;{$node-&gt;target}&quot;{/if}&gt;{$node-&gt;menutext}&lt;/a&gt;{/if}{/foreach}{repeat string=&quot;&lt;/li&gt;&lt;/ul&gt;&quot; times=$node-&gt;depth-1}&lt;/li&gt;<br />&lt;/ul&gt;<br />{/if}</span></p><p>-------------------------------------------------</p>]]></description>
			<author><![CDATA[dummy@example.com (antibart)]]></author>
			<pubDate>Mon, 12 Sep 2011 08:57:51 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=11177#p11177</guid>
		</item>
	</channel>
</rss>
