-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tapas Mishra wrote: > On Tue, Aug 17, 2010 at 10:45 PM, Tres Seaver <tsea...@palladion.com> wrote: >> add-on "external file" products (google "zope external file"), or else >> register the file as a "resource" in a product's configure.zcml:: >> >> <browser:resource name="my.js" file="my.js" /> >> > > I am having following files as zcml files
<snip> > which one are you pointing? It depends on what is going to use the SWF file: - - If a package has templates which reference that file directly, then I would place the SWF file in a subdirectory of that package and register it as a resource in the configure.zcml of that package. - - If you expect the SWF file to be referenced from content, then I would register it as a resource in site.zcml. In your case, the parts/instance/etc/site.zcml is the file, but it gets generated by the recipe which builds that part (maybe plone.recipe.zope2instance?) so you need to check with that recipe's documentation to find out how to add stuff to it safely. - - If you want to mange it in the ZODB like other content, just upload it through the ZMI or the Plone folder contents UI, and skip the ZCML bit altogether. Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkx1RdQACgkQ+gerLs4ltQ5JbwCfXl79s/k7uoqnKZh9DVfGUcZ8 +1gAn25vOyLkpbFKQ3AOS6oIxW7htR+S =KVya -----END PGP SIGNATURE----- _______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )