Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • javaclinic2 Friend
    #151251

    Hi , I want to move all css and js of telineII to a cdn. i have allready placed the js, css,images in the respective folders with exact same structure on cdn .

    Question: if the main site url is http://www.mainsite.com and the cdn is cdn.mainsite.com is there any easy say to change the CSS,JS urls to CDN an easy way ?

    Zeeshan

    Saguaros Moderator
    #344539

    Dear Zeeshan!

    I think that you should create a plugin using replace all current link ( http://mainsite.com) by cdn link for images, css, js . you try to find the plugin in the JED or access the joomlancers.com to find a expert code help you on this.

    here is a quick fix for you ( only apply for the ja template )
    1) pls open the file templates/ja_teline_ii/ja_templatetools_1.5.php
    and try to find the following codes:
    [PHP]return JURI::base().”templates/”.$this->template;[/PHP]

    and replace:
    [PHP]
    $base = preg_replace(‘#://#’, “://cnd.”,JURI::base() );
    return $base .”templates/”.$this->template;
    [/PHP]

    good luck

    javaclinic2 Friend
    #346653

    it does not work as the templates folder also contains php files which need to be parsed with php and on the cdn such as Amazon Cloudfront only deliver the plain files ..

    It would be nice to have such extension via Joomlart team . as now more and more moving to use cdn

    any suggestion

    Zeeshan

    Saguaros Moderator
    #346814

    Dear javaclinic2!

    <blockquote>with php and on the cdn such as Amazon </blockquote>

    In the next time, you will have a plugin to do this in the JA Extensions, Our Developers are developing this extension

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  Saguaros 14 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum