SlideShare a Scribd company logo
Magento


                                     2010/03/13
                          Magento-JP User Group




2010   3   14
•
                • Magento
                • Twitter@hirokazu_nishi


2010   3   14
•   Magento

                •   Magento

                •             XML

                •   Block
                •
                •   Tips


2010   3   14
Magento




2010   3   14
app   code        core
                                  community
                                  local
                      design      frontend
                                  adminhtml
                      etc
                      locale
                lib
                js                            javascript

                skin frontend
                      adminhtml

2010   3   14
2010   3   14
design frontend default default layout     XML




                                                locale



                                                template



                                foo     bar


2010   3   14
design frontend default default layout     XML




                                                locale



                                                template



                                foo     bar


2010   3   14
design frontend default default layout     XML




                                                locale



                                                template



                                foo     bar


2010   3   14
Magento




2010   3   14
•
                •
                •


2010   3   14
-Scalena News-


2010   3   14
<?php $collection = $this->getItems(3); ?>
  <?php if ( count($collection) == 0 ) : ?>
  	

  <p><?php echo $this->__('No news yet...'); ?></p>
  <?php else : ?>
  	

  <dl>
  	

  <?php foreach ( $collection as $_item ) : ?>
  	

  	

  <dt><a href="<?php echo Mage::helper('snews')->getUrl($_item['identifier']); ?>"><?php
  echo $_item['title']; ?></a></dt>
  	

  	

  <dd><?php echo $_item['date']; ?></dd>
  	

  	

  <dd>
  	

  	

  <?php if ( Mage::helper('snews')->getListLimitDescription() == 0 || strlen($_item
  ['description']) < Mage::helper('snews')->getListLimitDescription() ) : ?>
  	

  	

  	

   <?php echo $_item['description']; ?>
  	

  	

  <?php else : ?>
  	

  	

  	

   <?php echo substr($_item['description'], 0, Mage::helper('snews')-
  >getListLimitDescription()); ?>...
  	

  	

  <?php endif; ?>	

  	

  	

  </dd>
  	

  	

  <dd><a href="<?php echo Mage::helper('snews')->getUrl($_item['identifier']); ?>"><?php
  echo $this->__('Learn more...'); ?></a></dd>
  	

  <?php endforeach; ?>
  	

  </dl>	

  <?php endif; ?>


2010   3   14
• if      endif;

                • foreach        endforeach;

                • $this->hogehoge
                •                  PHP



2010   3   14
•
                •   XML




2010   3   14
• page
                 •
                 •


2010   3   14
XML



2010   3   14
XML
                •               XML

                •
                •

                •   XML



2010   3   14
2010   3   14
2010   3   14
XML




2010   3   14
XML
                -Scalena News-


2010   3   14
<?xml version="1.0"?>
       <layout version="0.1.0">
       ! <default>
       ! ! <!--
       ! ! <reference name="right">
       ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/
       news/block.phtml"/>
       ! ! </reference>
       ! ! -->
       ! </default>
       ! <snews_index_index>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/items" name="snews.news" template="scalena/news/
       news.phtml">
       !               <block type="snews/pagination" name="snews.pagination" as="pagination"
       template="scalena/news/pagination.phtml"/>
                    </block>
               </reference>
           </snews_index_index>
           <snews_index_view>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/item" name="snews.detail" template="scalena/news/news-
       detail.phtml" />
               </reference>
           </snews_index_view>
       </layout>

2010   3   14
•   block
                •   reference
                •   action
                •   remove

2010   3   14
block

                •
                    •
                    • <block type=”foo” name=”foo”
                      template=”foo.phtml” />



2010   3   14
<?xml version="1.0"?>
       <layout version="0.1.0">
       ! <default>
       ! ! <!--
       ! ! <reference name="right">
       ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/
       news/block.phtml"/>
       ! ! </reference>
       ! ! -->
       ! </default>
       ! <snews_index_index>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/items" name="snews.news" template="scalena/news/
       news.phtml">
       !               <block type="snews/pagination" name="snews.pagination" as="pagination"
       template="scalena/news/pagination.phtml"/>
                    </block>
               </reference>
           </snews_index_index>
           <snews_index_view>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/item" name="snews.detail" template="scalena/news/news-
       detail.phtml" />
               </reference>
           </snews_index_view>
       </layout>

2010   3   14
reference


                • name=”foo”
                 • <reference name=”foo”>


2010   3   14
<?xml version="1.0"?>
       <layout version="0.1.0">
       ! <default>
       ! ! <!--
       ! ! <reference name="right">
       ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/
       news/block.phtml"/>
       ! ! </reference>
       ! ! -->
       ! </default>
       ! <snews_index_index>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/items" name="snews.news" template="scalena/news/
       news.phtml">
       !               <block type="snews/pagination" name="snews.pagination" as="pagination"
       template="scalena/news/pagination.phtml"/>
                    </block>
               </reference>
           </snews_index_index>
           <snews_index_view>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/item" name="snews.detail" template="scalena/news/news-
       detail.phtml" />
               </reference>
           </snews_index_view>
       </layout>

2010   3   14
action

                • block
                • block
                 •
                • <action method=”foo”>   </
                  action>


2010   3   14
<?xml version="1.0"?>
       <layout version="0.1.0">
       ! <default>
       ! ! <!--
       ! ! <reference name="right">
       ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/
       news/block.phtml"/>
       ! ! </reference>
       ! ! -->
       ! </default>
       ! <snews_index_index>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/items" name="snews.news" template="scalena/news/
       news.phtml">
       !               <block type="snews/pagination" name="snews.pagination" as="pagination"
       template="scalena/news/pagination.phtml"/>
                    </block>
               </reference>
           </snews_index_index>
           <snews_index_view>
               <reference name="root">
                    <action method="setTemplate"><template>page/2columns-right.phtml</
       template></action>
               </reference>
               <reference name="content">
                    <block type="snews/item" name="snews.detail" template="scalena/news/news-
       detail.phtml" />
               </reference>
           </snews_index_view>
       </layout>

2010   3   14
remove

                •
                • <remove name=”foo”/>
                •


2010   3   14
•   CMS

                •
                •

                •         XML


2010   3   14
Block



2010   3   14
Block
                •    XML       block



                •          .phtml

                •    XML       public



                •    XML


2010   3   14
Block
       <block type="foo/foo" name="foo.foo">

                <block type="foo/bar" name="foo.bar" as="bar"/>




       </block>




2010   3   14
• $this->getChildHtml(‘foo’);
                •


2010   3   14
•   Mage_Core_Model_Layout
                    createBlock



                •   core            grep

                •                 XML




2010   3   14
• CMS        XML



                •
                • Free_CMS


2010   3   14
• 1.3
                  {{block type=”cms/block” block_id=”hoge”
                  template=”cms/content.phtml”}}
                • 1.4
                  {{widget type="cms/widget_block"
                  template="cms/widget/static_block/
                  default.phtml" block_id="5"}}


2010   3   14
• <block type=”cms/block”
                  name=”hoge” (before|after)=”foo”>
                    <action method=”setBlockId”>
                       hoge
                    </action>
                  </block>



2010   3   14
2010   3   14
•   HTML

                •   JS   CSS

                •



2010   3   14
•
                          OK

                •

                •   CSS        JS


2010   3   14
Tips



2010   3   14
<remove name=”breadcrumbs” />
            <reference name=”breadcrumbs”>
                <action method=”addCrumnb”>
                    <label>home</label>
                    <params>
                        <label>home</label>
                        <title>     </title>
                        <link>home</link>
                        <first>true</first>
                    </params>
                </action>
                <action method=”addCrumnb”>
                    <label>foofoo</label>
                    <params>
                        <label>       </label>
                        <title>       </title>
                         <link/>
                         <last>true</last>
                    </params>
                </action>
            </reference>


2010   3   14
<reference name=”top.links”>
               <action method=”addLink” translate=”label title” module=”customer”>
                   <label>       </label>
                    <url>/hogehoge</url>
                    <title>       </title>
                    <prepare/>
                    <urlParams/>
                    <position>90</position>
                </action>
                <action method=”addLink” translate=”label title” module=”customer”>
                    <label>       </label>
                    <url>/fugefuge</url>
                    <title>       </title>
                   <prepare/>
                   <urlParams/>
                   <position>100</position>
               </action>
           </reference>



2010   3   14
2010   3   14

More Related Content

PDF
Magento20100709
PDF
Magento20100807
PPT
Bài 12: JSF-2 - Lập Trình Mạng Nâng Cao
DOCX
Cara memperbaiki google
PDF
날로 먹는 Django admin 활용
KEY
Django Admin: Widgetry & Witchery
PDF
How to create a magento controller in magento extension
PDF
How to Create A Magento Adminhtml Controller in Magento Extension
Magento20100709
Magento20100807
Bài 12: JSF-2 - Lập Trình Mạng Nâng Cao
Cara memperbaiki google
날로 먹는 Django admin 활용
Django Admin: Widgetry & Witchery
How to create a magento controller in magento extension
How to Create A Magento Adminhtml Controller in Magento Extension

What's hot (19)

PDF
Profit statement 00
PDF
Working with the django admin
PDF
Inchoo s magento posts
PDF
Two scoops of django 1.6 - Ch7, Ch8
PDF
How to Develop a Basic Magento Extension Tutorial
PPTX
Magento 2.0: Prepare yourself for a new way of module development
PPTX
May the core be with you - JandBeyond 2014
PDF
How to Think Inside the Box: Programming Fixed Layout for E-Books
PPTX
DJango admin interface
PPTX
Odoo (Build module, Security, ORM)
PDF
JavaFXで開く新世代GUI
TXT
Links/Деловой и денежный мир
DOC
Ôn tập KTTMDT
PPT
Система рендеринга в Magento
PDF
Drupal Module Development
ZIP
Drupal Development
PDF
Zepplin_Pronko_Magento_Festival Hall 1_Final
PPT
Presentation
PDF
Melody Designer Training
Profit statement 00
Working with the django admin
Inchoo s magento posts
Two scoops of django 1.6 - Ch7, Ch8
How to Develop a Basic Magento Extension Tutorial
Magento 2.0: Prepare yourself for a new way of module development
May the core be with you - JandBeyond 2014
How to Think Inside the Box: Programming Fixed Layout for E-Books
DJango admin interface
Odoo (Build module, Security, ORM)
JavaFXで開く新世代GUI
Links/Деловой и денежный мир
Ôn tập KTTMDT
Система рендеринга в Magento
Drupal Module Development
Drupal Development
Zepplin_Pronko_Magento_Festival Hall 1_Final
Presentation
Melody Designer Training
Ad

Similar to Magento20100313 (20)

PDF
Magento20100226
PDF
Designing for magento
PDF
Maintainable Frontend Development with BEM
PDF
How to create a basic template
KEY
Templates
ODP
Introduction to web design
PDF
BEM. What you can borrow from Yandex frontend dev
PDF
Grok Drupal (7) Theming - 2011 Feb update
PDF
Magento - Design Integration Guideline - Bysoft China
PDF
Delivering a Responsive UI
PPT
Introduction to web design
PPTX
Template.engine.concept2012
PDF
TOSSUG HTML5 讀書會 新標籤與表單
PDF
DRY cross-browser CSS with SASS
PPT
Introduction to web design
PPT
Block Choosers, Configuration Blocks, Metadata Sets, Indexing and XSLT
PDF
Netsuite e commerce training doc
PDF
Amplexor drupalcamp-gent-2012 - kinepolis platform
PDF
Tutorial%20-%20Content%20Management%20System
PDF
Tutorial%20-%20Content%20Management%20System
Magento20100226
Designing for magento
Maintainable Frontend Development with BEM
How to create a basic template
Templates
Introduction to web design
BEM. What you can borrow from Yandex frontend dev
Grok Drupal (7) Theming - 2011 Feb update
Magento - Design Integration Guideline - Bysoft China
Delivering a Responsive UI
Introduction to web design
Template.engine.concept2012
TOSSUG HTML5 讀書會 新標籤與表單
DRY cross-browser CSS with SASS
Introduction to web design
Block Choosers, Configuration Blocks, Metadata Sets, Indexing and XSLT
Netsuite e commerce training doc
Amplexor drupalcamp-gent-2012 - kinepolis platform
Tutorial%20-%20Content%20Management%20System
Tutorial%20-%20Content%20Management%20System
Ad

More from Hirokazu Nishi (19)

PPTX
Magento Meetup Tokyo 14 〜メンテナンス画面を極める
PPTX
JP_Stripes Vol3 発表資料
PPTX
20170626 さくらインターネット Stripe Magento
PPTX
How to implement payment gateway integration for non-credit card on Magento2
PPTX
Magento cafe plus #12
PPTX
第9回 Magento Cafe Plus
PDF
第1回 Magento Cafe Plus Kansai ~ Magentoカスタマイズ入門
PDF
第8回 Magento cafe plus
PDF
第7回 Magento Cafe Plus
PDF
Magento Cafe Plus #6
PDF
第4回Magento Cafe Plus〜Rewriteと独自テーブル
PDF
第4回Magento Cafe Plus〜最近のMagento
PDF
第3回 Magento Cafe Plus モジュール開発入門
PDF
第2回 Magento cafe plus 〜新・Magentoカスタマイズ入門
PDF
Akeneo PIM Overview
PDF
Magento2 Overview
PDF
Magento cafe tokyo2~デザイナー向けMagentoの歩き方
PDF
最新・Magentoを日本語で使うイロハ
PDF
加速していくMagento 〜MDP2011参加レポート〜
Magento Meetup Tokyo 14 〜メンテナンス画面を極める
JP_Stripes Vol3 発表資料
20170626 さくらインターネット Stripe Magento
How to implement payment gateway integration for non-credit card on Magento2
Magento cafe plus #12
第9回 Magento Cafe Plus
第1回 Magento Cafe Plus Kansai ~ Magentoカスタマイズ入門
第8回 Magento cafe plus
第7回 Magento Cafe Plus
Magento Cafe Plus #6
第4回Magento Cafe Plus〜Rewriteと独自テーブル
第4回Magento Cafe Plus〜最近のMagento
第3回 Magento Cafe Plus モジュール開発入門
第2回 Magento cafe plus 〜新・Magentoカスタマイズ入門
Akeneo PIM Overview
Magento2 Overview
Magento cafe tokyo2~デザイナー向けMagentoの歩き方
最新・Magentoを日本語で使うイロハ
加速していくMagento 〜MDP2011参加レポート〜

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Empathic Computing: Creating Shared Understanding
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
cuic standard and advanced reporting.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Getting Started with Data Integration: FME Form 101
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
Teaching material agriculture food technology
PPTX
Tartificialntelligence_presentation.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Building Integrated photovoltaic BIPV_UPV.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Big Data Technologies - Introduction.pptx
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Per capita expenditure prediction using model stacking based on satellite ima...
Empathic Computing: Creating Shared Understanding
MIND Revenue Release Quarter 2 2025 Press Release
cuic standard and advanced reporting.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
A comparative analysis of optical character recognition models for extracting...
Assigned Numbers - 2025 - Bluetooth® Document
The Rise and Fall of 3GPP – Time for a Sabbatical?
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Getting Started with Data Integration: FME Form 101
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Accuracy of neural networks in brain wave diagnosis of schizophrenia
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Teaching material agriculture food technology
Tartificialntelligence_presentation.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Magento20100313

  • 1. Magento 2010/03/13 Magento-JP User Group 2010 3 14
  • 2. • Magento • Twitter@hirokazu_nishi 2010 3 14
  • 3. Magento • Magento • XML • Block • • Tips 2010 3 14
  • 5. app code core community local design frontend adminhtml etc locale lib js javascript skin frontend adminhtml 2010 3 14
  • 6. 2010 3 14
  • 7. design frontend default default layout XML locale template foo bar 2010 3 14
  • 8. design frontend default default layout XML locale template foo bar 2010 3 14
  • 9. design frontend default default layout XML locale template foo bar 2010 3 14
  • 10. Magento 2010 3 14
  • 11. • • 2010 3 14
  • 13. <?php $collection = $this->getItems(3); ?> <?php if ( count($collection) == 0 ) : ?> <p><?php echo $this->__('No news yet...'); ?></p> <?php else : ?> <dl> <?php foreach ( $collection as $_item ) : ?> <dt><a href="<?php echo Mage::helper('snews')->getUrl($_item['identifier']); ?>"><?php echo $_item['title']; ?></a></dt> <dd><?php echo $_item['date']; ?></dd> <dd> <?php if ( Mage::helper('snews')->getListLimitDescription() == 0 || strlen($_item ['description']) < Mage::helper('snews')->getListLimitDescription() ) : ?> <?php echo $_item['description']; ?> <?php else : ?> <?php echo substr($_item['description'], 0, Mage::helper('snews')- >getListLimitDescription()); ?>... <?php endif; ?> </dd> <dd><a href="<?php echo Mage::helper('snews')->getUrl($_item['identifier']); ?>"><?php echo $this->__('Learn more...'); ?></a></dd> <?php endforeach; ?> </dl> <?php endif; ?> 2010 3 14
  • 14. • if endif; • foreach endforeach; • $this->hogehoge • PHP 2010 3 14
  • 15. • XML 2010 3 14
  • 16. • page • • 2010 3 14
  • 17. XML 2010 3 14
  • 18. XML • XML • • • XML 2010 3 14
  • 19. 2010 3 14
  • 20. 2010 3 14
  • 21. XML 2010 3 14
  • 22. XML -Scalena News- 2010 3 14
  • 23. <?xml version="1.0"?> <layout version="0.1.0"> ! <default> ! ! <!-- ! ! <reference name="right"> ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/ news/block.phtml"/> ! ! </reference> ! ! --> ! </default> ! <snews_index_index> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/items" name="snews.news" template="scalena/news/ news.phtml"> ! <block type="snews/pagination" name="snews.pagination" as="pagination" template="scalena/news/pagination.phtml"/> </block> </reference> </snews_index_index> <snews_index_view> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/item" name="snews.detail" template="scalena/news/news- detail.phtml" /> </reference> </snews_index_view> </layout> 2010 3 14
  • 24. block • reference • action • remove 2010 3 14
  • 25. block • • • <block type=”foo” name=”foo” template=”foo.phtml” /> 2010 3 14
  • 26. <?xml version="1.0"?> <layout version="0.1.0"> ! <default> ! ! <!-- ! ! <reference name="right"> ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/ news/block.phtml"/> ! ! </reference> ! ! --> ! </default> ! <snews_index_index> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/items" name="snews.news" template="scalena/news/ news.phtml"> ! <block type="snews/pagination" name="snews.pagination" as="pagination" template="scalena/news/pagination.phtml"/> </block> </reference> </snews_index_index> <snews_index_view> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/item" name="snews.detail" template="scalena/news/news- detail.phtml" /> </reference> </snews_index_view> </layout> 2010 3 14
  • 27. reference • name=”foo” • <reference name=”foo”> 2010 3 14
  • 28. <?xml version="1.0"?> <layout version="0.1.0"> ! <default> ! ! <!-- ! ! <reference name="right"> ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/ news/block.phtml"/> ! ! </reference> ! ! --> ! </default> ! <snews_index_index> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/items" name="snews.news" template="scalena/news/ news.phtml"> ! <block type="snews/pagination" name="snews.pagination" as="pagination" template="scalena/news/pagination.phtml"/> </block> </reference> </snews_index_index> <snews_index_view> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/item" name="snews.detail" template="scalena/news/news- detail.phtml" /> </reference> </snews_index_view> </layout> 2010 3 14
  • 29. action • block • block • • <action method=”foo”> </ action> 2010 3 14
  • 30. <?xml version="1.0"?> <layout version="0.1.0"> ! <default> ! ! <!-- ! ! <reference name="right"> ! ! ! <block type="snews/block" name="snews.block" as="newsBlock" template="scalena/ news/block.phtml"/> ! ! </reference> ! ! --> ! </default> ! <snews_index_index> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/items" name="snews.news" template="scalena/news/ news.phtml"> ! <block type="snews/pagination" name="snews.pagination" as="pagination" template="scalena/news/pagination.phtml"/> </block> </reference> </snews_index_index> <snews_index_view> <reference name="root"> <action method="setTemplate"><template>page/2columns-right.phtml</ template></action> </reference> <reference name="content"> <block type="snews/item" name="snews.detail" template="scalena/news/news- detail.phtml" /> </reference> </snews_index_view> </layout> 2010 3 14
  • 31. remove • • <remove name=”foo”/> • 2010 3 14
  • 32. CMS • • • XML 2010 3 14
  • 33. Block 2010 3 14
  • 34. Block • XML block • .phtml • XML public • XML 2010 3 14
  • 35. Block <block type="foo/foo" name="foo.foo"> <block type="foo/bar" name="foo.bar" as="bar"/> </block> 2010 3 14
  • 37. Mage_Core_Model_Layout createBlock • core grep • XML 2010 3 14
  • 38. • CMS XML • • Free_CMS 2010 3 14
  • 39. • 1.3 {{block type=”cms/block” block_id=”hoge” template=”cms/content.phtml”}} • 1.4 {{widget type="cms/widget_block" template="cms/widget/static_block/ default.phtml" block_id="5"}} 2010 3 14
  • 40. • <block type=”cms/block” name=”hoge” (before|after)=”foo”> <action method=”setBlockId”> hoge </action> </block> 2010 3 14
  • 41. 2010 3 14
  • 42. HTML • JS CSS • 2010 3 14
  • 43. OK • • CSS JS 2010 3 14
  • 44. Tips 2010 3 14
  • 45. <remove name=”breadcrumbs” /> <reference name=”breadcrumbs”> <action method=”addCrumnb”> <label>home</label> <params> <label>home</label> <title> </title> <link>home</link> <first>true</first> </params> </action> <action method=”addCrumnb”> <label>foofoo</label> <params> <label> </label> <title> </title> <link/> <last>true</last> </params> </action> </reference> 2010 3 14
  • 46. <reference name=”top.links”> <action method=”addLink” translate=”label title” module=”customer”> <label> </label> <url>/hogehoge</url> <title> </title> <prepare/> <urlParams/> <position>90</position> </action> <action method=”addLink” translate=”label title” module=”customer”> <label> </label> <url>/fugefuge</url> <title> </title> <prepare/> <urlParams/> <position>100</position> </action> </reference> 2010 3 14
  • 47. 2010 3 14