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.
I copied some code from Media module to import multiple fonts at once.
With this, I can put all local fonts in sites/all/fonts, and then using Batch Import to import them.
Take a while to figure out how to convert from absolute path to URI...
Please give me feedback, bug reports...
Kinds and Regards
Comment | File | Size | Author |
---|---|---|---|
batch-patch.diff | 9.64 KB | dinhtrung | |
Comments
Comment #1
sreynen CreditAttribution: sreynen commentedThis is a good idea, but I think it should be a separate module. The current local font import form does uploads via HTTP in the browser, which is much simpler than uploading via FTP and then referencing the directory. The current import also has more options than this batch import for styles and weights. Rather than remove that functionality or try to get batch imports to work more like single imports, I think we should have two distinct modules.
dinhtrung, it looks like you haven't created any modules yet. I'd be happy to help you with this if you want.
Comment #2
Chris CharltonI just posted an idea at http://drupal.org/node/1825494 and subscribed to this issue, so I'll be keen to see where this can go.
Comment #3
Neslee Canil Pinto