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


> 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 Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to