1

This is the content of layer/cms.xml file:

<layout version="0.1.0">
    <default>
        <reference name="footer">
            <block type="cms/block" name="cms_footer_links" before="footer_links">
                <action method="setBlockId"><block_id>footer_links</block_id></action>
            </block>
        </reference>
    </default>

    <cms_page translate="label">
        <label>CMS Pages (All)</label>
        <reference name="content">
            <block type="core/template" name="page_content_heading" template="cms/content_heading.phtml"/>
            <block type="page/html_wrapper" name="cms.wrapper" translate="label">
                <label>CMS Content Wrapper</label>
                <action method="setElementClass"><value>std</value></action>
                <block type="cms/page" name="cms_page"/>
            </block>
        </reference>
        <reference name="left">
            <block type="menubuilder/menu" name="cms_menu" before="-">
                <action method="setMenuCode">
                    <menu_code>cms_menu</menu_code>
                </action>
            </block>
        </reference>
    </cms_page>

    <cms_index_index translate="label">
        <label>CMS Home Page</label>
    </cms_index_index>

    <cms_index_defaultindex>
        <remove name="right"/>
        <remove name="left"/>

        <reference name="root">
            <action method="setTemplate"><template>page/1column.phtml</template></action>
        </reference>
        <reference name="content">
            <block type="core/template" name="default_home_page" template="cms/default/home.phtml"/>
        </reference>
    </cms_index_defaultindex>

    <cms_index_noroute translate="label">
        <label>CMS No-Route Page</label>
    </cms_index_noroute>

    <cms_index_defaultnoroute>
        <remove name="right"/>
        <remove name="left"/>

        <reference name="root">
            <action method="setTemplate"><template>page/1column.phtml</template></action>
        </reference>
        <reference name="content">
            <block type="core/template" name="default_no_route" template="cms/default/no-route.phtml"/>
        </reference>
    </cms_index_defaultnoroute>

</layout>

This is the content of my cms page design:

<reference name="content">
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml">
   <action method="setCategoryId"><category_id>3</category_id></action>
</block>
 </reference>

I am trying to display the navigation layer using the category id, 3, but nothing happens. Can someone give me some idea what should I try ? thx

0

change reference name content to left

<reference name="left">
<block type="catalog/layer_view" name="catalog.leftnav" before="-" template="catalog/layer/view.phtml">
   <action method="setCategoryId"><category_id>3</category_id></action>
</block>
 </reference>

i test it with default theme with cms it working

<reference name="content">
          <block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
          <action method="setCategoryId"><category_id>4</category_id></action>
              <block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
                   <block type="page/html_pager" name="product_list_toolbar_pager"/>
                            </block>
                            <action method="addColumnCountLayoutDepend"><layout>empty</layout><count>5</count></action>
                            <action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>4</count></action>
                            <action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>3</count></action>
                            <action method="addColumnCountLayoutDepend"><layout>two_columns_right</layout><count>3</count></action>
                            <action method="addColumnCountLayoutDepend"><layout>three_columns</layout><count>2</count></action>
                            <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
                        </block>
</reference>
<reference name="left">
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
</block>
 </reference>
  • I tried content, left, right and I got the same result: no nav layer :( . Any other ideas? thx :) – Attila Naghi Oct 20 '15 at 7:22
  • did you set the template 2column left ? – Qaisar Satti Oct 20 '15 at 7:24
  • Yes, it it set to 2column with left bar – Attila Naghi Oct 20 '15 at 7:25
  • check the category in anchor? – Qaisar Satti Oct 20 '15 at 7:28
  • 1
    no no , you misunderstand me . I said that maybe because of the mini-menubuilder it is not displayed – Attila Naghi Oct 20 '15 at 8:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.