Results 1 to 5 of 5

Thread: How to add a field to Edit and Details layout in Knowledge Base Module?

  1. #1
    inas miles is offline Senior Member
    Join Date
    Nov 2009
    Posts
    38

    Exclamation How to add a field to Edit and Details layout in Knowledge Base Module?

    Hello,
    In knowledge base module, I want the publish date field to be added to
    Edit and Details layouts of Articles.
    as there are no Edit and Details layouts for knowledge base in Studio,
    can you please advice how I can add those fields?

    Thanks,
    Inas

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: How to add a field to Edit and Details layout in Knowledge Base Module?

    Since KB works in legacy mode still you would have to manually edit the modules/KBDocuments/EditView.html and EditView.php files. Same with the DetailView.html and DetailView.php files.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: How to add a field to Edit and Details layout in Knowledge Base Module?

    I just discovered that KB wasn't in studio as well (version 6.4).

    Any guidance on what's required to modify a legacy mode template?

    Do you only need to modify the .html file or are changes also required to EditView.php.
    An example of how to add a checkbox field would be great. In looking at the code it doesn't appear to be as simple as changing the label variable and field name.

    I have a checkbox called is_support_wiki_c which designates whether it's ok to display on support wiki or not.

    Below is the code for the enterprise option of Is External Option. The parts that are bolded I'm not sure what i'd put in there.

    Code:
          <td width="15%" scope="row" colspan=1>{INTERNAL_HTML}
        	    <span sugar='slot3'>{MOD.LBL_IS_EXTERNAL_ARTICLE}</span sugar='slot'>
            &nbsp;</td>
      	    <td width="35%" ><span sugar='slot3b'>&nbsp;
    	  	    <input name="is_external" id="is_external" tabindex='1' onclick="SUGAR.kb.externalChecked('{DEFAULT_TEAM_NAME}','{DEFAULT_TEAM_ID}');" class="checkbox" type="checkbox" {IS_EXTERNAL_ARTICLE}/></span sugar='slot'>
      	    &nbsp;</td>
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: How to add a field to Edit and Details layout in Knowledge Base Module?

    You are going to have to edit both to add a field to a view. You would move both files to the custom directory (custom/modules/KBDocuments/EditView.html and custom/modules/KBDocuments/EditView.php)
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    blak3r's Avatar
    blak3r is offline Sugar Community Member
    Join Date
    Sep 2010
    Location
    Maryland
    Posts
    240

    Default Re: How to add a field to Edit and Details layout in Knowledge Base Module?

    Aa[INDAsT][/INDENT]
    Quote Originally Posted by kbrill View Post
    You are going to have to edit both to add a field to a view. You would move both files to the custom directory (custom/modules/KBDocuments/EditView.html and custom/modules/KBDocuments/EditView.php)
    Not to be helpless... But do you have an example of how to add a field to a view. In my post I mentioned a couple things I wasn't really sure about how to do it for a checkbox.
    Sugar 6 Pro, On-Site (Apache 2.0, MySQL 5.1, PHP 5.2.6)

    My SugarForge Projects:
    Email To Sugar - Archive emails in any mail client by adding a BCC line.
    Task Dashlets Plus- Adds custom dashlets for: tasks assigned to me by others, delegated tasks, overdue tasks, and open tasks past start date

    www.blakerobertson.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2009-04-22, 07:40 AM
  2. Knowledge Base for Ver 5.0
    By otelem in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-11-16, 06:15 PM
  3. Replies: 5
    Last Post: 2007-05-21, 12:59 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
  •