Integration von Freitext Feldern auf Kategorie Seiten

Hallo in die Runde, ich würde gerne ein Freitextfeld bei meinen Kategorien nehmen und dieses mit SEO Content befüllen. Ich habe schon das hier gefunden: http://wiki.shopware.de/Kategorien_detail_838.html Doch ist mir als Laie nicht klar wie ich das abrufen soll? Ich weiss das das in templates > default > frontend > content > listing > index.tpl einfügen muss. Aber mir ist nicht genau klar wie genau. Kann jemand helfen? Danke sehr im Voraus! Viele Grüße Christoph

Hallo Christoph, bitte mach keine Änderungen in den Standard-Templates. Nach einem Update könnte alles wieder überschrieben sein. Leg dir ein eigenes Template an und überschreib die entsprechenden Templates und Blöcke dort. Anleitungen solltest du dafür hier genug finden. Um ein Freitextfeld auszugeben, kannst du z.B. folgenden Code verwenden: {block name="frontend\_listing\_index\_text" append} {$sCategoryContent.attribute.attribute1} {/block} Je nachdem, an welcher Stelle du den Text ausgeben willst, musst du natürlich einen anderen Block nehmen. Bei einem anderen Freitextfeld musst du auch entsprechend die Nummer (.attribute1) ändern. Gruß Marco

Hallo Patrick, habe jetzt eine neue Template erstellt. Klappt auch soweit. [code]{* Von der index.tpl erben *} {extends file=‘parent:frontend/index/index.tpl’} {* Main content *} {block name=‘frontend_index_content’}

{* Banner *} {block name=“frontend_listing_index_banner”} {if !$sLiveShopping} {include file=‘frontend/listing/banner.tpl’ sLiveShopping=$sLiveShopping} {/if} {/block} {block name=“frontend_listing_index_content” append} {$sCategoryContent.attribute.attribute1} {/block} {* Liveshopping *} {block name=“frontend_listing_index_liveshopping”} {include file=‘frontend/listing/liveshopping.tpl’} {/block} {* Change / Logic move to controller *} {if $sCategoryContent.template eq “article_listing_1col.tpl”} {assign var=“sTemplate” value=“listing-1col”} {assign var=“sBoxMode” value=“list”} {elseif $sCategoryContent.template eq “article_listing_2col.tpl”} {assign var=“sTemplate” value=“listing-2col”} {assign var=“sBoxMode” value=“table”} {elseif $sCategoryContent.template eq “article_listing_3col.tpl”} {assign var=“sTemplate” value=“listing-3col”} {assign var=“sBoxMode” value=“table”} {elseif $sCategoryContent.template eq “article_listing_4col.tpl”} {assign var=“sTemplate” value=“listing”} {assign var=“sBoxMode” value=“table”} {* Erstelltes Template zu den bestehenden Templates hinzufügen *} {elseif $sCategoryContent.template eq “article_listing_4_content.tpl”} {assign var=“sTemplate” value=“listing-5col”} {assign var=“sBoxMode” value=“table”} {else} {assign var=“sTemplate” value=“listing-3col”} {assign var=“sBoxMode” value=“table”} {/if} {* Listing *} {block name=“frontend_listing_index_listing”} {include file=‘frontend/listing/listing.tpl’ sTemplate=$sTemplate} {/block} {* Tagcloud *} {block name=“frontend_listing_index_tagcloud”} {include file=‘frontend/plugins/index/tagcloud.tpl’} {/block} {* Category headline *} {block name=“frontend_listing_index_text”} {include file=‘frontend/listing/text.tpl’} {/block}
{/block}[/code] Ganz oben ist der Block {block name="frontend\_listing\_index\_content" append} {$sCategoryContent.attribute.attribute1} {/block} Aber im Frontend wird nichts angezeigt. Viele Grüße

Patrick? In heiße Marco :sunglasses: Wie heißt das neue Template? frontend/listing/index.tpl? Ich glaube der Code steht in einem falschen Template. Bei mir funktioniert es mit dem Code. Habe ich gerade in meinem Demo-Shop getestet. Gruß Marco