2010-12-31 4 views
2

Sugar CRM 6.1.0이라는 새로운 테마를 만들고 싶습니다.SugarCRM 6.1.0에 대한 새 테마를 만드는 방법

기본 테마를 복사했지만 js, css 같은 리소스는 여전히 기본 테마에서 제공됩니다.

config.php에서 기본 테마를 변경했습니다.

+0

그래서 무엇이 문제입니까? – StasM

+0

또한 관리자 모드에서 개발자 모드를 사용하도록 설정하여 캐시를 사용하도록 설정하지 않았습니다. – Eitrix

답변

2

가장 쉬운 방법은 Sugar 테마 중 하나를 사용하고 필요에 맞게 수정하는 것입니다.

  • 복사/테마/설탕/*에/사용자 정의/테마/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을 대체합니다.

관련 문제