This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

osarzola
osarzola

Hi actually i am doing something like this:

<script src="{{ [
    '@jquery',
    '@framework',
    '@framework.extras',
    'assets/js/dist/app.js']|theme }}"></script>

And the results is:

<script src="http://miwebsite.com/combine/dc33ae9030553916daa0aef5a24285bb-1460675005"></script>

how can i change the default behaviour of |theme filter to another domain like a CDN

<script src="http://CDN-PULL-AREA.com/combine/dc33ae9030553916daa0aef5a24285bb-1460675005"></script>

Any clue?

daftspunky
daftspunky

I would consider registering your own |theme-like tag to rewrite the URL. See the Extending Twig section in the docs.

osarzola
osarzola

Thank you @daftspunk, so i have to register the extension in one of my plugins right?

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.