[rt-users] Creating a Quick Comment Field

Dave Kettmann dkettmann at netlogic.net
Thu Jun 2 20:15:19 EDT 2005


Hey all,

I am trying to modify /Ticket/Display.html in a way that right above the History, it shows a textbox that you can do a 'Quick Comment' in. Here is the code I have so far...

<& /Elements/TitleBoxStart, title => loc("Quick Comment on Ticket #[_1]", $TicketObj->Id) &>

<FORM ACTION="Update.html" NAME="TicketUpdate"
        METHOD=POST enctype="multipart/form-data">
<input type="hidden" name="Action" value="Comment">
<input type="hidden" name="id" value="<& [_1], $TicketObj->Id &>">


<textarea class="messagebox" COLS=72 ROWS=5 WRAP=HARD NAME="UpdateContent">
</textarea>

<INPUT TYPE=SUBMIT NAME="SubmitTicket" VALUE='Update Ticket'>

</FORM>
<& /Elements/TitleBoxEnd &>

The only thing I am having trouble with is getting the ticket ID into a hidden field. I have tried many things but always get an error that looks like..

error:  could not find component for path '52'
 
context:  ...   
62:   
63:  <FORM ACTION="Update.html" NAME="TicketUpdate" 
64:  METHOD=POST enctype="multipart/form-data"> 
65:  <input type="hidden" name="Action" value="Comment"> 
66:  <input type="hidden" name="id" value="<& $TicketObj->Id &>"> 
67:   
68:   
69:  <textarea class="messagebox" COLS=72 ROWS=5 WRAP=HARD NAME="UpdateContent"> 
70:  </textarea> 
...   
 
code stack:  /opt/rt3/local/html/Ticket/Display.html:66
/opt/rt3/share/html/autohandler:215
 

I know this should be a simple thing, but I am very new to modifying RT. A month ago or so I ran across a document that was a detailed 'howto' on modifying this stuff and how to insert code. I keep thinking it was running perldoc on a component of RT but I cant remember. If anyone knows a good detailed guide on modifying RT I would appreciate a link. 

Thanks,

Dave Kettmann
NetLogic
314-266-4000



More information about the rt-users mailing list