Share » Forums » Setup & design » Cookie-less domain for storage directory

Cookie-less domain for storage directory

Cookie-less domain for storage directory

Thursday 24 June 2010 8:14:59 am - 1 reply

Author Message

Gaetano Giunta

Thursday 24 June 2010 9:11:52 am

1- You could create a new template operator that returns the hostname used for accessing design elements, and use it like this:

<img src="{imagehost()}{'myimage'|ezimage(no)}"/>

the downside of this approach is that it only work for new templates, not all the existing ones

1b- the same could be done with a single new template operator

<img src="{'myimage'|myezimage(no)}"/>

2- you could alter the existing ezdesign() and ezimage() template operators, but, afaict, that would be considered a 'hack' as there is no support to rewrite existing template operators except swapping the php class that implement them via the autoload mechanism

3- using a filter that is run on the complete page html after template rendering (look at xrowcdn extension for an example)

Principal Consultant International Business
Member of the Community Project Board

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu