Your shopping cart is empty. Browse our Store

Magento

Open Source eCommerce Evolved

How do I create and edit Static Blocks?

By using static blocks you are able to create content for category pages, allowing you to showcase items and promotions instead of just displaying the grid list of products.

To create a static block go to CMS -> Static Blocks, then select Add New Block.

image

In this case we are going to create a block for use on the Cell Phone sub-category page.

We enter the Block title, for internal use, and the identifier, which will create the URL for this page.

We then select the store we want to use the Block on, in this case all stores, and set the Block to enabled. Once that is done we enter our content in an HTML Format and select Save Block.

image

Now that we have the block created we set it up for use on the Cell Phone sub-category page as described in the Tutorial: Creating and Managing Categories.

We select that we want to show the static block and the products below, and we have our category page set up:

image

The static blocks are incredibly flexible, allowing you to create something as simple as a text category description, or something as intricate as multiple image maps, such as what we are showcasing on the Electronics category page.

image

You can add a static block to any HTML content field by using the tag {{block type="cms/block" block_id="your_block_identifier" template="cms/content.phtml"}}. This is useful on Landing Pages, where the content of the page is determined via an HTML text field.

RSS comments feed for this entry

User Comments

|1 comment
  1. k9ert

    1k9ert |posted December 3 2007

    You should mention, that you can refer on this static-blocks whereever you want (CMS-Pages or even other static-blocks - by the way, what’s the difference?) using this syntax:

    {{block type="cms/block" block_id="your_block_identifier" template="cms/content.phtml"}}

    But maybe, that’s black magic?!

  • Comments in this section are now closed, please check out the forum for discussions about this topic.

Explore the Knowledge Base

Professional Services from the Magento Team

Professional Installation from the Magento Team

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs
Sales: Call 877.832.5289 (North America) 310.295.4144 (International) to request a call-back.
© Copyright 2008 Varien. Magento is a trademark of Irubin Consulting Inc. DBA Varien    Privacy Policy|Terms of Service