Results 1 to 2 of 2

Thread: Customising Edit Views with TPLs

  1. #1
    matt.stannard is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    57

    Default Customising Edit Views with TPLs

    Hi there,

    I've written a number of custom modules and laid out the fields using the Studio, what I want to do now is go a little bit further.

    Can I specify the actual HTML generate as I want to put some AJAX in the edit view. What I am going to do is hide a textarea and display its contents in a DIV block. When a user clicks on a field I want it to copy the value to the textarea / div block - this will only be updated when the form is submitted.

    I've noticed some of the SugarCRM modules have tpl files, can I specify a TPL file for my module?
    --
    Sugar Version 5.2.0l (Build 5843)
    --
    Matt Stannard
    IT Strategist
    mattstannard.com

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Customising Edit Views with TPLs

    Yes, it is possible to do that. You can completely override the edit, detail or listview.

    The basic premise is to create a custom view.edit.php file which in turn points to the custom TPL file you want to use.

    There are a couple of examples of it within the forums (searching for view.edit.php should yield them). You should also check out the Developer site as I believe it too contains some examples: http://developer.sugarcrm.com
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customising Views
    By zen063 in forum Help
    Replies: 1
    Last Post: 2007-08-31, 12:21 PM
  2. Edit Views Should Follow List Views
    By JayL in forum Help
    Replies: 2
    Last Post: 2007-01-27, 03:41 PM
  3. Customising views with Studio
    By goepf in forum Help
    Replies: 0
    Last Post: 2006-04-14, 02:40 PM

Tags for this Thread

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
  •