Nithin
Nithin

Reputation: 543

How to set a static block in magento for individual sites

in the magento wiki for adding static blocks, there is an option to select the store views for that static block. But in magento 1.5.0.1 i don't find this option. How do i set a store view for a static block? I want to add cms pages like Terms & Conditions where each store would have its own terms & conditions page. Thanks.

Upvotes: 0

Views: 2364

Answers (3)

freshwebs
freshwebs

Reputation: 93

There's a really simple way of creating & displaying static blocks on a per site basis.

Requirement - you want different messages displayed on the 404 error page on a store by store basis.

Implementation -

  1. Create a separate 404 static block for each store (as Lee suggested above)
  2. Add each static block into the 404 CMS page
  3. Magento will only display the appropriate static block for each store

This is the case with Magento CE 1.7.02 & probably later/earlier versions too

Upvotes: 0

Lee Saferite
Lee Saferite

Reputation: 3124

Looking at the code you should have the option to select store views that the static block is valid for when creating/editing it unless you are in single store mode.

So, the answer is you just follow the directions from the wiki page if you are in multi-store mode.

Upvotes: 1

Lucas Moeskops
Lucas Moeskops

Reputation: 5443

You can make multiple static blocks, one for each store, and then have them applied to different cms pages. The cms pages can then be different per store.

Upvotes: 0

Related Questions