控制 page layout 和 blocks 位置的代码被写在 XML widget 中,这使得放置 block 在页面的特定位置变得比较容易,即时是放置在特定的产品页或分类目录中,也很容易不需要写任何代码。你可以从列表中选择选项,而不用记住所有可能的组合。
下面的列表展示了不同 page 类型下,blocks 被放置的经典位置。了解更多,请参考 Standard Page Layouts
Category and CMS Pages
BLOCK REFERENCE
POSITION
Breadcrumbs
The navigation aid at the top of many pages that shows your current location as a link. Any additional content placed in the Breadcrumbs reference floats to the right of the breadcrumbs, if displayed.
Left Column
Content is added to the left column.
Main Content Area
Content is added to the main content area.
My Cart Extra Actions
Content appears below the Cart Subtotal in the My Cart popup located within the top link.
Navigation Bar
Content appears below the main navigation bar.
Page Bottom
Content appears at the bottom of the page.
Page Footer
Content appears above the footer of the page.
Page Header
Content appears below the header of the page.
Page Top
Content appears at the top of the page.
Right Column
Content appears in the right column.
Store Language
Content appears in the upper-left corner of the header.
Product Page
BLOCK REFERENCE
POSITION
Alert URLs
Content appears below the title of the product on the product detail page.
Bottom Block Options Wrapper
If custom options are added, content appears below the Add to Cart button.
Breadcrumbs
Content appears to the right of breadcrumbs—the navigation aid that provides links as a path—that’s showcased below the navigation bar.
Info Column Options Wrapper
If a custom options are added, content appears to the right. The same location applies to configurable options.
Left Column
Content appears below the left column blocks.
Main Content Area
Content appears below the main content area.
My Cart Extra Actions
Content appears below the Cart Subtotal in the My Cart popup located within the top link.
Navigation Bar
Content appears below the main navigation bar.
Page Bottom
Content appears at the bottom of the page.
Page Footer
Content appears above the footer of the page.
Page Header
Content appears below the header of the page.
Page Top
Content appears at the top of the page.
PayPal Express Checkout (Payflow Edition) Shortcut Wrapper
If the PayPal payment method is enabled, content appears below the PayPal buy button.
PayPal Express Checkout Shortcut Wrapper
If the PayPal payment method is enabled, content appears below the PayPal buy button.
Product Tags List
Content appears below the products tag bar.
Product View Extra Hint
Content appears below the main top price of the product.
Right Column
Content appears below the right column blocks.
Store Language
Content appears to the right of the language chooser.
Tags List Before
Content appears above the Add Your Tags field.