Answers.Body: <p>No need to extend the class - there's a hook for this, <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_recent" rel="nofollow">hook_civicrm_recent</a>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-07T20:45:56.643Z
Answers.Text: Thank you. Because @coleman just pointed me to the settings reference, I'll decide walking the core road or the extension road while doing the implementation and see if our solution may be useful for the community.
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-07T15:16:20.803Z
Answers.LastActivityDate: 2016-01-07T15:16:20.803Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>For anybody looking for a starting point on how to add settings/configuration options, see @coleman's hint to <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference" rel="nofollow noreferrer">civicrm's settings reference</a> on <a href="https://civicrm.stackexchange.com/a/8694/321">https://civicrm.stackexchange.com/a/8694/321</a> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-15T21:46:25.910Z
Answers.Text: Together with http://civicrm.stackexchange.com/questions/8478/recently-viewed-items-stack-add-a-configuration-option-for-max-items-in-recent?lq=1 treated in pr https://github.com/civicrm/civicrm-core/pull/7586
Answers.UserDisplayName: nielo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-07T20:52:05.517Z
Answers.LastActivityDate: 2016-01-07T20:52:05.517Z
Answers.LastEditDate: 2017-04-13T12:53:13.167Z
Answers.UserDisplayName: nielo
Body: <p>For my organization it would be nice to define, what types of entities the "recent items" stack holds. </p>
  
  <p>For example the list in the corresponding "recently viewed" widget gets flooded with the same activity entry when composing pdf letters for a group of contacts. </p>
  
  <p>So it would be beneficial if there would be a configuration option to decide which entities/actions to include in the recent items stack.</p>
  
  <p>This is related to <a href="https://civicrm.stackexchange.com/questions/8478/recently-viewed-items-stack-add-a-configuration-option-for-max-items-in-recent">recently viewed items stack: Add a configuration option for MAX_ITEMS in Recent.php</a> and should be treated together.</p>
  
  <p>I'll investigate how to accomplish this, but I appreciate any hint about the more advanced civi programmers would integrate this. Should I add a new configuration form? Should I extend <code>CRM_Admin_Form_Setting_Miscellaneous</code>?</p>
  
  <p>Thanks in advance // nielo</p>
  
Tags: <developer><ui>
Title: Configure what gets added to recent items stack / Where to implement
ThreadText: # Configure what gets added to recent items stack / Where to implement
  
  (Asked by: username_0 on 2016-01-07)
  
  For my organization it would be nice to define, what types of entities the "recent items" stack holds.
  
  For example the list in the corresponding "recently viewed" widget gets flooded with the same activity entry when composing pdf letters for a group of contacts.
  
  So it would be beneficial if there would be a configuration option to decide which entities/actions to include in the recent items stack.
  
  This is related to [recently viewed items stack: Add a configuration option for MAX\_ITEMS in Recent.php](https://civicrm.stackexchange.com/questions/8478/recently-viewed-items-stack-add-a-configuration-option-for-max-items-in-recent) and should be treated together.
  
  I'll investigate how to accomplish this, but I appreciate any hint about the more advanced civi programmers would integrate this. Should I add a new configuration form? Should I extend `CRM_Admin_Form_Setting_Miscellaneous`?
  
  Thanks in advance // username_0
  
  **Tags:** developer, ui
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-01-07. Score: 1 | Accepted answer
  
  No need to extend the class - there's a hook for this, [hook\_civicrm\_recent](http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_recent).
  
  > **Comments:**
  > **username_0**: Thank you. Because @coleman just pointed me to the settings reference, I'll decide walking the core road or the extension road while doing the implementation and see if our solution may be useful for the community.  
  
  ---
  
  ### Answer by username_0 on 2016-01-07. Score: 0
  
  For anybody looking for a starting point on how to add settings/configuration options, see @coleman's hint to [civicrm's settings reference](http://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference) on <https://civicrm.stackexchange.com/a/8694/321>
  
  > **Comments:**
  > **username_0**: Together with http://civicrm.stackexchange.com/questions/8478/recently-viewed-items-stack-add-a-configuration-option-for-max-items-in-recent?lq=1 treated in pr https://github.com/civicrm/civicrm-core/pull/7586  
  
  ---
  
  