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!

CommentFileSizeAuthor
#3 971712-3.patch973 byteswim leers
#2 971712-2.patch1.12 KBwim leers

Comments

wim leers’s picture

Assigned: Unassigned » wim leers
Category: support » feature
Priority: Normal » Major

I 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.

wim leers’s picture

Component: Origin Pull mode » Module
Status: Active » Needs review
StatusFileSize
new1.12 KB

This 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 :)

wim leers’s picture

StatusFileSize
new973 bytes

New 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).

wim leers’s picture

Status: Needs review » Fixed

Due to lack of reviews, I went ahead and committed this patch: http://drupal.org/cvs?commit=454794.

melon’s picture

Wim, I totally overlooked this issue.
The feature is totally great and working for me, thank you for implementing this.

wim leers’s picture

Great :) Thanks for the feedback after all!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.