Results 1 to 8 of 8

Thread: Data Type: HTML? Does this work?

  1. #1
    jjwdesign's Avatar
    jjwdesign is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Orlando, FL
    Posts
    503

    Default Data Type: HTML? Does this work?

    Data Type: Text/HTML? Do these work as intended with the Module Builder and/or Studio?

    I'm having a problem choosing the right data type, if it exists. I'm a bit confused as to the HTML data type. See image attached to this post.

    I have a field of data that should be HTML. For the detailed view, it needs to be viewed in by the browser as HTML; not HTML escaped/encoded in any way. I don't need to see the code. I need to see the resulting display of the HTML as the browser interprets it. This would be very similar to the Email Message Body view. In the studio (see image attached) it teases me into thinking that the HTML Editor (tinymce) will be available to edit the content of the field, but it only allows for a default value.

    For the edit view, I am trying to figure out of there is a way to use the Editor (tinymce) to edit the HTML for the field. For an HTML field, it makes sense to me that you would be using the tinymce editor (or FCKeditor, etc.) to edit the HTML. Does this kind of field exist?

    Thanks.
    Attached Images Attached Images  
    Last edited by jjwdesign; 2008-05-21 at 01:31 PM. Reason: update
    SugarForge Projects:
    JJWDesign Google Maps
    JJWDesign Tools and Reports

    Follow my blog postings at JJW Design.

  2. #2
    jjwdesign's Avatar
    jjwdesign is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Orlando, FL
    Posts
    503

    Default Re: Data Type: HTML? Does this work?

    From the MVC wiki document.

    Html: The Html field is a simple field that renders readonly content after the contet is run through the from_html method of include/utils/db_utils.php to encode entity references to their HTML characters (i.e. ">" => ">"). The rendering of the Html field type should be handle by the custom field logic within SugarCRM.
    Why is this field read only? Wouldn't we want to allow people to edit this field type using an editor (tinymce)? What custom field logic can be applied and where?

    Thanks in advance.
    SugarForge Projects:
    JJWDesign Google Maps
    JJWDesign Tools and Reports

    Follow my blog postings at JJW Design.

  3. #3
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Data Type: HTML? Does this work?

    One of the thigns that you will find is that Sugar does not yet fully support or validate some of the data types it gives you.

    Another one is the phonenumber data type. The Javascript is there to validate it but Sugar never calls it! Much of the support is still in the process of being added. You have likely found one of them!

    Hopefully one of the Sugar Team members will pop in and clarify further,
    Paris

  4. #4
    jjwdesign's Avatar
    jjwdesign is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Orlando, FL
    Posts
    503

    Default Re: Data Type: HTML? Does this work?

    What about displaying the field as HTML and not HTML-escaped text?

    Does anyone know how to change the logic for this field type?
    SugarForge Projects:
    JJWDesign Google Maps
    JJWDesign Tools and Reports

    Follow my blog postings at JJW Design.

  5. #5
    dogfuel is offline Sugar Community Member
    Join Date
    Oct 2007
    Posts
    80

    Default Re: Data Type: HTML? Does this work?

    I too am stumped on this one ... trying to insert html with an ETL tool and having no luck even finding where it is stored.

  6. #6
    jjwdesign's Avatar
    jjwdesign is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Orlando, FL
    Posts
    503

    Default Re: Data Type: HTML? Does this work?

    Maybe a SugarCRM guru can shed some light on this topic?
    SugarForge Projects:
    JJWDesign Google Maps
    JJWDesign Tools and Reports

    Follow my blog postings at JJW Design.

  7. #7
    jjwdesign's Avatar
    jjwdesign is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Orlando, FL
    Posts
    503

    Default Re: Data Type: HTML? Does this work?

    I just found this great pair of videos. Thank you Majed Itani, this helped me greatly!

    A few weeks back we did a live webcast with SugarCRM lead architect Majed Itani on building a complex new module in Sugar 5.0. In the session, Majed stepped through building the basic shell of a blogs module with Module Builder and then customizing the code to make it a true blogs module.

    We have posted the session into two separate recordings in the Sugar Developers Zone.

    Direct links to the recordings:
    Bending Sugar with Majed Itani - Part 1 & Part 2

    If you are a Sugar developer, these sessions are well worth watching!
    SugarForge Projects:
    JJWDesign Google Maps
    JJWDesign Tools and Reports

    Follow my blog postings at JJW Design.

  8. #8
    ashishmathur is offline Senior Member
    Join Date
    Aug 2008
    Posts
    37

    Default Re: Data Type: HTML? Does this work?

    You can edit the value of html type field directly in database table "fields_meta_data".

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Relationship data in subpanel
    By lvangool in forum Developer Help
    Replies: 18
    Last Post: 2009-01-12, 05:41 AM
  2. Viewing HTML Emails
    By zacheos in forum Help
    Replies: 8
    Last Post: 2008-07-09, 06:10 PM
  3. Syncing data INTO Sugar
    By mhayhurst in forum Developer Help
    Replies: 2
    Last Post: 2008-02-03, 06:38 PM
  4. Replies: 4
    Last Post: 2007-05-17, 08:39 PM
  5. Use of HTML data type
    By sagarladdha in forum Help
    Replies: 0
    Last Post: 2006-11-07, 11:07 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
  •