[Rt-commit] r19915 - in rtfm/trunk: html/RTFM/Elements

falcone at bestpractical.com falcone at bestpractical.com
Fri Jun 5 11:57:17 EDT 2009


Author: falcone
Date: Fri Jun  5 11:57:17 2009
New Revision: 19915

Modified:
   rtfm/trunk/html/RTFM/Elements/BeforeMessageBox
   rtfm/trunk/lib/RT/FM/Introduction.pod

Log:
Add new config RTFM_HideArticleSearchOnReplyCreate

Lets you only give end users a drop down of articles
and hide the searching ability

Modified: rtfm/trunk/html/RTFM/Elements/BeforeMessageBox
==============================================================================
--- rtfm/trunk/html/RTFM/Elements/BeforeMessageBox	(original)
+++ rtfm/trunk/html/RTFM/Elements/BeforeMessageBox	Fri Jun  5 11:57:17 2009
@@ -50,6 +50,8 @@
 % }
 
 <table>
+%if ( RT->can('Config') && RT->Config->can('Get') ) {
+%    unless (RT->Config->Get('RTFM_HideArticleSearchOnReplyCreate')) {
 <tr>
 <td><&|/l&>Search for RTFM articles matching</&></td>
 <td><input size=20 name="<% $name_prefix %>RTFM_Content" /></td>
@@ -59,6 +61,8 @@
 <td><input size=20 name="<% $name_prefix %>RTFM-Include-Article-Named" /></td>
 <td><input type="submit" value="Go" /></td>
 </tr>
+%   }
+%}
 % if ($hotlist->Count) {
 <tr>
 <td><&|/l&>Select an Article to include</&></td>

Modified: rtfm/trunk/lib/RT/FM/Introduction.pod
==============================================================================
--- rtfm/trunk/lib/RT/FM/Introduction.pod	(original)
+++ rtfm/trunk/lib/RT/FM/Introduction.pod	Fri Jun  5 11:57:17 2009
@@ -121,4 +121,15 @@
 
 Please note, this only works with RTFM 3.8.1 or greater
 
+=head2 RTFM_HideArticleSearchOnReplyCreate
+
+On Ticket Reply (and Create if you set the above config var)
+RTFM normally displays a search box and an include box (for
+inputting an article id) and configurable dropdowns
+of articles.  These can be configured using Global Topics or
+on the Class page.
+
+If you set this to a true value, RTFM will only display
+dropdowns and hide the search boxes
+
 =cut


More information about the Rt-commit mailing list