Results 1 to 4 of 4

Thread: Help for new custom theme

  1. #1
    mr_totov is offline Junior Member
    Join Date
    Nov 2011
    Posts
    1

    Default Help for new custom theme

    Hi, I want to create a new custom theme in sugarCE, using enheritance. So I created a new folder "mytheme" in custom\themes. The themedef.php contains
    PHP Code:
    $themedef = array(
        
    'name'  => "MyTheme",
        
    'description' => "My custom theme",
        
    'parentTheme' => "Sugar5",
        
    'version' => array(
            
    'regex_matches' => array('6\.*.*'),
            ),
        
    'group_tabs' => true,
        ); 
    and I copied and modified a gif image from the default template (and putted in mytheme\images, and modified to test if it changes in my layout.
    I erased all the files inside cache\themes.
    Then, in the admin section I activated the custom theme, but the inheritance seems to not work.
    I also tried to create a new theme directly in the themes directory, with no success.

    What i do wrong?

    I'm working in WindowsVista using Xampp.

  2. #2
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Help for new custom theme

    Did you check the theme setting in your users settings?
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  3. #3
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Help for new custom theme

    Indeed you also could tailor your custom theme to instead of inheritence the desired settings, just duplicate it inside your theme. Then you will have sure whether the issue is with inheritence or with some theme configuration.

    Once it is working with duplicated code, you try again the inheritence step.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  4. #4
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Vienna
    Posts
    939

    Default Re: Help for new custom theme

    The Folder you created is mytheme and the Name you gave the theme is MyTheme. Assuming this is Linux based the directory is case sensitive. Windows is not - which most likely is the reason that it worked on Windows but on Linux. So either change the dir to MyTheme or the themename to mytheme.

    christian.

    Quote Originally Posted by mr_totov View Post
    Hi, I want to create a new custom theme in sugarCE, using enheritance. So I created a new folder "mytheme" in custom\themes. The themedef.php contains
    PHP Code:
    $themedef = array(
        
    'name'  => "MyTheme",
        
    'description' => "My custom theme",
        
    'parentTheme' => "Sugar5",
        
    'version' => array(
            
    'regex_matches' => array('6\.*.*'),
            ),
        
    'group_tabs' => true,
        ); 
    and I copied and modified a gif image from the default template (and putted in mytheme\images, and modified to test if it changes in my layout.
    I erased all the files inside cache\themes.
    Then, in the admin section I activated the custom theme, but the inheritance seems to not work.
    I also tried to create a new theme directly in the themes directory, with no success.

    What i do wrong?

    I'm working in WindowsVista using Xampp.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Custom Theme problem 6.2
    By ewpeanutty in forum Developer Help
    Replies: 10
    Last Post: 2011-09-01, 06:50 PM
  2. custom theme
    By impacjapan in forum Classifieds
    Replies: 7
    Last Post: 2011-05-17, 09:14 AM
  3. include custom CSS or JS files in theme
    By serbanghita in forum Developer Help
    Replies: 8
    Last Post: 2010-05-13, 04:52 AM
  4. Creating custom theme for Sugar 5
    By fedepia in forum Help
    Replies: 2
    Last Post: 2008-05-10, 10:05 PM
  5. Replies: 2
    Last Post: 2007-10-27, 04:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •