[rt-users] HTML for ticket body.
Trần Trọng Tấn
giobuon at gmail.com
Thu Jun 24 00:57:51 EDT 2010
My bad.
Actually my co-worker change something on this file
/opt/rt3/share/html/Elements/ScrubHTML
It solved my problem :P
2010/6/24 Trần Trọng Tấn <giobuon at gmail.com>
> Problem solved. I don't know why but after change
> Set($PreferRichText, 1);
> to
> Set($PreferRichText, true);
> then restart apache, HTML just showed up.
>
> 2010/6/23 Trần Trọng Tấn <giobuon at gmail.com>
>
> I'm using RT ver 3.8.8 and it's lastest.
>> Here my config file:
>>
>> Set($WebBaseURL , "http://sup.xxxx.net");
>> Set($WebPath , "");
>> Set($rtname, "noc.xxxx.vn");
>> Set($DatabasePassword , "xxxxxx");
>>
>> Set($OwnerEmail, "xxxxxxxt");
>>
>> Set($MailCommand, 'smtp');
>> Set($SMTPServer, 'localhost');
>> Set($SMTPFrom, 'xxxxx at xxxxx.net');
>> Set($CorrespondAddress, 'xxxxx at xxxxx.net');
>> Set($CommentAddress, 'xxxxx at xxxxx.net');
>>
>> Set($PreferRichText, 1);
>> Set($TrustHTMLAttachments, 1);
>>
>> Set($RTAddressRegexp, '^(xxxx.*\@xxx.net)$');
>> Set($HomePageRefreshInterval, 120);
>> Set($MaxInlineBody, 512000);
>>
>> Set( @Plugins, qw(RT::Authen::ExternalAuth RT::Extension::ToggleSuperUser
>> RT::Extension::MergeUsers RT::Extension::ResetPassword));
>>
>> require
>> "/opt/rt3/local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.pm";
>> Set($AutoCreateNonExternalUsers, 1);
>> 1;
>>
>>
>>
>> I still can't see any HTML tables on Ticket/Display.html. Did I get wrong
>> somewhere?
>>
>> On Wed, Jun 23, 2010 at 10:08 AM, Kevin Falcone <
>> falcone at bestpractical.com> wrote:
>>
>>> On Tue, Jun 22, 2010 at 04:43:49PM +0200, Emmanuel Lacour wrote:
>>> > On Tue, Jun 22, 2010 at 10:08:01AM +0700, Trần Trọng Tấn wrote:
>>> > > I want to display some basic HTML tag (like table) on ticket body on
>>> page
>>> > > /Ticket/Display.html. Where can I configure to enable it? or mod some
>>> code
>>> > > to do it?
>>> > >
>>> >
>>> > you have to change the file share/html/Ticket/Display.html.
>>> >
>>> > but first:
>>> >
>>> > - see if the place where you wan't to add code correspond to one of the
>>> > callbacks defined in this file. If yes, use this callback as
>>> described
>>> > here: http://wiki.bestpractical.com/view/CustomizingWithCallbacks
>>> > - if there is no usefull callback, copy this file to local/html/Ticket/
>>> > and modify it
>>> >
>>> > then you need to clear the mason cache (rm -rf var/mason_data/obj) and
>>> > restart your webserver to see your changes.
>>>
>>> Actually, if all you want to do is allow HTML tables sent in email to
>>> RT to show up on Ticket/Display.html you can tell RT to do that using
>>> $PreferRichText in the config. You need a very recent RT release for
>>> the table scrubber restrictions to be relaxes to work with the code
>>> excel/word generate.
>>>
>>> -kevin
>>>
>>>
>>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>>> Buy a copy at http://rtbook.bestpractical.com
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100624/431fe680/attachment.htm>
More information about the rt-users
mailing list