I was wondering if anyone gave this some extra thought (preferably the developers at EllisLab)? The ideal situation would be to have a directory called css/img/js in your module directory to simplify installation, but how does one get the path to that folder in a foolproof way? I intend to use this module I’m developing myself, but making things easier is never a bad thing…
There is no fool proof way unless you use the themes directory. I have rebuilt most of my extensions using this technique and it works well.
The main issue with that approach is that the pages will be much bigger to download and the browser cannot cache the resource.
True… But for me this works for now, since I only intend to add only a few lines of css, but I wanted to keep it separate from my backend.
I guess it would be a bit much to ask the EE-developers to implement something like this in the current version since 2.0 is already on its way. Let’s just hope it gets easier in 2.0 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.