Results 1 to 8 of 8

Thread: Changing layout

  1. #1
    amni is offline Junior Member
    Join Date
    Aug 2011
    Posts
    2

    Default Changing layout

    HI Ppl,
    I a new user to Sugar community edition. I need to know if we can change the layout of Sugar pages. basically i want to remove the header (the one that has logo and welcome, employees etc).
    Is that possible, if yes, is there any developer guide or links where it is explained.

    thanks....

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

    Default Re: Changing layout

    You can change the appearance of Sugar in two ways:
    1. You can change an existing theme or create your own theme. CSS gives you many options to change the look of the pages.
    2. You could change the code of Sugar itself.

    The first one is what I'd recommend. It needs lesser knowledge of the internal stuff of Sugar and upgrades will be easier to manage.
    For a start you could read the Developer's guide (for 1. especially chapter "Themes") which you could find here: Sugar Community Edition Documentation | Open Source Business & Social CRM - SugarCRM.
    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: Changing layout

    If you go to the second suggestion, the file include/MVC/view/SugarView.php contains some functions which you can customize to change sugar layout of header and footer.
    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
    amni is offline Junior Member
    Join Date
    Aug 2011
    Posts
    2

    Default Re: Changing layout

    Thanks for the response.

    I have to remove the header, so I believe option 2 is what i needed.


    thanks.

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

    Default Re: Changing layout

    With solution 1) you can remove the header by adding the following style definition to themes/Sugar5/css/style.css (assuming you are using the default theme):
    PHP Code:
    #header {
       
    displaynone;

    (tested with Sugar 620 CE)
    If you copy the file to custom/themes/Sugar5/css it should be upgrade safe.
    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

  6. #6
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: Changing layout

    I know you're inquiring about the header, but as people are also mentioning the footer here, note that there are legal issues associated with removing the "Powered by SugarCRM" image at the bottom of the page.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  7. #7
    saad.ghouri is offline Member
    Join Date
    Jan 2012
    Location
    Lahore, Pakistan
    Posts
    8

    Default Re: Changing layout

    hi
    i m using javascript file in editview.

    in that js file i m using ( document.getElementById('csr_location').style.disp lay='none'; )
    this hides the current field but it also changes all the layout of the page.
    can anyone plz help

    thanx

  8. #8
    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: Changing layout

    Where are you including this javascript file?
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Changing form layout
    By fabiog in forum Developer Help
    Replies: 1
    Last Post: 2009-09-12, 05:35 AM
  2. Changing the search layout
    By Fay in forum Help
    Replies: 5
    Last Post: 2009-08-06, 09:37 AM
  3. Replies: 16
    Last Post: 2008-04-24, 06:20 PM
  4. changing contact layout
    By slubach in forum Help
    Replies: 0
    Last Post: 2007-03-19, 12:37 PM

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
  •