#78: "表示"メニューでデフォルトの表示形式を選択
Enable, configure and clean up the UI for TemplateMixin in ATContentTypes, giving us a "display" drop-down to select the way in which an object will be displayed. Enable a simplified way of registering new views for third-party products. 物が示される方法を選ぶために「表示」ドロップダウンをくださいて、ATContentTypesでTemplateMixinのためにUIを可能にして、構成して、きれいにしてください。サードパーティの製品に対する新しい計画を登録する簡略化された方法を可能にしてください。
"#78: "Display menu to select default view
Motivation 動機づけ
Let's get rid of CMFPhotoAlbum. :) You should be able to do this by having a CMFPhotoAlbumを取り除きましょう。:)あなたは、持つことによってこうすることができるはずです photoalbum photoalbum view of a folder and selecting this instead of the standard フォルダで、標準の代わりにこれを選んでいる表示 folderlisting folderlisting. The same applies to many other use cases. 。同じことは、多くの他の使用事件にあてはまります。 Proposal 提案
- Enable TemplateMixin and fix its UI. TemplateMixinを可能にして、そのUIを固定してください。 Add a "display" drop-down where these can be chosen これらが選ばれることができる「表示」ドロップダウンを加えてください Ghost this out when editing 編集とき、これを外へ代作してください * On folderish items, an option "select item" - shows browser, select default_page. folderishアイテム(オプション「選ばれたアイテム」)の上で — ブラウザーが示す — default_pageを選んでください。
We may also want a configlet for registering new templates with tool 我々は、また、ツールで新しいテンプレートを登録するために、configletが欲しいかもしれません Implementation 実施
- Content menu has been updated, and several scripts added which are used by them. Some unit tests added. 内容メニューはアップデートされました、そして、彼らによって使ういくつかのスクリプトは加わりました。いくらかの単位テストは加わりました。 browserDefault() has been made aware of IBrowserDefault and can get the selected the layout if necessary. browserDefault()は、IBrowserDefaultを知っているようにされて、必要に応じて選ぶレイアウトを得ることができます。 A new method isDefaultPage() was added to PloneTool used to determine if an object is the default_page/index_html of its parent folder. 新しい方法isDefaultPage()は、物がその親のようなフォルダのdefault_page/index_htmlであるかどうか決定するのに用いられるPloneToolに加えられました。
NOTE: There are two branches, one in ATCT and one in CMFPlone, and these two branches are shared by PLIPs 77 and 78, since they are closely related and were developed in parallel. The branches are: 注:2つの枝(ATCTの1とCMFPloneの1)があります、そして、彼らが密接に関連があって、平行に発育した時から、これらの2つの枝はPLIPs 77と78によって共有されます。枝は、以下の通りです
- https://svn.plone.org/svn/plone/CMFPlone/branches/uiteam-plip77-78-content-menu-browser-default-refactoring https://svn.plone.org/svn/plone/CMFPlone/branches/uiteam-plip77-78-content-menu-browser-default-refactoring * https://svn.plone.org/svn/plone/ATContentTypes/branches/uiteam-plip77-78-content-menu-browser-default-refactoring https://svn.plone.org/svn/plone/ATContentTypes/branches/uiteam-plip77-78-content-menu-browser-default-refactoring
On the "refectoring" branch, dependencies have been refactored so that the marker interfaces are in CMFPlone, which ATCT optionally imports if HAS_PLONE2 is true. ConstrainTypesMixin is still defined in ATCT. 「refectoring している」枝の上で、目印インターフェースがCMFPloneであるように、属国はrefactoredされました。そして、HAS_PLONE2が真実ならば、それをATCTは任意に輸入します。ConstrainTypesMixinは、ATCTでまだ定められます。
In the long run, the interface could be pushed down to CMFCore, and the mixin down to Archetypes. 長い目で見れば、インターフェースはCMFCoreとArchetypesまでのmixinに押し下げられることができました。