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

Footer Links CMS (footer_links) issue
 
Horatiu Taina
Member
 
Avatar
Total Posts:  42
Joined:  2008-08-22
 

Hello, again!

I need 2 different ‘footer_links’ because I have a bi-lingual Magento.

I have created ‘footer_links_ro’ and ‘footer_links_en’ in my CMS Static Block Sections in the backend and set them to ‘Active’ for the ‘RO’ and ‘EN’ stores.

I went to cms.xml and made this modification:

<default>
        <
reference name="footer">
            <
block type="cms/block" name="cms_footer_links">
                <!--
                    
The content of this block is taken from the database by its block_id.
                    
You can manage it in admin CMS -> Static Blocks
                
-->
                <
action method="setBlockId"><block_id>footer_links_en</block_id></action>
                <
action method="setBlockId"><block_id>footer_links_ro</block_id></action>                
            </
block>
        </
reference>
    </default>

MY PROBLEM:
Only the ‘footer_links_ro’ shows up, when the ‘RO’ store is activated… The ‘EN’ one has no ‘footer_links_en’ showing… Why?

Thanks in advance,
HT

 
Magento Community Magento Community
Magento Community
Magento Community
 
satish
Enthusiast
 
Total Posts:  812
Joined:  2008-03-24
34,mantri Sadan,Shivaji Nagar,Nagpur,MS,India 4400
 

Did you have installed different themes as per store?

Satish

 
Magento Community Magento Community
Magento Community
Magento Community
 
Horatiu Taina
Member
 
Avatar
Total Posts:  42
Joined:  2008-08-22
 

Hello Satish!

Well.. no, not quite! The whole store is realiy based (right now) on one single theme!

What do you suggest I start with?

Thank you!

 
Magento Community Magento Community
Magento Community
Magento Community
 
IcebergCommerce
Sr. Member
 
Avatar
Total Posts:  90
Joined:  2008-06-24
 

When you call <action method="setBlockId"> 2 times in the same block, what you are doing is setting the block id to “footer_links_en” first, then immediately overwriting the block id with “footer_links_ro”

So instead, what you might want to try is:

<default>
    <
reference name="footer">
        <
block type="cms/block" name="cms_footer_links">
            <
action method="setBlockId"><block_id>footer_links_en</block_id></action>
        </
block>
        <
block type="cms/block" name="cms_footer_links_ro">
            <
action method="setBlockId"><block_id>footer_links_ro</block_id></action>                
        </
block>
    </
reference>
</default>
 
Magento Community Magento Community
Magento Community
Magento Community
 
Horatiu Taina
Member
 
Avatar
Total Posts:  42
Joined:  2008-08-22
 

Thank you, Iceberg Commerce!

I know I’ve tried your solution, except the fact that I forgot to modify the name of the block. I remember naming the blocks the same way.

It should work now.

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