First of all, I'd like to thank you Wim for this excellent module. I am testing this currently and I am truly amazed, keep up the good work!
My question is hopefully simple: is there a way to rewrite image src urls in node bodies? On this site I'm currently working on there are editors with permission to use a WYSIWYG editor and IMCE together. They upload and present images in the node body directly (e.g. not via Imagefield and the like). I found that these images are not served from the CDN domain but the original site domain only. Is there a way to rewrite these image urls like an input filter would do?
I'm using Origin Pull mode and have patched core. Everything works fine and I only entered my CDN domain as configuration.
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 971712-3.patch | 973 bytes | wim leers |
| #2 | 971712-2.patch | 1.12 KB | wim leers |
Comments
Comment #1
wim leersI guess this functionality should be included before the final 2.0 release. I didn't need this yet, that's why it's not yet supported. It's a quite obvious requirement of course. If it doesn't require too much hackery, I'll include it in the next RC. Otherwise, it'll have to wait. But I'm pretty sure I'll get it done.
Comment #2
wim leersThis patch depends on the patch in #6 of #972344: Fallback integration method breaks some image tags (attributes before the src attribute are lost), so please apply that patch first.
Please test this patch then :)
Comment #3
wim leersNew patch, which actually works (due to an oversight in my previous tests, I wasn't actually testing the functionality provided by *this* patch). Also: less code duplication.
Depends on patch in #11 in #972344: Fallback integration method breaks some image tags (attributes before the src attribute are lost).
Comment #4
wim leersDue to lack of reviews, I went ahead and committed this patch: http://drupal.org/cvs?commit=454794.
Comment #5
melon commentedWim, I totally overlooked this issue.
The feature is totally great and working for me, thank you for implementing this.
Comment #6
wim leersGreat :) Thanks for the feedback after all!