Answers.Body: <p>You would need to patch CiviCRM to change this from a hardcoded constant into a setting.</p>
  
  <p>Create a pull-request for this change and the core team will review it and merge it into 4.7.</p>
  
  <p>See <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-07T20:25:14.440Z
Answers.Text: Just found your reference ten minutes ago and came here to self-answer ;) Thanks a load!
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-08T03:38:31.707Z
Answers.Text: So will you be sending in a PR for this?
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-08T08:29:32.760Z
Answers.Text: I'm just evaluating if I could add a new core setting without a dev installation. bin/regen.sh states that there's no setup.sh and as I read the script I saw it may truncate the database.
  So may I manually add the setting to table civicrm_setting to enable it?
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-12T20:14:12.800Z
Answers.Text: https://github.com/civicrm/civicrm-core/pull/7586
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-07T17:44:59.800Z
Answers.LastActivityDate: 2016-01-07T17:44:59.800Z
Answers.UserDisplayName: Coleman
Body: <p>What's the recommended way to make the max item count of civi's recently viewed items stack configurable. Current value ist a constant <code>MAX_ITEMS</code> defined directly in <code>CRM/Utils/Recent.php</code>.</p>
  
  <p>A quick glance at <code>civicrm.settings.php</code> lets me think that this is not the right place – stuff there seems to be more generic/low level.</p>
  
  <p>Maybe it's possible to add a new field in <code>admin/setting/misc</code> (<code>CRM_Admin_Form_Setting_Miscellaneous</code>)?</p>
  
  <p>So where to put this?  </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-23T11:07:00.593Z
Comments.Text: Could you explain this in more detail?  I'm not clear what you are asking.
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-12-23T13:34:45.037Z
Comments.Text: I want to implement a configuration option "recent_items_max_count" which adjusts the size of civi's last-viewed-items stack. I'm wondering where to store configuration options like this.
  The civicrm.settings.php seems to hold more basic variables.
Comments.UserDisplayName: nielo
Tags: <developer>
Title: recently viewed items stack: Add a configuration option for MAX_ITEMS in Recent.php
ThreadText: # recently viewed items stack: Add a configuration option for MAX_ITEMS in Recent.php
  
  (Asked by: username_0 on 2015-12-22)
  
  What's the recommended way to make the max item count of civi's recently viewed items stack configurable. Current value ist a constant `MAX_ITEMS` defined directly in `CRM/Utils/Recent.php`.
  
  A quick glance at `civicrm.settings.php` lets me think that this is not the right place – stuff there seems to be more generic/low level.
  
  Maybe it's possible to add a new field in `admin/setting/misc` (`CRM_Admin_Form_Setting_Miscellaneous`)?
  
  So where to put this?
  
  **Tags:** developer
  
  > **Comments:**
  > **username_1**: Could you explain this in more detail?  I'm not clear what you are asking.  
  > **username_0**: I want to implement a configuration option "recent_items_max_count" which adjusts the size of civi's last-viewed-items stack. I'm wondering where to store configuration options like this. The civicrm.settings.php seems to hold more basic variables.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-01-07. Score: 2 | Accepted answer
  
  You would need to patch CiviCRM to change this from a hardcoded constant into a setting.
  
  Create a pull-request for this change and the core team will review it and merge it into 4.7.
  
  See <http://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference>
  
  > **Comments:**
  > **username_0**: Just found your reference ten minutes ago and came here to self-answer ;) Thanks a load!  
  > **username_2**: So will you be sending in a PR for this?  
  > **username_0**: I'm just evaluating if I could add a new core setting without a dev installation. bin/regen.sh states that there's no setup.sh and as I read the script I saw it may truncate the database. So may I manually add the setting to table civicrm_setting to enable it?  
  > **username_0**: https://github.com/civicrm/civicrm-core/pull/7586  
  
  ---
  
  