[Zope] Zope document root or where do I keep my swfobject in Zope
Tres Seaver
tseaver at palladion.com
Tue Aug 17 13:15:17 EDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tapas Mishra wrote:
> I am having a javascript which I am using in my site.
> My server is Zope I am not able to find where should I keep the
> javascript in it.
> Can any one help?
One technique is to can create a File object in the ZMI and upload your
javascript to it:
http://docs.zope.org/zope2/zope2book/BasicObject.html#content-objects-folders-files-and-images
To serve the file from the filesystem, you need either to use one of the
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" />
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at 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
iEYEARECAAYFAkxqw6EACgkQ+gerLs4ltQ6HcACaA76baszIQ8Wl1hvzHOk9ATvA
358AoKzmziSeeT1aPxqE7XugYL2Nm38B
=BX8c
-----END PGP SIGNATURE-----
More information about the Zope
mailing list