Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6070097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:53:41+00:00 2026-05-23T09:53:41+00:00

I have two static CMS Blocks called promo_en and promo_de – translated for the

  • 0

I have two static CMS Blocks called “promo_en” and “promo_de” – translated for the two existing storeviews “en” and “de”.

I’d like to add them to the sidebar of some modules using the layout.xml files of the modules.

The problem is that if I add them both using the following syntax – they both show disregarding the storeview I’m currently in (I would expect some automatic filtering):

<block type="cms/block" name="Promo_de">
    <action method="setBlockId"><block_id>promo_de</block_id></action>
</block> 
<block type="cms/block" name="Promo_en">
    <action method="setBlockId"><block_id>promo_en</block_id></action>
</block> 

If I rename them both to “promo” and use the following syntax – it works fine until I activate Magento’s cache – then the output of the CMS block freezes on whatever storeview is cached first:

<block type="cms/block" name="Promo">
    <action method="setBlockId"><block_id>promo</block_id></action>
</block> 

And ideas or workarounds on the matter are highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:53:42+00:00Added an answer on May 23, 2026 at 9:53 am

    I ended up writing my own Mini-Module to quickfix the problem, switching the translations in code based on the current store code:

    if( Mage::app()->getStore()->getCode() == 'de' ) 
    {
        echo $this->getLayout()->createBlock('cms/block')->setBlockId('promo_de')->toHtml();
    } 
    else if( Mage::app()->getStore()->getCode() == 'en' ) 
    {
        echo $this->getLayout()->createBlock('cms/block')->setBlockId('promo_en')->toHtml();
    }
    

    I know it’s ugly but time really was an issue here and I’ll have to clean this up in the future…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have two functions which look like this: public static void myFunction1(int a,
I have two static member declarations in ClsA , like this: class ClsA {
Say I have two classes like this: class A{ private static Random random =
I have a static list of data called Services . I also have two
I have to two extensions: public static IQueryable<T> Existing<T>(this IQueryable<T> qry) where T :
I have two databases in SQL2k5: one that holds a large amount of static
Suppose I have two classes that both contain a static variable, XmlTag. The second
I have two layers being drawn. A static background texture and a texture(png) with
I have two classes, and want to include a static instance of one class
I have two threads, one needs to poll a bunch of separate static resources

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.