[rt-users] template styling

Kevin Falcone falcone at bestpractical.com
Fri Sep 20 13:53:47 EDT 2013


On Fri, Sep 20, 2013 at 05:33:41PM +0300, Alexander Kucheryuk wrote:
> I have the following template:
> 
> {$Transaction->CreatedAsString}: Request {$Ticket->id} was acted upon.
>  Transaction: {$Transaction->Description}
>        Queue: {$Ticket->QueueObj->Name}
>      Subject: {$Transaction->Subject || $Ticket->Subject || "(No
> subject given)"}
>        Owner: {$Ticket->OwnerObj->Name}
>   Requestors: {$Ticket->RequestorAddresses}
>       Status: {$Ticket->Status}
>   Ticket URL:
> {RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id}
>      Content: {$Transaction->Content()}
> 
> The last line ( Content: {$Transaction->Content()} ). How can I
> style so that content is filling inside an invisible paragraph ( so
> that text is aligned symmetrically). What options do I have for that
> ? Using html ? Other options ?

If you convert this to an HTML template you can wrap the content in a
<p> and RT will prefer the HTML part of a multipart mail when
generating the content.

You can steal one of the HTML Templates that ships with RT 4.2.0rc1
and backport it to do what you want, further documentation on HTML
templates in 4.0 and 4.2

http://bestpractical.com/docs/rt/4.0/customizing/templates.html#Templates
http://bestpractical.com/docs/rt/4.2/customizing/templates.html

-kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 235 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130920/3d5e9866/attachment.sig>


More information about the rt-users mailing list