So I am playing with this and although I think its pretty awesome so far (I am bred from a designer's education not a technical lineage) I tried to upload a psd for a drupal theme and structure. However the download root was "sites" which threw off the href>'s I get a path that shows:
href="/sites/all/themes/psd2css/file.whatever"
Clearly there is no path like that in the drupal structure so what should I do other than go through the file and change all the hrefs.
When I download a wordpress zip it gives me the proper 'psd2css' root and all the phps are fine.
help.

Hi Illanillojr - Oh but there
Hi Illanillojr -
Oh but there definitely is a folder called /sites/all and Drupal themes (by Drupal convention, not mine) are supposed to go in the /sites/all/themes folder in a folder of their own name. /sites/all/themes/psd2css is exactly where your theme is supposed to end up. That's why the structure already exists in the zip file for you. Where did you install the theme?
Can you post the PSD file here?
--
Shaun
sorry about that...
my test site is:
http://llanillojr.net
L
Same "problem"
Well, you *could* use the path you're using, Shaun, but it gives some problems in certain situations.
sites/all/themes
This path is valid for all sites you run on your drupal installation. If you're running a single site installation, there probably won't be a problem. However, if you run multiple sites on the same drupal code base AND you want different pss2css themes for each one, you're out of luck. Then you would want ta place each theme in its site theme directory.
sites/www.example1.com/themes
sites/www.example2.com/themes
etc.
However, there's a really easy solution for you when you render the theme. Instead of rendering for instance
<?php print $base_path ?>sites/all/themes/psd2css/DD_belatedPNG_0.0.8a-min.js">
you could instead render
<?php print $base_path . $directory ?>/DD_belatedPNG_0.0.8a-min.js">
Problem solved! I did it by hand on my first test theme, it would really make my life easier if you could implement this in the rendering process instead.
Also, it would be very helpful to me, as a developer, if you could choose the name of the theme, maybe in a similar way to how you use _basename. It would make things a lot simpler if you want to provide several themes to the same site. (As I'm sure you know, drupal users can choose from several themes once logged in, if the administrator has made them available.)
emmio - Awesome!! Looks like
emmio -
Awesome!! Looks like that will work. The refactor will take an hour or so so I can't fix it right now ( have to go to work), but next time I have some psd2css online time I'm definitely going to implement that. Thanks!
--
Shaun