This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have an images path configured in config.rb images_dir = "Content/images" when I deploy my site into a sub directory for production it's in the wrong path. The path should be configurable, or we should be able to specify this: images_dir = "~/Content/images" is support for this likely to be added? |
|
|
Web Workbench uses the config.rb to determine which folders should be picked up for Compass generation when you save a file and to determine where spriting should be enabled so I am a bit unsure how this would impact a site deployment? Can you elaborate on what the problem you are seeing is?
|
|
|
Hi, The config.rb file has a path for images that is not relative. Specifying "Content/images" renders css image urls that are tied to the root of the web site. When we deploy the site to production all the css urls are wrong, as the web site is deployed to "site.com/site", so the correct image urls should be "site.com/site/Content/images", and not "/Content/images". Not supporting relative paths is a problem because we have to manually edit and update the configuration file. Configuration files should never have hard coded root level paths by default. The paths need to be relative, or you need to use the standard visual studio escape for relative paths "~/Content/images" which will then render the urls' correctly. Mindscape doesn't currently support ~, I get "/~/Content/images" which is also not correct. I hope this clarifies the problem. Great product otherwise, worth every penny. Another nice to have would be to have the sass files located elsewhere in the project tree. Regards Craig. |
|
|
Hi Craig, Unfortunately there is no way for us to currently support this as the config.rb file is used directly by the Compass compiler which doesn't understand this syntax.
|
|