2010-12-31 2 views
2

新しいテーマSugar CRM 6.1.0を作成したいと思います。SugarCRM 6.1.0の新しいテーマを作成する方法

私はデフォルトテーマをコピーしましたが、js、cssなどのリソースはまだデフォルトテーマから来ています。

私はconfig.phpのデフォルトテーマを変更しました。

+0

質問は何ですか? – StasM

+0

また、管理者のデベロッパーモードをオンにして、キャッシュをオンにしていない – Eitrix

答えて

2

最も簡単なことは、Sugarテーマの1つを使用して、これをあなたのニーズに合わせて変更することです。

  • コピー/テーマ/砂糖/ *へ/カスタム/テーマ/ myTheme/
  • は、あなたのニーズにthemedef.phpファイルを変更します、

    $themedef = array(
    'name' => "MySugar", // theme name 
    'description' => "Sugar theme for me", // optional, short description of the theme 
    'parentTheme' => "Sugar", // name of the theme this theme inherits from, in this case the Sugar theme 
    ); 
    

    parentThemeはオプションであり、場合供給されませんSugarのデフォルトテーマが使用されています。

  • /custom/themes/myThemeのすべてのリソースがparentThemeを上書きします。詳細情報については

は、以下を参照してくださいhttp://developers.sugarcrm.com/docs/OS/6.1/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%204%20Customizing%20Sugar.html#9000992

0

あなただけのテーマを拡張し、必要なこまごまとして追加し、全体のテーマをコピーする必要はありません。だからではなく、上記の、次の操作を行います。

  • コピー/テーマ/砂糖/ *へ/カスタム/テーマ/ myTheme/
  • $themedef = array(
        'name' => "MySugar", // theme name 
        'description' => "Sugar theme for me", // optional, short description of the theme 
        'parentTheme' => "Sugar", // name of the theme this theme inherits from, in this case the Sugar theme 
        ); 
    

を次のようにthemedef.phpファイルを変更します。/custom/themes/myThemeディレクトリに追加するすべてのリソースは、parentThemeを上書きします。

関連する問題