Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Tips / Resource Folders

Resource Folders

Icon Image 之類的資源,在註冊之後,可透過 ++resource++my.pkg/my-icon.png 網址來存取,用來取代 Skin Layer 功能。

Resource Registration

zope.browserresource

<browser:resource
  name="myfile"
  file="/path/to/static.file" />

<browser:resourceDirectory
  name="main-images"
  directory="/path/to/images" />

resourceDirectory

MimetypesRegistry Icons are now a Browser Resource Directory instead of Skins Folder https://stackoverflow.com/questions/54803824/add-mime-type-based-on-name-rather-than-extension

SVG Icon

Dexterity Content Type Icon 在 Plone5 透過 CSS Fontello 來設定

Override Thumb Size for List View

Icon Files with Apache Rewrite Rule