Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Different layout in catalog search
 
Black Cat
Mentor
 
Avatar
Total Posts:  3481
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

I have an installation of Magento in which the layout in the catalog is to three columns.
There is to the left the list categories while to the left all the other blocks (Newsletter, comparelist etc..).
Now the searchcatalog is always instead to three columns, but there is only to the left the newsletter. Yet I had modified in the file xml the attribute to line up it on the column of right.
Skipping this detail, as can I do for settare the searchcatalog and advancedsearch to 1 or 2 columns?

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Hi

go to catalog.xml at line (about) 255

<!--
Catalog search terms block
-->

    <
catalog_seo_searchterm_popular>
        <
remove name="right"/>
        <
remove name="left"/>
        <
reference name="root">
            <
action method="setTemplate"><template>page/3columns.phtml</template></action>
        </
reference>
        <
reference name="content">
            <
block type="catalog/seo_searchterm" name="seo.searchterm" template="catalog/seo/searchterm.phtml"/>
        </
reference>
    </
catalog_seo_searchterm_popular>

</
layout>

change 3columns.phtml with the right file you want set!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  3481
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

Thanks Chiara! later I try

PS: certo che sei diventata espertissima di magento smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 
Black Cat - 22 April 2008 05:38 AM

Thanks Chiara! later I try

PS: certo che sei diventata espertissima di magento smile

red face  I’m trying!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  3481
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

Fact!!!
the problem is that the playpen newsletter has disappeared in the searchpage (it was to the left).
Yet I had settato on newsletter.xml the attribute “right.”
Do you have some idea?

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

have you a lonk to see?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  3481
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

astalacasa.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

Ok, but I’m a bit lost…
if your settings say:
newsletter to the rigt
search on 2 columns

the page is right!

I see the newsletter to the right… and the search page on 2 columns…

what is your goal?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  3481
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

in the search page (non advanced search) the box Newsletter isn’t visibile.

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiaraweb
Guru
 
Avatar
Total Posts:  721
Joined:  2008-03-21
Aviano ~ Italy
 

here?
http://www.astalacasa.com/index.php/catalogsearch/result/?q=123&x;=32&y;=8

the file you must edit is catalogsearch.xml at line 36 delete this line

<remove name="right.newsletter" />

take a look to this block

<catalogsearch_result_index>
        <
remove name="right.newsletter" />
        <
remove name="right.reports.product.viewed" />
        <
reference name="root">
            <
action method="setTemplate"><template>page/3columns.phtml</template></action>
        </
reference>
        <
reference name="left">
            <
block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>
        </
reference>
        <
reference name="content">
            <
block type="catalogsearch/result" name="search.result" template="catalogsearch/result.phtml">
                <
action method="initList"><template>catalog/product/list.phtml</template></action>
            </
block>
        </
reference>
 
Magento Community Magento Community
Magento Community
Magento Community
 
Black Cat
Mentor
 
Avatar
Total Posts:  3481
Joined:  2008-02-14
Assemini / Cagliari (Italy)
 

thanks!!!!!

Chiara perchè non apri un topic sulla sezione italiana in cui spieghi la struttura e la sintassi dei file xml? sarebbe molto utile. Pure io sto faticando a capire bene tutto eheh

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top