Re: AW: AW: CDN usage with ZOPE/ZMS?
"Diez B. Roggisch" <[email protected]> Thu, 14 Jan 2010 19:19:53 +0100
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thursday 14 January 2010 18:34:19 Dr. Frank Hoffmann wrote: > Hi, > if your CDN publisher provides the image links as a XML stream: > The ZMS API functions für processing the stream are: > 1. http_import(): to set the xml stream into a variable > 2. xmlNodeSet(): to transform the stream into a dict > 3. xmlParse(): to get an element's content/value Not really. We upload images to specific locations, and thus they become available under a generic URL, like http://cdn1.ableton.com/resource/63cdccda30f561c58b93430ccf1acc84/banner-discounts-sticker.png So what we need is a way to interfer with the getHREF function (it's called differently, but you hopefully know what I mean) that will render an image's src-attribute. This must replace the local link with the CDN-link. Regards, Diez