Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
CSS Injector is currently storing the file name including the site's files directory path in the database for a given rule. I'm working on a project where we do a lot of copying of various sites for testing and development purposes where the files directory path is never the same. Every time we copy a site we have to either go update the database with the correct path, or manually reload the styles in the admin interface.
I'm submitting a patch that removes the file_path field from the database all together. Please consider merging these changes into the project.
Comment | File | Size | Author |
---|---|---|---|
#1 | remove_sites_files_path.patch.txt | 4.2 KB | jhuckabee |
remove_sites_files_path.patch | 4.12 KB | jhuckabee | |
Comments
Comment #1
jhuckabee CreditAttribution: jhuckabee commentedPrevious patch had an issue with saving new rules. Attaching a new patch.
Comment #2
BeatnikDude CreditAttribution: BeatnikDude commentedI have yet to try the patch, but will. It is a good idea as stated.
Comment #3
timb CreditAttribution: timb commentedThe patch works for me. I second the idea of integrating it into the module.
Comment #4
RobLoachI ran into this when migrating over a site. I'll test this with the upgrade path as well. Pushing to critical because it breaks sites during migration.
Comment #5
BenK CreditAttribution: BenK commentedThe patch shown in #1 works perfectly for me. This functionality is very much needed for anyone who ever moves a site from a development server to a production server (and changes the file directory path in the process).
Can we get this committed to the module ASAP?
Cheers,
Ben
Comment #6
mrfelton CreditAttribution: mrfelton commentedWorks for me. Several good reviews here. Please lets get this committed. :)
Comment #7
eaton CreditAttribution: eaton commentedCommittted. Thanks!