<?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=411&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=411</link>
		<description><![CDATA[Die aktuellsten Beiträge in cataloger: Nur ausgefüllte Variablen anzeigen.]]></description>
		<lastBuildDate>Thu, 17 Feb 2011 08:06:43 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3726#p3726</link>
			<description><![CDATA[<div class="quotebox"><cite>dylan schrieb:</cite><blockquote><div><div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>Was genau wird bei {$erstzulassung|print_r} ausgegeben?</p></div></blockquote></div><p><strong>Audi Avant A6</strong><br />Baujahr 20031, 18.000 €</p><br /><p>Bei {$erstzulassung} wird</p><p><strong>Audi Avant A6</strong><br />Baujahr 2003, 18.000 €</p><p>ausgegeben, mit <em>|print_r</em> wird eine &#039;1&#039; hinzugefügt.</p></div></blockquote></div><p>Wobei mir angesichts {$erstzulassung[at].name} etwas seltsam vorkommt, dass da nur eine 1 hinzugefügt wird <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/roll.png" alt="roll" /> ... oder anders gefragt, was ist der Key zu der 1? Über den solltest du auch die entsprechende Abfrage machen können.</p><p>PS: Für Fahrzeuge gibt es übrigens relativ neu ein eigenes Modul</p><p><a href="http://dev.cmsmadesimple.org/projects/auto" rel="nofollow">http://dev.cmsmadesimple.org/projects/auto</a></p><p>(mal nicht von CG <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" />)</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Thu, 17 Feb 2011 08:06:43 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3726#p3726</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3723#p3723</link>
			<description><![CDATA[<p>???</p><p>Um den Thread nicht weiter in die Länge zu ziehen beende ich meine Fragestellung hier.<br />Das Projekt ist beendet, und mein Kunde akzeptiert es wie es ist.</p><p>Danke für die Antworten!</p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Thu, 17 Feb 2011 07:37:21 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3723#p3723</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3712#p3712</link>
			<description><![CDATA[<p>Nach deiner Definition ist $erstzulassung ein Array deswegen kann man auch nicht{$erstzulassung} schreiben und du wirst wahrscheinlich alle Werte innerhalb des Arrays abprüfen müssen.</p><p>Wenn du nicht sicher bist welche Wert in $erstzulassung stecken {$erstzulassung|print_r} ausgeben.</p>]]></description>
			<author><![CDATA[dummy@example.com (piratos)]]></author>
			<pubDate>Wed, 16 Feb 2011 20:43:07 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3712#p3712</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3711#p3711</link>
			<description><![CDATA[<div class="quotebox"><cite>piratos schrieb:</cite><blockquote><div><p>Einsetzen - da kann nichts schlimmes passieren.</p></div></blockquote></div><p> <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/smile.png" alt="smile" /> </p><div class="quotebox"><cite>piratos schrieb:</cite><blockquote><div><p>Einsetzen - da kann nichts schlimmes passieren.</p><p>Und klar ist wenn man Baujahr {$erstzulassung}&#160; hat das man es da auch einsetzen muss.</p></div></blockquote></div><p>Eine Frage noch, wegen des Titels, bzw. &quot;name&quot;.<br />Im Original ist es so aufgebaut:<br />&lt;strong&gt;{$attrlist[at].name}&lt;/strong&gt;: {eval var=$attrlist[at].key}</p><p>Bei mir wird&#039;s vermutlich (?) so aussehen:<br />{if isset($erstzulassung) and $erstzulassung&lt;&gt;&#039;1&#039;}<br />&lt;tr&gt;<br />&lt;td class=&quot;kat_links&quot;&gt;&lt;strong&gt;{<span style="color: #993366">$erstzulassung[at].name</span>}&lt;/strong&gt;:&lt;/td&gt;<br />&lt;td class=&quot;kat_rechts&quot;&gt;{$erstzulassung}&lt;/td&gt;<br />&lt;/tr&gt;<br />{/if}</p><p>Wie sieht die Variable für &#039;name&#039; aus? So wie ich&#039;s hier versucht habe wirft es eine Fehlermeldung raus.</p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Wed, 16 Feb 2011 20:37:52 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3711#p3711</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3700#p3700</link>
			<description><![CDATA[<p>Einsetzen - da kann nichts schlimmes passieren.</p><p>Und klar ist wenn man Baujahr {$erstzulassung}&#160; hat das man es da auch einsetzen muss.</p><p>Das wird ein Geschreibsel - oh mann.</p>]]></description>
			<author><![CDATA[dummy@example.com (piratos)]]></author>
			<pubDate>Wed, 16 Feb 2011 18:24:31 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3700#p3700</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3697#p3697</link>
			<description><![CDATA[<div class="quotebox"><cite>piratos schrieb:</cite><blockquote><div><p>Das ist Mist, nun bleibt dir nichts anderes übrig als alle Felder dahingehend zu prüfen ob sie vorhanden und leer sind.</p><p>{if isset($namedervar) and $namedervar&lt;&gt;&#039;1&#039;} {$namedervar}{/if}</p></div></blockquote></div><p>{if isset($erstzulassung) and $erstzulassung&lt;&gt;&#039;1&#039;} {$erstzulassung}{/if}</p><p>Wäre das korrekt?</p><p>Und, wo kommt die Anweisung zu stehen?<br />Wahrscheinlich muss ich alle vars einzeln aufführen, richtig?:</p><p>{if isset($marke) and $marke&lt;&gt;&#039;1&#039;} {$marke}{/if}<br />{if isset($modell) and $modell&lt;&gt;&#039;1&#039;} {$modell}{/if}<br />{if isset($erstzulassung) and $erstzulassung&lt;&gt;&#039;1&#039;} {$erstzulassung}{/if}<br />u.s.w.</p><p>Kann man das nicht irgendwie mit der &quot;var=$attrlist[at].key&quot; global lösen?<br />Du merkst sicher das ich kein wirklicher Experte in diesen Dingen bin <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/ops.png" alt="ops" /></p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Wed, 16 Feb 2011 18:17:32 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3697#p3697</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3684#p3684</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Eine &#039;1&#039; wird bei Nichteintrag angezeigt.</p></div></blockquote></div><p>Das ist Mist, nun bleibt dir nichts anderes übrig als alle Felder dahingehend zu prüfen ob sie vorhanden und leer sind.</p><p>{if isset($namedervar) and $namedervar&lt;&gt;&#039;1&#039;} {$namedervar}{/if}</p><p>Ich hoffe du hast nicht die Absicht mit cmsms so etwas wie mobile.de oder daz24.de aufbauen zu wollen , da wirst du ganz schnell an die Grenzen von CMSMS stoßen.</p>]]></description>
			<author><![CDATA[dummy@example.com (piratos)]]></author>
			<pubDate>Wed, 16 Feb 2011 15:38:49 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3684#p3684</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3677#p3677</link>
			<description><![CDATA[<div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>Wird eine &quot;0&quot; ausgegeben, wenn das Feld &quot;Erstzulassung&quot; leer ist?</p></div></blockquote></div><p>Eine &#039;<strong>1</strong>&#039; wird bei Nichteintrag angezeigt.</p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Wed, 16 Feb 2011 14:30:30 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3677#p3677</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3636#p3636</link>
			<description><![CDATA[<p>Wird eine &quot;0&quot; ausgegeben, wenn das Feld &quot;Erstzulassung&quot; leer ist?</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Wed, 16 Feb 2011 09:08:06 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3636#p3636</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3633#p3633</link>
			<description><![CDATA[<div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>Was genau wird bei {$erstzulassung|print_r} ausgegeben?</p></div></blockquote></div><p><strong>Audi Avant A6</strong><br />Baujahr 20031, 18.000 €</p><br /><p>Bei {$erstzulassung} wird</p><p><strong>Audi Avant A6</strong><br />Baujahr 2003, 18.000 €</p><p>ausgegeben, mit <em>|print_r</em> wird eine &#039;1&#039; hinzugefügt.</p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Wed, 16 Feb 2011 07:56:27 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3633#p3633</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3580#p3580</link>
			<description><![CDATA[<p>Was genau wird bei {$erstzulassung|print_r} ausgegeben?</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Mon, 14 Feb 2011 10:23:29 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3580#p3580</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3457#p3457</link>
			<description><![CDATA[<div class="quotebox"><cite>cyberman schrieb:</cite><blockquote><div><p>Das sind noch nicht alle Daten - versuch mal diesen Tag<br /><a href="http://forum.cmsmadesimple.de/viewtopic.php?id=337" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=337</a></p></div></blockquote></div><p>Das ist der Anfang der aufgeschlüsselten Daten:<br /><span style="color: #999">Array<br />(<br />&#160; &#160;SCRIPT_NAME =&gt; /index.php<br />&#160; &#160;app_name =&gt; CMS<br />&#160; &#160;sitename =&gt; Meier<br />&#160; &#160;lang =&gt; de_DE<br />&#160; &#160;encoding =&gt; utf-8<br />&#160; &#160;content_obj =&gt; CatalogItem Object<br />&#160; &#160;{<br />&#160; &#160; &#160; attrs =&gt; Array<br />&#160; &#160; &#160; (<br />&#160; &#160; &#160; &#160; &#160;0 =&gt; stdClass Object<br />&#160; &#160; &#160; &#160; &#160;{<br />&#160; &#160; &#160; &#160; &#160; &#160; attr =&gt; Marke<br />&#160; &#160; &#160; &#160; &#160; &#160; alias =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; length =&gt; 25<br />&#160; &#160; &#160; &#160; &#160; &#160; default =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; select_values =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; field_type =&gt; text<br />&#160; &#160; &#160; &#160; &#160; &#160; safe =&gt; marke<br />&#160; &#160; &#160; &#160; &#160;}<br />&#160; &#160; &#160; &#160; &#160;1 =&gt; stdClass Object<br />&#160; &#160; &#160; &#160; &#160;{<br />&#160; &#160; &#160; &#160; &#160; &#160; attr =&gt; Modell<br />&#160; &#160; &#160; &#160; &#160; &#160; alias =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; length =&gt; 25<br />&#160; &#160; &#160; &#160; &#160; &#160; default =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; select_values =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; field_type =&gt; text<br />&#160; &#160; &#160; &#160; &#160; &#160; safe =&gt; modell<br />&#160; &#160; &#160; &#160; &#160;}<br />&#160; &#160; &#160; &#160; &#160;2 =&gt; stdClass Object<br />&#160; &#160; &#160; &#160; &#160;{<br />&#160; &#160; &#160; &#160; &#160; &#160; attr =&gt; Erstzulassung<br />&#160; &#160; &#160; &#160; &#160; &#160; alias =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; length =&gt; 20<br />&#160; &#160; &#160; &#160; &#160; &#160; default =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; select_values =&gt; <br />&#160; &#160; &#160; &#160; &#160; &#160; field_type =&gt; text<br />&#160; &#160; &#160; &#160; &#160; &#160; safe =&gt; erstzulassung<br />&#160; &#160; &#160; &#160; &#160;}</span><br />und so weiter…<br />Das &quot;safe&quot; ist vermutlich die Variable?</p><div class="quotebox"><cite>NaN schrieb:</cite><blockquote><div><p>Okay, jetzt mal bitte etwas mehr Klartext. Um welche Variablen genau geht es?<br />Um alle?<br />Oder nur um bestimmte Attribute?<br />Zeig doch mal ein oder zwei Beispiele.<br />(Wie es ist und wie es sein soll)</p></div></blockquote></div><p>Beispiele habe ich nicht, ist ja nur eine Aufschlüsselung diverser Daten, ähnlich wie bei mobile.de<br />Es geht um <strong>alle</strong> im Katalog enthaltenen Variablen, das sind diese:<br /><span style="color: #999">{$title}, {$notes}, {$marke}, {$modell}, {$erstzulassung}, {$leistung}, {$getriebe}, {$kraftstoffart}, {$hubraum}, {$farbe}, {$naechsterhutermin}, {$anzahlderfahrzeughalter}, {$preis}, {$zustand}, {$ausstattung}, {$klimatisierung}, {$anzahldertueren}, {$schadstoffklasse}, {$umweltplakette}, {$airbags}, {$sonstiges}, {$image_1_url}, {$image_thumb_1_url}, {$src_image_1_url}, {$image_2_url}, {$image_thumb_2_url}, {$src_image_2_url}, {$image_url_array}, {$src_image_url_array}, {$image_thumb_url_array}{$file_url_array}, {$file_name_array}, {$file_ext_array}, {$root_url}, {$image_root}</span></p><p>Es soll so funktionieren wie es ist. Soll heißen, dass Template hier gibt es wie gewünscht wieder. Nur leider werden auch die nicht ausgefüllten Daten mit angezeigt. Das war Anlass meiner Frage, <strong>ist es möglich nur die ausgefüllten Felder anzeigen zu lassen</strong>- mit meinem vorhandenen Template?:</p><div class="codebox"><pre class="vscroll"><code>&lt;p&gt;
&lt;strong&gt;{$marke} {$modell}&lt;/strong&gt;&lt;br /&gt;
Baujahr {$erstzulassung}, {$preis}
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class=&quot;catalog_item&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td class=&quot;cat_bild&quot;&gt;&lt;img id=&quot;item_image&quot; name=&quot;item_image&quot;  src=&quot;{$image_1_url}&quot; title=&quot;{$title}&quot; alt=&quot;{$title}&quot; /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&quot;cat_thumbs&quot;&gt;{section name=ind loop=$image_url_array}
&lt;a href=&quot;javascript:repl(&#039;{$image_url_array[ind]}&#039;)&quot; class=&quot;legal&quot;&gt;&lt;img src=&quot;{$image_thumb_url_array[ind]}&quot; class=&quot;cat_thumbs_gfx&quot; border=&quot;0&quot; title=&quot;{$title}&quot; alt=&quot;{$title}&quot; /&gt;&lt;/a&gt;
{/section}&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;

&lt;table&gt;
{section name=at loop=$attrlist}
&lt;tr&gt;
&lt;td class=&quot;kat_links&quot;&gt;
&lt;strong&gt;{$attrlist[at].name}&lt;/strong&gt;:
&lt;/td&gt;
&lt;td class=&quot;kat_rechts&quot;&gt;
{eval var=$attrlist[at].key}
&lt;/td&gt;
&lt;/tr&gt;
{/section}
&lt;/table&gt;

{literal}
&lt;script type=&quot;text/javascript&quot;&gt;
function repl(img)
   {
   document.item_image.src=img;
   }
&lt;/script&gt;
{/literal}
&lt;/div&gt;</code></pre></div><p>Ich hoffe ich konnte jetzt verständlich machen worum es mir geht?</p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Thu, 10 Feb 2011 11:54:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3457#p3457</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3414#p3414</link>
			<description><![CDATA[<div class="quotebox"><cite>dylan schrieb:</cite><blockquote><div><p>Ich möchte das nur die ausgefüllten Variablen, bzw. Einträge angezeigt werden.</p></div></blockquote></div><p>Okay, jetzt mal bitte etwas mehr Klartext. Um welche Variablen genau geht es?<br />Um alle?<br />Oder nur um bestimmte Attribute?<br />Zeig doch mal ein oder zwei Beispiele.<br />(Wie es ist und wie es sein soll)</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Wed, 09 Feb 2011 15:49:19 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3414#p3414</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3386#p3386</link>
			<description><![CDATA[<p>Das sind noch nicht alle Daten - versuch mal diesen Tag</p><p><a href="http://forum.cmsmadesimple.de/viewtopic.php?id=337" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=337</a></p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Wed, 09 Feb 2011 07:20:37 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3386#p3386</guid>
		</item>
		<item>
			<title><![CDATA[Re: cataloger: Nur ausgefüllte Variablen anzeigen]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3382#p3382</link>
			<description><![CDATA[<div class="quotebox"><cite>piratos schrieb:</cite><blockquote><div><p>Ich gehe davon aus das du das so gemacht hast:<br />{get_template_vars}<br />&lt;table&gt;<br />{section name=at loop=$erstzulassung}<br />Da ich mit dem Modul nicht arbeite&#160; sind nun ANDERE gefordert.</p></div></blockquote></div><p>Danke das Du&#039;s zumindest <em>entschlüsselt</em> hast. So kann ich mir wenigstens weitere Arbeit am Template sparen.</p>]]></description>
			<author><![CDATA[dummy@example.com (dylan)]]></author>
			<pubDate>Tue, 08 Feb 2011 20:59:40 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=3382#p3382</guid>
		</item>
	</channel>
</rss>
