--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
Nicolas Pastorino
Tuesday 15 June 2010 5:07:52 am
Hi Marko,
While i did this on a project, by replacing the ezdesign and ezimage operators directly in the template with other operators (ezdesign_static & ezimage_static), when using ezjscore you may need to dive deeper.
Taking a look at the
ezjscPacker::buildStylesheetTag( .. )
method, and potentially overriding it of possible, could help. A good alternative is to post an enhancement request in this regard, there : http://issues.ez.no/ProjectSelect.php?Id=3
Cheers !
--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board
Side note: eZ Publish also supports filters that can be run on the rendered page (pagelayout + module view) as last step.
IIrc the xrowcdn extension uses this feature to rewrite the urls generated by eZ to point them to a CDN.
Might be useful for scenarios where not only the ezjscore urls need to be rewritten (even though I'd go for adding a new tpl operator and use it prepended to ezimage/ezdesign instead)
Principal Consultant International Business
Member of the Community Project Board
Marko Žmak
Sunday 20 June 2010 9:40:59 am
This is already supported guys!
Take a look in ezjscore.ini [Packer]CustomHosts[]
Andre, I have eZP 4.1.3 and I don't have this setting in ezjscore.ini. From which version is available?
Another question: Will this work without problems for font urls in CSS? (thinking of @font-face)
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
Marko Žmak
Sunday 20 June 2010 9:45:24 am
Gaetano, I know about xrowcdn and I'm already planning to use it. The only question is if I can use it with my "kind of" CDN. I posted the question in the forum:
In addition: where can I find some docs about this filters that can be run on the rendered page?
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
Nicolas OTTAVI
Wednesday 23 June 2010 4:55:24 pm
Hi Hubert,
xrowcdn can work fine for your need, I was just looking for this too. This is how i did. Install the xrowcdn extension
In the xrowcdn.ini file I changed all the Replacement=http://<uniquecloudfrontname>.cloudfront.net with the url I have for "my" own cdn and put put UseGZIP=enabled
I've added the OutputFilter in my siteaccess site.ini file
Backuped the db just in case
generate the autoload again
emptied the cache, and it was ok.
Hope it helps,
Nicolas
Marko Žmak
Thursday 24 June 2010 2:34:19 am
Another question:
Does ezjscore support output filters?
For example if I want to use some of my custom tags in CSS and parse them at the output.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
You must be logged in to post messages in this topic!