ezjscore with css and images on separate host?

ezjscore with css and images on separate host?

Tuesday 08 June 2010 7:14:37 pm - 11 replies

Author Message

Marko Žmak

Tuesday 15 June 2010 4:54:28 am

Anyone knows the answer?

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

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Marko Žmak

Thursday 17 June 2010 10:23:45 am

OK, I've added this as an enhanchement:

http://issues.ez.no/IssueView.php?Id=16920

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Nicolas Pastorino

Thursday 17 June 2010 10:55:56 am

Excellent.

Cheers !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

André R.

Friday 18 June 2010 6:00:46 am

This is already supported guys!

Take a look in ezjscore.ini [Packer]CustomHosts[]

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Nicolas Pastorino

Friday 18 June 2010 7:11:32 am

Man this ezjscore extension rocks even more than i thought !

Thanks for the feedback Andre !

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Gaetano Giunta

Saturday 19 June 2010 3:31:30 am

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:

http://projects.ez.no/xrowcdn/forum/general/is_custom_cdn_possible

and I'm waiting for an answer.

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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.