Re: PEAR and static files
Henri Bergius <henri.bergius-ZpG/[email protected]> Fri, 17 Feb 2006 18:37:53 +0200
| Newsgroups | gmane.comp.web.midgard.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 17, 2006, at 17:20, Henri Bergius wrote: > i.e. there is an extra "static" in the path coming from the fact > that the files are in a "static" dir under the component. I'll > continue looking for solutions... Updated: Jukka noticed the "install-as" attribute in PEAR package config which solved the issue... # pear config-get web_dir /sw/share/midgard/midcom/static # ls /sw/share/midgard/midcom/static/midcom.helper.datamanager/ communityhtml datamanager.css jscript- calendar tiny_mce contactchooser_ajax.js htmlarea tablerowadder.js How to package static files, then? Quite easily. Simply symlink the static directory of the component as "static" under the component itself. And obviously when making new components create the static directory to correct location in the first place. Now only thing to solve any more is whether MidCOM itself needs to ship static files or not. Get the latest pear-package.php for static file handling goodness... :-) /Bergie Henri Bergius Consultant Partner, Nemein henri.bergius-ZpG/[email protected] Midgard CMS www.midgard-project.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFD9fvkNkT8k497k9IRAvmiAJ9CHJENzwiE+ghMKQobG5YaPFW7WACfTKxI WfsKKqxTZSaIy7iKXuuLOyc= =tPr3 -----END PGP SIGNATURE-----