Answers.Body: <p>Any menu item you create through FormBuilder is controlled by FormBuilder. So every time you clear the caches, the menu item goes back to wherever it is set in FormBuilder.</p>
  <p>Option one is to change the parent and order in FormBuilder for each menu item.</p>
  <p>Option two is to remove the menu item added in FormBuilder and add the form as a menu item manually (Navigation Menu &gt; Add Menu Item and paste in the URL). This is nice as you can now edit the menu as you would normally, but if you delete the form, you'll still have the menu item.</p>
  <p>I agree that this is very frustrating and made an <a href="https://lab.civicrm.org/dev/core/-/issues/4364" rel="nofollow noreferrer">issue for this behaviour</a> a while ago. Might be worth chiming in there to add your voice in support of improving this.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-16T17:27:07.600Z
Answers.Text: Thanks, Lars. Glad to see it's already a known issue that's being worked on. I think I'll go with option two until FB offers a more robust way of managing navigation.
Answers.UserDisplayName: Justin657
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-10-13T22:26:36.330Z
Answers.LastActivityDate: 2023-10-13T22:26:36.330Z
Answers.UserDisplayName: Lars SG
Body: <p>Newbie dev question. I have created custom navigation menus in the CiviCRM UI as a way of categorizing the dozens of custom reports (SearchKit + Afforms) my client requires.</p>
  <p>I'm finding, however, that <strong>when I clean up the Civi cache</strong> (Administer &gt; System Settings &gt; Cleanup Caches and Update Paths &gt; Cleanup Caches button) <strong>it ALSO resets the location of all the reports back to the Reports menu.</strong></p>
  <ul>
  <li><p>How can I preserve the location of the custom reports in the navigation menu?</p>
  </li>
  <li><p>Is there a way to turn OFF the &quot;report reset&quot; or to decouple it from &quot;cache clearing&quot;? The <a href="https://docs.civicrm.org/dev/en/latest/tools/debugging/#clearing-the-cache" rel="nofollow noreferrer">developer documentation here</a> doesn't shed any particular light on this issue.</p>
  </li>
  </ul>
  <p>I have tried creating &quot;subfolders&quot; under the &quot;Reports&quot; menu, but even then the custom reports all get pulled out of the subfolders and dumped back again under the root &quot;Reports&quot; menu.</p>
  <p>This is incredibly frustrating.</p>
  <p>How am I supposed to organize for the users 80+ custom reports in the top navigation if they get reset every time the cache is cleared?</p>
  <p>Should I be going about it differently?</p>
  <p>Are there other ways of organizing lists of custom reports (ones I've built in SK and FormBuilder) into one or more &quot;report list pages&quot; for users to access? Since I'm on Drupal I could create pages there to organize and link to the Civi reports, but it seems odd not to be able to do that within Civi.</p>
  <p>Thanks!</p>
  <hr />
  <p>Civicrm 5.65.0
  Drupal 10</p>
  
Tags: <menu><custom-reports><formbuilder><cache><navigation>
Title: How to preserve the location of custom reports in the navigation menu?
ThreadText: # How to preserve the location of custom reports in the navigation menu?
  
  (Asked by: username_0 on 2023-10-13)
  
  Newbie dev question. I have created custom navigation menus in the CiviCRM UI as a way of categorizing the dozens of custom reports (SearchKit + Afforms) my client requires.
  
  I'm finding, however, that **when I clean up the Civi cache** (Administer > System Settings > Cleanup Caches and Update Paths > Cleanup Caches button) **it ALSO resets the location of all the reports back to the Reports menu.**
  
  * How can I preserve the location of the custom reports in the navigation menu?
  * Is there a way to turn OFF the "report reset" or to decouple it from "cache clearing"? The [developer documentation here](https://docs.civicrm.org/dev/en/latest/tools/debugging/#clearing-the-cache) doesn't shed any particular light on this issue.
  
  I have tried creating "subfolders" under the "Reports" menu, but even then the custom reports all get pulled out of the subfolders and dumped back again under the root "Reports" menu.
  
  This is incredibly frustrating.
  
  How am I supposed to organize for the users 80+ custom reports in the top navigation if they get reset every time the cache is cleared?
  
  Should I be going about it differently?
  
  Are there other ways of organizing lists of custom reports (ones I've built in SK and FormBuilder) into one or more "report list pages" for users to access? Since I'm on Drupal I could create pages there to organize and link to the Civi reports, but it seems odd not to be able to do that within Civi.
  
  Thanks!
  
  ---
  
  Civicrm 5.65.0
  Drupal 10
  
  **Tags:** menu, custom-reports, formbuilder, cache, navigation
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-10-13. Score: 1 | Accepted answer
  
  Any menu item you create through FormBuilder is controlled by FormBuilder. So every time you clear the caches, the menu item goes back to wherever it is set in FormBuilder.
  
  Option one is to change the parent and order in FormBuilder for each menu item.
  
  Option two is to remove the menu item added in FormBuilder and add the form as a menu item manually (Navigation Menu > Add Menu Item and paste in the URL). This is nice as you can now edit the menu as you would normally, but if you delete the form, you'll still have the menu item.
  
  I agree that this is very frustrating and made an [issue for this behaviour](https://lab.civicrm.org/dev/core/-/issues/4364) a while ago. Might be worth chiming in there to add your voice in support of improving this.
  
  > **Comments:**
  > **username_0**: Thanks, username_1. Glad to see it's already a known issue that's being worked on. I think I'll go with option two until FB offers a more robust way of managing navigation.  
  
  ---
  
  