Frage

Ich bin ein Neuling in Magento, es scheint eine einfache Frage zu sein, aber ich verbringe Stunden damit, es immer noch nicht herauszufinden.

Ich habe die Beispieldaten für Magento1.9 installiert (im Anhang), die unteren Blöcke (Titel in blauer Farbe) „Unternehmen“ und „Verbinden Sie sich mit uns“ sind zwei statische Blöcke.Aber ich kann nicht herausfinden, wie sie dort platziert sind, weder auf der CMS-Seite noch in einem anderen CMS-Block werden sie erwähnt.Und ich habe alle XML-Dateien überprüft, keiner dieser statischen Blöcke wird erwähnt!Warum?Wie kann ich das ändern, indem ich zum Beispiel den Block „Firma“ hinter den Block „Mit uns verbinden“ einfüge?

Vielen Dank für alle, die helfen können!image address the blocks location

War es hilfreich?

Lösung

Pakicle, Magento ist eine Blockpositionierung von vor und nach dem Tags XML -Datei ...

Überprüfen Sie zunächst, was Vorher- und Nachher-Tags im Layout-XML sind

Name : This is the name by which other blocks can make reference to the block in which this attribute is assigned .

vorher und nachher These are two ways to position a content block within a structural block. before="-" and after="-" are commands used to position the block accordingly at the very top or very bottom of a structural block.

Als Fußzeilen-Link werden die folgenden Codes verwaltet

Unternehmen:

    <block type="cms/block" name="cms_footer_links" >
        <action method="setBlockId"><block_id>footer_links_company</block_id></action>
    </block>

Schnelllink:

     <block type="page/template_links" name="footer_links" as="footer_links" template="page/template/links.phtml">
            <action method="setTitle"><title>Quick Links</title></action>
        </block>

Konto:

        <block type="page/template_links" name="footer_links2" as="footer_links2" template="page/template/links.phtml">
            <action method="setTitle"><title>Account</title></action>
        </block>

Verbinde dich mit uns:

    <block type="cms/block" name="cms_footer_links_sm" after="footer_links2">
        <action method="setBlockId"><block_id>footer_links_sm</block_id></action>
    </block>

Wie Sie die Sortierreihenfolge der Fußzeilen-Links wünschen

QuickLink>My Account>Connected with Us>Company

entsprechende Block-ID sind footer_links>footer_links2>cms_footer_links_sm>cms_footer_linksJetzt kann ich diese Linkblöcke mithilfe von Tags bestellen.Mit US-> CMS_FOOLER_LINKS_SM COMPANY> CMS_FOOLER_LINKS verbunden

Ich habe before......Tags hinzugefügt als cms_footer_links footer_links2

        <block type="cms/block" name="cms_footer_links" after="footer_links2">
            <action method="setBlockId"><block_id>footer_links_company</block_id></action>
        </block>

Erfahren Sie mehr über Layout:http://www.magentocommerce.com/design_guide/articles/intro-to-layouts

Andere Tipps

Company ist der Block mit dem Grifffooter_links_company und der Verbindung mit uns ist der Blockgeneracticetagcode.

Die anderen Teile sind auf Blöcken mit dem Namen footer_links_sm und footer_links über das Layout XML aufgebaut. generasacodicetagpre.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange
scroll top