test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • woomaa Friend
    #153835

    I prefer T3 over Gantry but Gantry has one BIG advantage: I can easy integrate it with jms2win multi site component and have separate params.ini for each sub-site. Is it possible to integrate T3 with this component.

    Or where in code can I search for saving to “params.ini” file?

    I tried with file plugins/system/jat3core/ajax.php:

    line 594:

    $file = $client->path.DS.'templates'.DS.$template.DS.'params.ini';

    changed to:

    if(defined('MULTISITES_ID')) {
    return constant('MULTISITES_ID');
    } else {
    return ':master_db:';
    }
    if ( defined( 'MULTISITES_ID')) {
    $file = T3Path::path(T3_TEMPLATE).DS.'params_' .MULTISITES_ID .'.ini';
    jimport('joomla.filesystem.file');
    if ( !JFile::exists( $file)) {
    $file = T3Path::path(T3_TEMPLATE).DS.'params.ini';
    }
    }
    else {
    $file = T3Path::path(T3_TEMPLATE).DS.'params.ini';
    }

    same in other files with “params.ini” text but it doesn’t work. Can any one help me with this?

    EDIT:
    I solved the problem (see next post) – could you insert this code in future releases? It could be very helpful.

    woomaa Friend
    #353775

    OK, I figured it out:

    Need to change three files:

    In plugins/system/jat3core/ajax.php change line 594:
    [PHP]$file = $client->path.DS.’templates’.DS.$template.DS.’params.ini’;[/PHP]

    into this:
    [PHP]$file = $client->path.DS.’templates’.DS.$template.DS.’params_’.MULTISITES_ID.’.ini’;
    }
    else
    {
    $file = $client->path.DS.’templates’.DS.$template.DS.’params.ini’;
    }[/PHP]

    In plugins/system/jat3core/common.php change line 448:
    [PHP]$file = T3Path::path(T3_TEMPLATE).DS.’params.ini’;[/PHP]

    into this:
    [PHP]if ( defined( ‘MULTISITES_ID’)) {
    $file = T3Path::path(T3_TEMPLATE).DS.’params_’.MULTISITES_ID.’.ini’;
    }
    else
    {
    $file = T3Path::path(T3_TEMPLATE).DS.’params.ini’;
    }
    [/PHP]

    In plugins/system/jat3core/admin/util.php change line 23:
    [PHP]$path = JPATH_SITE.DS.’templates’.DS.$this->template.DS.’params.ini’;[/PHP]

    into
    [PHP]if ( defined( ‘MULTISITES_ID’)) {
    $path = JPATH_SITE.DS.’templates’.DS.$this->template.DS.’params_’.MULTISITES_ID.’.ini’;
    }
    else
    {
    $path = JPATH_SITE.DS.’templates’.DS.$this->template.DS.’params.ini’;
    }[/PHP]

    After this changes in your template directory will exist file params.ini for master site and files params_(multisite_id).ini for every slave site. So you can share one t3 template for all your sites maintaned with jms2win Multi Site component. 😉

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

This topic contains 2 replies, has 1 voice, and was last updated by  woomaa 14 years, 4 months ago.

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