eZ Publish




Sunday, March 28, 10
eZ

  eZ


       eZ
                       eZ




            siteaccss

Sunday, March 28, 10
eZ




Sunday, March 28, 10
eZ




                                            SSC
                       (Thrust SSC, SuperSonic Car)




           ...
eZ




Sunday, March 28, 10
eZ




                            Article
Sunday, March 28, 10
eZ




                                Article
                            =
Sunday, March 28, 10
eZ




                            Article
Sunday, March 28, 10
eZ




                            Article
Sunday, March 28, 10
eZ




                            Image
Sunday, March 28, 10
eZ




                                Image
                            =
Sunday, March 28, 10
eZ




                            Image
Sunday, March 28, 10
eZ




                            Image
Sunday, March 28, 10
eZ




                            User
Sunday, March 28, 10
eZ




                            =
                                User
Sunday, March 28, 10
eZ




                            User
Sunday, March 28, 10
eZ




                            User
Sunday, March 28, 10
eZ


                       Attribute




Sunday, March 28, 10
eZ


                       Attribute




Sunday, March 28, 10
eZ


                       Attribute




Sunday, March 28, 10
eZ



                                                              eZ

                                                  ...
eZ
      design/base/override/templates/full/article.tpl
             {$node|attribute(show,1)} 1                <=
eZ



...
eZ
          design/base/override/templates/full/article.tpl
                 {$node.data_map|attribute(show,1)} 1       <...
eZ
               design/base/override/templates/full/article.tpl
                      {$node|creator(show,1)} 1         ...
eZ




                                    data_map


                       eZ Publish




Sunday, March 28, 10
eZ


                                •
                                •
                                •
               ...
eZ

Sunday, March 28, 10
Sunday, March 28, 10
Sunday, March 28, 10
+
                   +
                   +




Sunday, March 28, 10
id: blog_top          : yes
                                       id                                                     ...
Web




                                    ↓

                             (
                                 Content



...
Sunday, March 28, 10
Sunday, March 28, 10
header



                                          gl_navi)




                       content
                          ...
eZ




          •                      settings/



          •                   .ini

          •
          •          ...
eZ




                                            override
                                            siteaccess




   ...
Siteaccess

Sunday, March 28, 10
Siteaccess
                                    Siteaccess




                                    Siteaccess




Sunday, M...
Siteaccess
                   •             Siteaccess site.ini
                                                  (setting...
Siteaccess
                       eZ Publish        settings/siteaccess


                       pub                      ...
Override              site.ini
                                              Siteaccess


                  [SiteAccessSet...
Siteaccess




Sunday, March 28, 10
pub
Sunday, March 28, 10
Sunday, March 28, 10
Siteaccess


                                   new
                       original




Sunday, March 28, 10
design
                                     Plain
                                        eZ Publish
                     ...
design
             eZ                             settings/siteaccess/pub/site.ini.append.php
                        Sit...
siteaccess   original
                       standard
                             [DesignSettings]
                      ...
siteaccess               design




                       [DesignSettings]
                       SiteDesign=plain_site
 ...
new
                             [DesignSettings]
                             SiteDesign=plain_site
                     ...
new        site.ini.append.php
                         [DesignSettings]
                         SiteDesign=new
         ...
new




Sunday, March 28, 10
override templates




Sunday, March 28, 10
eZ




Sunday, March 28, 10
Sunday, March 28, 10
eZ




Sunday, March 28, 10
URL

                       http://example.url/index.php/content/view/full/2




Sunday, March 28, 10
URL
                       module




Sunday, March 28, 10
http://example.url/index.php/content/view/full/2




                                                node id 2
Sunday, Mar...
http://example.url/index.php/user/login




Sunday, March 28, 10
http://example.url/index.php/content/edit/1




                                           edit          object id


     ...
URL



Sunday, March 28, 10
URL




                             URL



Sunday, March 28, 10
URL

           1. eZ Publish                            URL

           2.            URL               URL

            ...
Sunday, March 28, 10
Sunday, March 28, 10
Debug output               Template debug
                       List of used templates                        Set
       ...
Debug output




Sunday, March 28, 10
Template debug




                       HTML



Sunday, March 28, 10
List of used templates




Sunday, March 28, 10
templates




                       pagelayout.tpl




                            pagelayout.tpl templates
             ...
pagelayout.tpl




                        aaaaa
                           pagelayout.tpl

Sunday, March 28, 10
Pagelayout            Module Result




                       Point!
                                                    ...
Pagelayout
                       $module_result.content
                       aaaaa   {$module_result.content}




Sunda...
Pagelayout
                       $module_result.content




                           HTML

Sunday, March 28, 10
$module_result.content
                                   node/view/full.tpl
                                             ...
bbbbb   {$node|attribute(show,1)}




Sunday, March 28, 10
$node



Sunday, March 28, 10
attribute(show)

                            attribute(show)
                            http://ez.no/doc/ez_publish/techn...
.


                       {$node.data_map.title.data_text}
Sunday, March 28, 10
Sunday, March 28, 10
<h1>{$node.data_map.title.data_text}</h1>

                       <p>{$node.data_map.description.data_text}</p>

         ...
full         design/new/templates/node/view/full.tpl
                                                                 HTML...
siteaccess     new    override.ini.append.php


                                                        node/view/full.tpl...
[full_folder]                   •
    Source=node/view/full.tpl       •
    MatchFile=full/folder.tpl
                    ...
Sunday, March 28, 10
eZ Publish




Sunday, March 28, 10
Sunday, March 28, 10
+ ○○○○○
                       + ○○○○○
                       + ○○○○○
                       + ○○○○○



                  ...
+ ○○○○○
                       + ○○○○○
                       + ○○○○○
                       + ○○○○○



                  ...
+ ○○○○○
                       + ○○○○○
                       + ○○○○○
                       + ○○○○○



                  ...
include

                             header



                                      gl_navi)




                       ...
Sunday, March 28, 10
Upcoming SlideShare
Loading in …5
×

eZ Publish 実装 はじめの一歩

4,223 views

Published on

2009年10月7日に行ったeZ Publish 徹底勉強会で使ったスライドをちょっと手直ししてアップします。

「eZ Publish 徹底勉強会(2009/10/7開催)
http://atnd.org/events/1667

Published in: Technology
1 Comment
6 Likes
Statistics
Notes
  • スライドが読みにくいなら、同じ物の縦方向スライド付バージョンはこちら:
    http://www.slideshare.net/mlg4035/ez-publish-12298241
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
4,223
On SlideShare
0
From Embeds
0
Number of Embeds
537
Actions
Shares
0
Downloads
76
Comments
1
Likes
6
Embeds 0
No embeds

No notes for slide

eZ Publish 実装 はじめの一歩

  1. 1. eZ Publish Sunday, March 28, 10
  2. 2. eZ eZ eZ eZ siteaccss Sunday, March 28, 10
  3. 3. eZ Sunday, March 28, 10
  4. 4. eZ SSC (Thrust SSC, SuperSonic Car) Richard Noble Glynne Bowsher Ron Ayers Jeremy Bliss 1997 10 15 1,227.985 763 1.016 http://ja.wikipedia.org/wiki/%E3%82%B9%E3%83%A9%E3%82%B9%E3%83%88SSC Sunday, March 28, 10
  5. 5. eZ Sunday, March 28, 10
  6. 6. eZ Article Sunday, March 28, 10
  7. 7. eZ Article = Sunday, March 28, 10
  8. 8. eZ Article Sunday, March 28, 10
  9. 9. eZ Article Sunday, March 28, 10
  10. 10. eZ Image Sunday, March 28, 10
  11. 11. eZ Image = Sunday, March 28, 10
  12. 12. eZ Image Sunday, March 28, 10
  13. 13. eZ Image Sunday, March 28, 10
  14. 14. eZ User Sunday, March 28, 10
  15. 15. eZ = User Sunday, March 28, 10
  16. 16. eZ User Sunday, March 28, 10
  17. 17. eZ User Sunday, March 28, 10
  18. 18. eZ Attribute Sunday, March 28, 10
  19. 19. eZ Attribute Sunday, March 28, 10
  20. 20. eZ Attribute Sunday, March 28, 10
  21. 21. eZ eZ object ezauthor ezmultiprice ezbasket eznodeassignment ezbinaryfile ezoption ezcontentbrowsebookmark ezorder ezcontentbrowserecent ezorderitem ezcontentclass ezorderstatus ezcontentclassattribute ezpolicy ezcontentclassclassgroup ezprice ezcontentclassgroup ezproductcategory ezcontentlanguage ezproductcollectionitem ezcontentobject ezrangeoption ezcontentobjectattribute ezrole ezcontentobjecttranslation ezsection ezcontentobjecttrashnode ezsimplifiedxmlinput ezcontentobjecttreenode ezsubtreenotificationrule ezcontentobjectversion eztime ezcurrencydata ezurl ezdate ezuser ezdatetime ezvatrule ezimagealiashandler ezvattype ezimagelayer ezxhtmlxmloutput ezimageobject ezxmlinputhandler ezinformationcollection ezxmloutputhandler ezinformationcollectionattribute ezxmltext ezkeyword http://ez.no/doc/ez_publish/technical_manual/4_x ezlocale ezmatrix ezmedia ezcontentobjecttreenode ezmultioption ezmultioption2 ezcontentobjectnode Sunday, March 28, 10
  22. 22. eZ design/base/override/templates/full/article.tpl {$node|attribute(show,1)} 1 <= eZ Sunday, March 28, 10
  23. 23. eZ design/base/override/templates/full/article.tpl {$node.data_map|attribute(show,1)} 1 <= eZ {$node.data_map} data_map Sunday, March 28, 10
  24. 24. eZ design/base/override/templates/full/article.tpl {$node|creator(show,1)} 1 <= eZ {$node.creator} creator Sunday, March 28, 10
  25. 25. eZ data_map eZ Publish Sunday, March 28, 10
  26. 26. eZ • • • • • • • url • Export/Import • • • • • etc... • • • • • • • Sunday, March 28, 10
  27. 27. eZ Sunday, March 28, 10
  28. 28. Sunday, March 28, 10
  29. 29. Sunday, March 28, 10
  30. 30. + + + Sunday, March 28, 10
  31. 31. id: blog_top : yes id URL ? ? title text 1 255 1 URL url_title text 1 127 1 description textblock 5 ids ids identifier top 3 auto 2 id: blog_entry : yes id URL ? ? title text 1 255 1 URL url_title text 1 127 1 body XML xmlblock 5 image image 2MB copyright / text 1 127 opendate /datetime ids ids identifier entry 5 auto 2 id: blog_comment : no id URL ? ? title text 1 127 1 e-mail email text 1 127 body XML xmlblock 5 ids ids identifier comment 6 auto 1 Sunday, March 28, 10
  32. 32. Web ↓ ( Content ↓ Blog Sunday, March 28, 10
  33. 33. Sunday, March 28, 10
  34. 34. Sunday, March 28, 10
  35. 35. header gl_navi) content side_navi footer Sunday, March 28, 10
  36. 36. eZ • settings/ • .ini • • site.ini • /settings : • Sunday, March 28, 10
  37. 37. eZ override siteaccess siteacces pub site.ini siteacces cp site.ini site.ini .ini .append.php rewrite Sunday, March 28, 10
  38. 38. Siteaccess Sunday, March 28, 10
  39. 39. Siteaccess Siteaccess Siteaccess Sunday, March 28, 10
  40. 40. Siteaccess • Siteaccess site.ini (settings/override/site.ini.append.php) •Siteaccess settings/siteaccess • Siteaccess •settings/siteaccess siteaccess settings/override/site.ini.append.php [SiteAccessSettings] CheckValidity=false AvailableSiteAccessList[] AvailableSiteAccessList[]=pub AvailableSiteAccessList[]=cp Sunday, March 28, 10
  41. 41. Siteaccess eZ Publish settings/siteaccess pub Siteaccess cp Siteaccsss admin setup pub pub new Sunday, March 28, 10
  42. 42. Override site.ini Siteaccess [SiteAccessSettings] [SiteAccessSettings] CheckValidity=false CheckValidity=false AvailableSiteAccessList[] AvailableSiteAccessList[] AvailableSiteAccessList[]=pub AvailableSiteAccessList[]=pub AvailableSiteAccessList[]=cp AvailableSiteAccessList[]=cp AvailableSiteAccessList[]=new URL http://example/index.php/new/ Sunday, March 28, 10
  43. 43. Siteaccess Sunday, March 28, 10
  44. 44. pub Sunday, March 28, 10
  45. 45. Sunday, March 28, 10
  46. 46. Siteaccess new original Sunday, March 28, 10
  47. 47. design Plain eZ Publish design admin base plain_site standard admin base plain_site standard Sunday, March 28, 10
  48. 48. design eZ settings/siteaccess/pub/site.ini.append.php Siteaccess pub site.ini.append.php [DesignSettings] [DesignSettings] SiteDesign=plain_site AdditionalSiteDesignList[]=base 1. plain_site 2. base plain_site base Sunday, March 28, 10
  49. 49. siteaccess original standard [DesignSettings] SiteDesign=standard Sunday, March 28, 10
  50. 50. siteaccess design [DesignSettings] SiteDesign=plain_site AdditionalSiteDesignList[]=base [DesignSettings] SiteDesign=standard [DesignSettings] SiteDesign=admin Sunday, March 28, 10
  51. 51. new [DesignSettings] SiteDesign=plain_site AdditionalSiteDesignList[]=base header [DesignSettings] SiteDesign=new content side_navi footer [DesignSettings] SiteDesign=standard [DesignSettings] SiteDesign=admin Sunday, March 28, 10
  52. 52. new site.ini.append.php [DesignSettings] SiteDesign=new AdditionalSiteDesignList[]=base design plain_site new Sunday, March 28, 10
  53. 53. new Sunday, March 28, 10
  54. 54. override templates Sunday, March 28, 10
  55. 55. eZ Sunday, March 28, 10
  56. 56. Sunday, March 28, 10
  57. 57. eZ Sunday, March 28, 10
  58. 58. URL http://example.url/index.php/content/view/full/2 Sunday, March 28, 10
  59. 59. URL module Sunday, March 28, 10
  60. 60. http://example.url/index.php/content/view/full/2 node id 2 Sunday, March 28, 10
  61. 61. http://example.url/index.php/user/login Sunday, March 28, 10
  62. 62. http://example.url/index.php/content/edit/1 edit object id object id Sunday, March 28, 10
  63. 63. URL Sunday, March 28, 10
  64. 64. URL URL Sunday, March 28, 10
  65. 65. URL 1. eZ Publish URL 2. URL URL URL 3. URL eZ Publish URL 4. URL Kernel Sunday, March 28, 10
  66. 66. Sunday, March 28, 10
  67. 67. Sunday, March 28, 10
  68. 68. Debug output Template debug List of used templates Set Global(override) Sunday, March 28, 10
  69. 69. Debug output Sunday, March 28, 10
  70. 70. Template debug HTML Sunday, March 28, 10
  71. 71. List of used templates Sunday, March 28, 10
  72. 72. templates pagelayout.tpl pagelayout.tpl templates design/new/templates/pagelayout.tpl aaaaa Sunday, March 28, 10
  73. 73. pagelayout.tpl aaaaa pagelayout.tpl Sunday, March 28, 10
  74. 74. Pagelayout Module Result Point! pagelayout.tpl URL module_result Sunday, March 28, 10
  75. 75. Pagelayout $module_result.content aaaaa {$module_result.content} Sunday, March 28, 10
  76. 76. Pagelayout $module_result.content HTML Sunday, March 28, 10
  77. 77. $module_result.content node/view/full.tpl HTML node/view/full.tpl design/new/templates/node/view/full.tpl bbbbb Sunday, March 28, 10
  78. 78. bbbbb {$node|attribute(show,1)} Sunday, March 28, 10
  79. 79. $node Sunday, March 28, 10
  80. 80. attribute(show) attribute(show) http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_operators/miscellaneous/attribute {$ |attribute(show)} attribute(show,1) 1 attribute(show,2) 2 attribute(show) 2 {$node|attribute(show,1)} {$node.data_map|attribute(show)} Sunday, March 28, 10
  81. 81. . {$node.data_map.title.data_text} Sunday, March 28, 10
  82. 82. Sunday, March 28, 10
  83. 83. <h1>{$node.data_map.title.data_text}</h1> <p>{$node.data_map.description.data_text}</p> <p> ids {$node.data_map.body.value} </p> fullview fullview Sunday, March 28, 10
  84. 84. full design/new/templates/node/view/full.tpl HTML design/base/override/templates/full/folder.tpl Sunday, March 28, 10
  85. 85. siteaccess new override.ini.append.php node/view/full.tpl folder Sunday, March 28, 10
  86. 86. [full_folder] • Source=node/view/full.tpl • MatchFile=full/folder.tpl • Subdir=templates • Match[class_identifier]=folder • eZ Publish Sunday, March 28, 10
  87. 87. Sunday, March 28, 10
  88. 88. eZ Publish Sunday, March 28, 10
  89. 89. Sunday, March 28, 10
  90. 90. + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ Sunday, March 28, 10
  91. 91. + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ Sunday, March 28, 10
  92. 92. + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ + ○○○○○ Sunday, March 28, 10
  93. 93. include header gl_navi) content side_navi footer headtag <head></head> Sunday, March 28, 10
  94. 94. Sunday, March 28, 10

×